the following code
proc fcmp ;
X = 3 ;
Y = 4 ;
put "some text" @ ;
put X= ;
put _ALL_ ;
run ;
does not generate any output in the log. By redirecting the output like this
ods listing file='~/FCMPOUT.txt';
proc fcmp ;
X = 3 ;
Y = 4 ;
put "some text" @ ;
put X= ;
put _ALL_ ;
run ;
ods listing close;
the output is written to the text file:
some text X=3
X=3 Y=4
Is there any way to send this directly to the log ?
Thanks!
Hallo @christoph_hofme and welcome to the SAS Support Communities (as a poster)!
Insert the line
file log;
between the PROC FCMP statement and the first PUT statement.
Hi @christoph_hofme,
Does using the putlog statement in place of the put statement make any difference?
Kind regards,
Amir.
Hallo @christoph_hofme and welcome to the SAS Support Communities (as a poster)!
Insert the line
file log;
between the PROC FCMP statement and the first PUT statement.
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.