hi all:
Has anyone got a macro which can automatically check SAS log file
Thank you
purple
Check for what?
If you're using Studio or EG it provides a summary of errors that you can navigate?
Otherwise, you can search lexjansen for already pre-written log parsers.
https://www.lexjansen.com/search/searchresults.php?q=log%20parser
@purpleclothlady wrote:
hi all:
Has anyone got a macro which can automatically check SAS log file
Thank you
purple
Hi Reeza:
I use window SAS, thank you for this as a backup plan .
Purple
Hi all and Irackley:
Thanks so much for quick reply and support.
https://support.sas.com/resources/papers/proceedings17/1173-2017.pdf
I found the same source and tested by adding some texts onto my log, and it works correctly and easily. eg
index(upcase(line), "reemerged") or
index(upcase(line), "repeats") or
/****This will check all logs within folder --temp***/
%checklogs
(loc=C:\ temp\LOG) ;
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.