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
 
“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: 8165
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 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 File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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