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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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