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

“Carriage Return” is missing in file that is sFTPed


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Feb 15, 2016 6:48 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 9
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top