I am writing to the Mainframe a file, using FTP the filename is a simple
FILENAME TEST1 FTP "MY.MAINF.FILE" HOST='MF' RCMD='type; ascii;
site=DEBUG DIR FIXrecFM 80 Lrecl=80 Recfm=FB BlockSize=27920 mbsendeol=CRLF'
lrecl=80 RECFM=FB PASS="&passwrd";
Data _null_;
FILE TEST1 lrecl=80 mod ;
put 'line 1 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
put 'line 2 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
put 'line 3 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx';
run;
however I only get Line 1 and a truncated in the log. As if it is not adding the CR LF to the MF file
Not sure about your FILENAME statement and all the RCMD options. Try removing the ASCII option and let the file translate to EBCDIC.
Please post your SAS log including code lines and notes using the </> menu option.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.