I am using SAS on my computer to log on a remote server and run my codes in batches. I had always included a statement looking like below.
%include "c:\Users\Me\macro1.sas";Then, whenever I batch submit, SAS would run without telling me that it successfully loaded all the macros. All of sudden, I am getting all of my macro code written on my log file with comments like below
NOTE: %INCLUDE (level 1) ending.
2589 +
2590 +%let dropvar = ;
2591 +%if &byvar = none %then %do;
2592 +
2593 +data xtemp;
2594 +set xtemp;
I have about 20 macros to load everytime I batch submit, but about 5 of them are giving me the log file. Would anyone possibly know the cause and the solution not to have these anymore? For one line of code, I am having more than 6,000 lines of log. Thank you for your help in advance.
Just tell it you don't want it to echo the lines to the log. Either in the statement.
%include "c:\Users\Me\macro1.sas" / nosource2;
Or by setting the system option.
options nosource2;
Just tell it you don't want it to echo the lines to the log. Either in the statement.
%include "c:\Users\Me\macro1.sas" / nosource2;
Or by setting the system option.
options nosource2;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.
Ready to level-up your skills? Choose your own adventure.