BookmarkSubscribeRSS Feed
MIKEM44
Calcite | Level 5

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 

 

 

1 REPLY 1
SASKiwi
PROC Star

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.

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 610 views
  • 0 likes
  • 2 in conversation