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

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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
  • 4001 views
  • 4 likes
  • 4 in conversation