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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.