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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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