Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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: 8165
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: 8165
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 Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts Mainframe scheduling tool ddhar Compuware & Other Tools 2 Wed Sep 27, 2017 12:48 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us