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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.