On Wed, 23 Aug 2017 11:52:06 -0500, John McKown wrote:
>
>I'd bet that the old FTP transfer had a site default of
>NOTRAILINGBLANKS. This automatically truncates the transferred line
>after the last non-blank character. There is no such option, that I
>know of, for sftp transfers. The "sed" command could be used before
>transferring to remove trailing blanks from the input file. Something
>like:
>
>sed -E 's/ *$//;' real-input-file.txt >no-trailing-blanks-file.txt
>
>Then transfer no-trailing-blanks-file.txt, like: sftp
>no-trailing-blanks-file user@remote:/dir/ectory/real-input.file.txt
> 
Or, in a single command:
    ssh user@remote: "
        sed 's/ *$//' >/dir/ectory/real-input.file.txt
        " <real-input-file.txt

Yet, I wonder why the OP may want trailing blanks on z/OS and not on AIX.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to