BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
christoph_hofme
Calcite | Level 5

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!

1 ACCEPTED SOLUTION

Accepted Solutions
FreelanceReinh
Jade | Level 19

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.

 

View solution in original post

4 REPLIES 4
Amir
PROC Star

Hi @christoph_hofme,

 

Does using the putlog statement in place of the put statement make any difference?

 

 

Kind regards,

Amir.

christoph_hofme
Calcite | Level 5
PUTLOG seems not to be working with Proc FCMP. Thanks anyway!
FreelanceReinh
Jade | Level 19

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.

 

christoph_hofme
Calcite | Level 5
Just what I was looking for. Thanks!
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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1424 views
  • 0 likes
  • 3 in conversation