SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

can a sas job exit code be defined manually?

Accepted Solution Solved
Reply
Contributor
Posts: 23
Accepted Solution

can a sas job exit code be defined manually?

We have a requirement, to schedule the jobs in the LSF scheduler, based on the exit code of a job. Is there any possibility to specifiy a user defined exit code for a job in SAS DI?


Accepted Solutions
Solution
‎11-06-2012 10:33 AM
Super User
Posts: 5,255

Re: can a sas job exit code be defined manually?

By programming you can use abort (return/abend) statement within a data step.

In some cases you can use the status handling alternatives in DI Studio for this, depending on how you wish do implement it.

http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#n0d8f2zgsbjtqwn1f3...

Data never sleeps

View solution in original post


All Replies
Solution
‎11-06-2012 10:33 AM
Super User
Posts: 5,255

Re: can a sas job exit code be defined manually?

By programming you can use abort (return/abend) statement within a data step.

In some cases you can use the status handling alternatives in DI Studio for this, depending on how you wish do implement it.

http://support.sas.com/documentation/cdl/en/hostwin/63047/HTML/default/viewer.htm#n0d8f2zgsbjtqwn1f3...

Data never sleeps
Contributor
Posts: 23

Re: can a sas job exit code be defined manually?

Thanks Linus. The abort statement works.

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 1116 views
  • 0 likes
  • 2 in conversation