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
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
Yes, it does.
Thanks,
blueblue
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?
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
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
Comment or remove PROC PRINTTO then.
Hello team,
I commented out logpath and logfile and now I can see the log.
Regards,
blue blue
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.
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.