Hello.
I run following code.
%macro ptest;
%let filrf=myfile;
%let rc=%sysfunc(filename(filrf,test.sas));
%let fid=%sysfunc(fopen(&filrf,a));
%if &fid > 0 %then %do;
%let rc=%sysfunc(fread(&fid));
%let rc=%sysfunc(fput(&fid,This is test data.));
%let rc=%sysfunc(fput(&fid, // mmm mmmm mmm));
%let rc=%sysfunc(fwrite(&fid));
%let rc=%sysfunc(fclose(&fid));
%end;
%mend;
%ptest;
It's work without errors. I recived output file, but in the output file two strings in the one line. I want recive:
This is test data.
mmm mmmm mmm
I need second string start from new line.
Thanks for help.
Irena