in reply to Change Record Length For FTP

If you're sending to a mainframe, be sure to properly set LRECL for your dataset. Another complicating factor can be the ASCII/binary/EBCDIC conversions during transmission.

...roboticus

Replies are listed 'Best First'.
Re^2: Change Record Length For FTP
by TCM (Acolyte) on Jul 29, 2010 at 12:00 UTC
    Thank you roboticus. I'm not sure how to code the LRECL in the script. Before I posted this question on PerlMonks, I tried '$newreclen = quote site lrecl=94;', but perl didn't like 'lrecl'. How do I properly set LRECL?

      If you want to send a string to the remote site, you will need to tell Perl that you mean a string:

      $ftp->quot("site lrecl=94");

      Also see Net::FTP about the quot function.

        That's exactly what I needed, thank you very much Corion! I sincerly appreciate your time and talents!