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.";

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

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.";

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
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. 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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