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

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

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;

 

View solution in original post

2 REPLIES 2
Tom
Super User Tom
Super User

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;

 

kelSAS
Obsidian | Level 7
Thank you so much. You saved lots of space in the disk and time for me!

sas-innovate-wordmark-gradient-background 3.pngSAS Innovate

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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
  • 2120 views
  • 1 like
  • 2 in conversation