View previous topic :: View next topic
|
Author |
Message |
lovemorning
New User
Joined: 15 Jun 2005 Posts: 16
|
|
|
|
I'm trying to FTP a file to Unix. It 350 fixed length. But it's automaticly add an CR/LF at the end of every entry, how can I disable CR/LF? what should I put in the FTP parm?
Here is the JCL.
//WOS835FA EXEC BATCHFTP
//BFTP.OUTPUT DD SYSOUT=*
//BFTP.SYSPRINT DD SYSOUT=*
//BFTP.INPUT DD DSN=TEST.TST.XXXX.FTP,DISP=SHR
//O835FAC DD DSN=TEST.TST.XXXX.APR1709.V3,
// DISP=SHR
//
Here is the PARM:
IP address
Username
Password
CD /home/ab16284/
LS
append //DD:O835FAC testfile
LS
CLOSE
QUIT |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The FTP configuration option SBSENDEOL controls what denotes end of line. CRLF is standard per RFC 959 but can be overridden. Contact your site support group to determine the appropriate method to update this parameter -- it can be done in a number of ways so your site may have a specific way to do it. |
|
Back to top |
|
|
lovemorning
New User
Joined: 15 Jun 2005 Posts: 16
|
|
|
|
In fact, the problem is unix need a fixed-length file. But when I transferred it, the spaces in the end of each entry will be omitted. And a crlf will automatically added. For example:
file on mainframe is like the ff. it's length is 10:
12345XXXXX
123XXXXXXX
after transfer it will be :
12345<crlf>
123<crlf>
It's not fixed length. How can I send a file fixed-length and with crlf in the end? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
In other words, your original post is completely wrong, since you didn't bother to mention trailing space in it.
The FTP configuration options TRAILINGBLANKS controls whether or not trailing blanks are discarded or kept. Contact your site support group to determine the appropriate method to update this parameter -- it can be done in a number of ways so your site may have a specific way to do it. |
|
Back to top |
|
|
|