View previous topic :: View next topic |
Author |
Message |
vivek Beginner
Joined: 15 Jul 2004 Posts: 95 Topics: 11 Location: Edison,NJ
|
Posted: Wed Oct 06, 2004 3:16 pm Post subject: FTP Problem |
|
|
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 |
|
|
Bithead Advanced
Joined: 03 Jan 2003 Posts: 550 Topics: 23 Location: Michigan, USA
|
Posted: Wed Oct 06, 2004 4:17 pm Post subject: |
|
|
Please post your FTP script. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Oct 06, 2004 5:06 pm Post subject: |
|
|
vivek,
I don't see any junk values in the DCB parameters.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
vivek Beginner
Joined: 15 Jul 2004 Posts: 95 Topics: 11 Location: Edison,NJ
|
Posted: Wed Oct 06, 2004 10:15 pm Post subject: |
|
|
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 |
|
|
superk Advanced
Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Wed Oct 06, 2004 11:02 pm Post subject: |
|
|
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 |
|
|
vivek Beginner
Joined: 15 Jul 2004 Posts: 95 Topics: 11 Location: Edison,NJ
|
Posted: Thu Oct 07, 2004 1:30 pm Post subject: |
|
|
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 |
|
|
taltyman JCL Forum Moderator
Joined: 02 Dec 2002 Posts: 310 Topics: 8 Location: Texas
|
Posted: Thu Oct 07, 2004 2:11 pm Post subject: |
|
|
Usually when notepad tries to open a file and has problems I try wordpad next. |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Thu Oct 07, 2004 3:13 pm Post subject: |
|
|
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 |
|
|
|
|