BookmarkSubscribeRSS Feed
GN0001
Barite | Level 11

Hello team,

I have inherited SAS code that I need to understand.

I am trying to run each piece of code or I run the whole code, nothing has been written to SAS Log. I wonder if there a keyword that prevents from everything written to SAS log.

Regards,

blueblue

Blue Blue
11 REPLIES 11
GN0001
Barite | Level 11
Hello,
Thanks for the response. I have not seen nonotes on the code. I will search for it tomorrow.
Regards,
blueblue
Blue Blue
tarheel13
Rhodochrosite | Level 12
Does it have proc printto?
GN0001
Barite | Level 11

Hello team,

Yes it has logpath, logfile and printto. I took the off, still I can't view the log, so I can't understand what code does.

thanks,

blueblue

 

Blue Blue
GN0001
Barite | Level 11

Yes, it does.

Thanks,

blueblue

Blue Blue
Reeza
Super User

And %INCLUDE means the code in the link isn't piped to the logs either unless the SOURCE option is specified.

And most importantly - did you actually call the macro?

GN0001
Barite | Level 11

I am not worried about include statement which is a call to other macros in other file and I saw macros in that file has include statements, which in turn point to other files, nest include statement.

 

The code has source and source2 in the beginning of the code. 

 

I don't want to save the log in a location as the owner of code has done it. I want to view the code in the log so I can find out how the program works.

 

Thanks,

blue blue

Blue Blue
GN0001
Barite | Level 11

Hello Reeza,

I can see source and source2. 

I will let you know if there is a call to the Macro. I just can't see anything written to the log. Log itself is saved somewhere in a directory. I can view it, I'd like to view it in sas log, the one which is gone after we close the program. That way, I can understand what each code does.

Regards,

blueblue

Blue Blue
SASKiwi
PROC Star

Comment or remove PROC PRINTTO then.

Ksharp
Super User
OPTION NONOTES nosource nosource2;
GN0001
Barite | Level 11

Hello team,

I commented out logpath and logfile and now I can see the log.

Regards,

blue blue

Blue Blue

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 11 replies
  • 1706 views
  • 5 likes
  • 5 in conversation