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

How to write a note to the log without involving data step compiler or macro processor?

 

%put I am crazy; /*% is a macro token , so not allowed*/

 

data _null_;

put 'I am crazy'; /*executed by data step compiler , so not allowed*/

run;

 

Any ODS possibility?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

If you can rely on the fact that a global statement is echoed to the log:

 

 SYSECHO "Here is my SAS log note.";

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

View solution in original post

2 REPLIES 2
ChrisHemedinger
Community Manager

If you can rely on the fact that a global statement is echoed to the log:

 

 SYSECHO "Here is my SAS log note.";

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
novinosrin
Tourmaline | Level 20

WOW!!! That's incredible.Jeez!!!!! That's not fair to even think along those lines to post a brilliant solution,

 

Thank you * 1e6. However very jealous and accepted. 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 2 replies
  • 1112 views
  • 2 likes
  • 2 in conversation