View previous topic :: View next topic |
Author |
Message |
tomehta Beginner

Joined: 19 Dec 2003 Posts: 17 Topics: 5
|
Posted: Fri Dec 19, 2003 9:58 am Post subject: ftp of the file in binary mode into mainframes |
|
|
Hi,
I am ftping a file which is in binary into the mainframes. it is appending crlf at the end instead of the new line. thus i am getting the record like
aaaaaaaaaaa[b]crlf[/b]bbbbbbbbbb[b]crlf[/b] insted of
insted of
aaaaaaaaaaa
bbbbbbbbbb
the records come in the single line till the max length defined of the dataset. plese help.
rgds
rohit |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Dec 19, 2003 10:15 am Post subject: |
|
|
Rohit,
Send it as a text file and see if it works.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ofer71 Intermediate
Joined: 12 Feb 2003 Posts: 358 Topics: 4 Location: Israel
|
Posted: Sat Dec 20, 2003 2:07 am Post subject: |
|
|
Which utility are you using to FTP the file ? (DOS FTP / Emulation build-in / JCL / WS-FTP / Explorer FTP etc...)
O.
________
volcano vaporizer
Last edited by ofer71 on Sat Feb 05, 2011 11:09 am; edited 1 time in total |
|
Back to top |
|
 |
tomehta Beginner

Joined: 19 Dec 2003 Posts: 17 Topics: 5
|
Posted: Mon Dec 22, 2003 9:06 am Post subject: |
|
|
i am using jcl for ftping that as i want it in batch mode. |
|
Back to top |
|
 |
mayuresh.tendulkar Beginner

Joined: 25 Apr 2003 Posts: 31 Topics: 6 Location: Pune
|
Posted: Tue Dec 23, 2003 1:45 am Post subject: |
|
|
Hello tomehta,
A text file of ASCII data type contains displayable characters; a carriage return (X'0D') and line feed (X'0A') are used to delimit a line. A text file of EBCDIC data type contains displayable characters; the new-line character (X'15') is used to delimit a line.
A binary file contains a contiguous stream of bits with no line delimiters.
Thats why you are not able to see the records the way you want to see (in multiple lines)
So to eliminate this, send the file as a TEXT file as told by kolusu.
Hope this helps.
Regards
Mayuresh Tendulkar |
|
Back to top |
|
 |
Bee_bop Beginner
Joined: 12 Dec 2005 Posts: 29 Topics: 15 Location: Singapore
|
Posted: Fri Sep 21, 2007 1:41 am Post subject: |
|
|
Hi All,
Follow-up question on this. I want to FTP TXT file to another file in binary format through JCL.
But using FTP shows your User-ID and Password (see sample below). Is there other way to accomplish this ? Withou reflecting user-ID and password ?
Sample FTP JCL. Code: |
----------------------------------------------------------------
//FTP EXEC PGM=FTP,PARM='xxxxxxxxxxxxxx'
//SYSPRINT DD SYSOUT=*
//INPUT DD *
user
password
binary
PUT 'TXT1' 'TXT2'
Quit
----------------------------------------------------------------
|
Thanks,
-Bee_bop |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Fri Sep 21, 2007 7:46 am Post subject: |
|
|
Bee_bop,
Dynamically supply the username and password to FTP sysin cards
IE,
Code: |
//INPUT DD DSN=80 BYTE DYNAMIC FILE WITH USERNAME & PWD,
// DISP=(OLD,DELETE,KEEP)
// DD *
binary
PUT 'TXT1' 'TXT2'
Quit
/*
|
The sysout will only show the userid but the password is not shown
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
|
|