Architecting, installing and maintaining your SAS environment

LSF exit code in relation to SAS return code

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 16
Accepted Solution

LSF exit code in relation to SAS return code

Can anyone tell me which SAS return codes result in what LSF exit codes? For instance, I've got a return code of 4 that results in LSF exit code 1. But an error in another job results in exit code 21. What is the logic behind this?


Accepted Solutions
Solution
‎08-17-2017 01:57 PM
Super User
Posts: 3,250

Re: LSF exit code in relation to SAS return code

Posted in reply to S_Burggraaff

LSF exit codes don't necessarily line up with SAS return codes. We have had problems with LSF returning non-zero return codes but the SAS log is clean. I've found Googling LSF exit codes quite useful.

I would definitely not rely on LSF exit codes to indicate if the SAS job failed or not. To me there is no substitute for examining the batch SAS logs. Do you not have access to these as they just text files in a log folder.

View solution in original post


All Replies
Trusted Advisor
Posts: 3,211

Re: LSF exit code in relation to SAS return code

Posted in reply to S_Burggraaff

LSF does not run SAS code. LSF runs OS scripts (unix shell types) that are calling the SAS system to run SAS code.

It is the OS script that returns the exit code review that one.  Scalability Community: SAS® Platform Notes  

---->-- ja karman --<-----
Occasional Contributor
Posts: 16

Re: LSF exit code in relation to SAS return code

Thanks Jaap. Unfortunately I don’t have the authorization to check the sasbatch script. But when I look at the example script then that looks like the exit codes we are seeing in our batch.

Solution
‎08-17-2017 01:57 PM
Super User
Posts: 3,250

Re: LSF exit code in relation to SAS return code

Posted in reply to S_Burggraaff

LSF exit codes don't necessarily line up with SAS return codes. We have had problems with LSF returning non-zero return codes but the SAS log is clean. I've found Googling LSF exit codes quite useful.

I would definitely not rely on LSF exit codes to indicate if the SAS job failed or not. To me there is no substitute for examining the batch SAS logs. Do you not have access to these as they just text files in a log folder.

Trusted Advisor
Posts: 3,211

Re: LSF exit code in relation to SAS return code

Posted in reply to S_Burggraaff

IBM Knowledge Center (LSF 9.1.3 exit codes) Also there the logic is release dependent .

---->-- ja karman --<-----
🔒 This topic is solved and locked.

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

Discussion stats
  • 4 replies
  • 2129 views
  • 2 likes
  • 3 in conversation