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: 4648
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: 8057
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: 8057
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
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


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