BookmarkSubscribeRSS Feed
Citrine10
Obsidian | Level 7

Hi there

 

I am automating error checking in some of our processes. When I get the error emailed to me, I am getting the last error in the log. How do I ensure I get the 1st error message?

I am emailing myself the following:

&syserrortext

Is there any other one I can use so I get exactly the first error?

1 REPLY 1
Quentin
Super User

There is not an automatic macro variable that stores the first error.  One way to get the first error is to parse the log file.  If you search lexjansen.com for user group papers on log parsing, you will find lots of approaches.  My favorite approach is: https://www.lexjansen.com/nesug/nesug01/cc/cc4008.pdf .

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
  • 1 reply
  • 523 views
  • 1 like
  • 2 in conversation