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: 7908
Location: Bellevue, IA

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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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