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.
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.