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

Adding line breaks with GET FTP using JCL


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Vidya Bhama

New User


Joined: 17 Sep 2008
Posts: 41
Location: Chennai

PostPosted: Wed Dec 16, 2009 1:57 am
Reply with quote

I have a problem with my get FTP jcl. When i ran the below JCL my file got FTPed without line breaks. Can you please let me know how to add line breaks.

The dataset FTPed has records in continuous fashion as below
Ellen0100EE Mark0200SE

The mainframe dataset should have the records like below instead of the above,
Ellen0100EE
Mark0200SE

My JCL is as below,
Code:

//FTP10 EXEC  PGM=FTP,REGION=4M,PARM='(EXIT'
//INPUT   DD  *
abc.xyz.com
username
password
cd /directory/File
ASCII
LOCSITE LRECL=215 RECFM=FB BLKSIZE=27950
GET Sample.DAT 'sample.dataset.new' (REPLACE
QUIT
//OUTPUT DD SYSOUT=*
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Wed Dec 16, 2009 2:25 am
Reply with quote

There's nothing you can do from the mainframe side. The data MUST contain the proper record seperator values as documented here:

LOCSIte subcommand--Specify site information to the local host.

Quote:

SBSENDEOL
Specifies which end-of-line sequence to use when ENCODING is SBCS, the data transfer type is ASCII, and data is being sent to the server. The following are possible values:

CRLF
Append both carriage return (X'0D') and line feed (X'0A') end-of-line sequences to each line of translated text. This is the default and the standard sequence defined by RFC 959. The z/OS server can receive ASCII data in this format only.

CR
Append only a carriage return (X'0D') end-of-line sequence to each line of translated text.

LF
Append only a line feed (X'0A') end-of-line sequence to each line of translated text.

NONE
Do not append an end-of-line sequence to the line of translated text.

Rules:

Do not use an end-of-line sequence other than CRLF if the server is a z/OS FTP server. The z/OS FTP server supports only the CRLF value for incoming data.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Adding first / last acct numerber to ... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top