On 4/7/2015 12:32 PM, Dana Mitchell wrote:
I'm working with developers to convert FTP jobs to use secure FTP.  The first 
step is to cp the MVS dataset to a USS directory so sftp can transfer it.  They 
noticed when transferring an FB 80 file that trailing blanks have been stripped 
off.  Is there some combination of cp options that would keep trailing blanks 
intact?  I've tried -B,  -F crlf   etc to no avail.

I don't think cp is going to work out for you. From a usage note at the end of the its man page, it sayeth:

 For MVS to UNIX:

 3.  For an MVS data set in variable record format RECFM(VB) or undefined
     record format RECFM(U), trailing blanks are preserved when copying
     from MVS to UNIX. For an MVS data set in fixed record format, trailing
     blanks are not preserved when copying from MVS to UNIX.

Bob

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to