Posted: Tue Feb 09, 2016 4:05 pm Post subject: CARRIAGE RETURN/lf issue with FTP
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 changing 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.. along with the data my client is only receiving LF at the 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
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.[/img]
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum