MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP Problem

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
vivek
Beginner


Joined: 15 Jul 2004
Posts: 95
Topics: 11
Location: Edison,NJ

PostPosted: Wed Oct 06, 2004 3:16 pm    Post subject: FTP Problem Reply with quote

when I FTP a file from mainframe to windows. It appears as junk
File Attrib is below
Code:


   
General Data                          Current Allocation
 Volume serial . . . : WORK44          Allocated cylinders : 1
 Device type . . . . : 3390            Allocated extents . : 1
 Organization  . . . : PS               
 Record format . . . : FB               
 Record length . . . : 1367             
 Block size  . . . . : 27340          Current Utilization
 1st extent cylinders: 1               Used cylinders  . . : 1
 Secondary cylinders : 3               Used extents  . . . : 1
   
 Creation date . . . : 2004/10/06
 Referenced date . . : 2004/10/06
 Expiration date . . : ***None*** 
   

_________________
Vivek,NJ

Db2,IDMS
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Bithead
Advanced


Joined: 03 Jan 2003
Posts: 550
Topics: 23
Location: Michigan, USA

PostPosted: Wed Oct 06, 2004 4:17 pm    Post subject: Reply with quote

Please post your FTP script.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Oct 06, 2004 5:06 pm    Post subject: Reply with quote

vivek,

I don't see any junk values in the DCB parameters.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vivek
Beginner


Joined: 15 Jul 2004
Posts: 95
Topics: 11
Location: Edison,NJ

PostPosted: Wed Oct 06, 2004 10:15 pm    Post subject: Reply with quote

Kolusu, I am not able to figure out where the problem occurs. similar ftps of different other files are fine. only this has problem.

whatever mode of ftp i used , the result was same.

i did was

windows start menu -> run -> cmd

type ftp mainframe-ip

user id
password

get 'dataset name' pc-filename.txt

I was wondering if the dcb parameters had something to do with it.

onething i noted on pc side was, when i oepned the file in notepad , i was at the beginning of the file and pressed the end key it went to the beginning of the next row instead of going to the end of line.
_________________
Vivek,NJ

Db2,IDMS
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Wed Oct 06, 2004 11:02 pm    Post subject: Reply with quote

I'd love to see a hex dump of the Windows file that shows at least the first 1367 bytes of data.
Back to top
View user's profile Send private message
vivek
Beginner


Joined: 15 Jul 2004
Posts: 95
Topics: 11
Location: Edison,NJ

PostPosted: Thu Oct 07, 2004 1:30 pm    Post subject: Reply with quote

superk,

it appeared junk only when opened in notepad. it didnot when i opened in dos edit or MS word or something. I would just leave it as it is.

thanks
_________________
Vivek,NJ

Db2,IDMS
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
taltyman
JCL Forum Moderator
JCL Forum Moderator


Joined: 02 Dec 2002
Posts: 310
Topics: 8
Location: Texas

PostPosted: Thu Oct 07, 2004 2:11 pm    Post subject: Reply with quote

Usually when notepad tries to open a file and has problems I try wordpad next.
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Thu Oct 07, 2004 3:13 pm    Post subject: Reply with quote

You are probably looking at EBCDIC characters on an ASCII machine (your system is defaulting to BINary transfer). Add TYPE A or add ASCII before the GET.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group