Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to disable CR/LF when FTP file from Mainframe to Unix.
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

Moderator Team Head


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

PostPosted: Fri Jul 10, 2009 3:38 pm    Post subject: Reply to: How to disable CR/LF when FTP file from Mainframe
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Fri Jul 10, 2009 5:06 pm    Post subject:
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    Post subject: Reply to: How to disable CR/LF when FTP file from Mainframe
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Mon Jul 13, 2009 6:14 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us