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.

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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