IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to disable CR/LF when FTP file from Mainframe to Unix.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
lovemorning

New User


Joined: 15 Jun 2005
Posts: 16

PostPosted: Fri Jul 10, 2009 10:46 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Jul 10, 2009 3:38 pm
Reply with quote

5.35 LOCSIte subcommand--Specify site information to the local host.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 10, 2009 5:06 pm
Reply with quote

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
View user's profile Send private message
lovemorning

New User


Joined: 15 Jun 2005
Posts: 16

PostPosted: Mon Jul 13, 2009 2:12 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Jul 13, 2009 6:14 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top