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!

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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