BookmarkSubscribeRSS Feed
U2
Fluorite | Level 6 U2
Fluorite | Level 6

Hi Team ,

 

i have sas code and when ever sas code is failed with error then i need to get email notification that sas code is failed .

 

i have used Automatic variable &syscc and executed in sas studio and value is returning 1012 and same code if i run in SAS DI studio then value is returning as 3000 .

 

can you please tell me why the values are getting in different .

3 REPLIES 3
LinusH
Tourmaline | Level 20
You mean running in batch vs running inside DI Studio application?
Please share logs.
Data never sleeps
U2
Fluorite | Level 6 U2
Fluorite | Level 6

yeah i ran using batch mode and i got values is syscc is 3000 and when i run in sas studio then syscc value is 1012

ballardw
Super User

@U2 wrote:

Hi Team ,

 

i have sas code and when ever sas code is failed with error then i need to get email notification that sas code is failed .

 

i have used Automatic variable &syscc and executed in sas studio and value is returning 1012 and same code if i run in SAS DI studio then value is returning as 3000 .

 

can you please tell me why the values are getting in different .


Show us the LOG from both jobs.

 

In many respects the specific codes returned at the job level aren't very specific. Look at documentation of SYSERR codes for some. Generally I would say the specific error codes might point me to the types of statements to concentrated on finding in the log. For example a 1020, I/O problem I would look at data sources such as filenames or options reading/ writing external files but I don't know exactly what happened.

sas-innovate-wordmark-2025-midnight.png

Register Today!

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.


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
  • 3 replies
  • 486 views
  • 0 likes
  • 3 in conversation