BookmarkSubscribeRSS Feed
U2
Calcite | Level 5 U2
Calcite | Level 5

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
Calcite | Level 5 U2
Calcite | Level 5

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: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 177 views
  • 0 likes
  • 3 in conversation