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: 8132
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 editting the file by inserting zeros ... pramodrsingh DFSORT/ICETOOL 9 Mon Aug 21, 2017 5:58 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm


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