Suppressing the macro script in the Log

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 19
Accepted Solution

Suppressing the macro script in the Log

Hi, 

 

I am using SAS EM 12.1. 

 

I have a sas code node that calling quite some number of macros. Is there a way that i can suppress the selected macro scripts in the log file? And only show anything that I "%put"? 

 

 


Accepted Solutions
Solution
‎05-22-2018 02:07 AM
Super User
Posts: 10,215

Re: Suppressing the macro script in the Log

Use

options nosource;

to suppress the writing of the macro source codes to the log.

options source;

turns it back on.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code

View solution in original post


All Replies
PROC Star
Posts: 2,340

Re: Suppressing the macro script in the Log

Calling macros should not show any of the macro code in the log unless you have options mprint, symbolgen, or mlogic enabled.

If this does not answer your question please provide an example of what is shown that you want hidden.

Solution
‎05-22-2018 02:07 AM
Super User
Posts: 10,215

Re: Suppressing the macro script in the Log

Use

options nosource;

to suppress the writing of the macro source codes to the log.

options source;

turns it back on.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Occasional Contributor
Posts: 19

Re: Suppressing the macro script in the Log

Posted in reply to KurtBremser
Thanks. I managed to remove mine using
options nosource nosource2;
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 158 views
  • 0 likes
  • 3 in conversation