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
 

 

“Carriage Return” is missing in file that is sFTPed

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sudha_be02

New User


Joined: 16 Feb 2009
Posts: 1
Location: Chennai

PostPosted: Mon Feb 15, 2016 5:04 pm    Post subject: “Carriage Return” is missing in file that is sFTPed
Reply with quote

Upto now we are transferring file from our mainframes to Windows system(Client system) via Normal FTP. My Client is receving the file with "Carriage Return"(CR) and "Line Feed"(LF) at the end of each file..

Now we are changinf the transfer mechanism to sFTP..Below are the steps I am following 1. Copy the PS file to OMVS system of Mainframe. 2. Run the sFTP commands and send the file to Client system.

Now the problem is..My client is along with the data my client is only receving LF ant end of each line..CR is missing.. I have tried options like "ascii dos unix" in the sftp script and "SBSENDEOL CRLF" in JCL..But no luck

Below is the script i am running
Code:
ascii
lcd /u/myid
put File1.txt FileNew1.txt
chmod 775 FileNew1.txt


Below is how they expect the file to be


But this is how the file is received when I run the script I have pasted above


Please let me know if there is option to achieve CR and LF.
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8035
Location: East Dubuque, Illinois, USA

PostPosted: Mon Feb 15, 2016 6:48 pm    Post subject: Reply to: “Carriage Return” is missing in file
Reply with quote

When you copy the data set to Unix System Services, you are telling the system to use the LF line terminator sequence. Windows expects the CRLF line terminator sequence.

Quote:
I have tried options like "ascii dos unix" in the sftp script and "SBSENDEOL CRLF" in JCL
I have no idea what this means since SBSENDEOL is an FTP parameter and would not, under any circumstances, EVER be coded in JCL.

Have you tried
Code:
ascii
lcd /u/myid
locsite sbsendeol crlf
put File1.txt FileNew1.txt
chmod 775 FileNew1.txt
since this is where the SBSENDEOL belongs -- as part of the FTP commands (and note that these are NOT JCL)?
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 File processing vishwakotin JCL & VSAM 0 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
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Length of Tape file Mohan Kothakota JCL & VSAM 9 Thu Apr 20, 2017 10:24 pm


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