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

hi all:

Has anyone got a macro which can automatically check SAS log file 

 

Thank you 

purple

1 ACCEPTED SOLUTION
5 REPLIES 5
PaigeMiller
Diamond | Level 26

Check for what?

--
Paige Miller
Reeza
Super User

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


 

purpleclothlady
Pyrite | Level 9

Hi Reeza:

I use window SAS, thank you for this as a backup plan .

Purple

purpleclothlady
Pyrite | Level 9

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) ; 

purpleclothlady_1-1646228112792.png

 

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 5 replies
  • 3737 views
  • 4 likes
  • 4 in conversation