Architecting, installing and maintaining your SAS environment

Exit code in LSF

Posts: 33

Exit code in LSF

Hi All,


Many times, we are getting exit code 102 in platform lsf v9.1 on SAS 9.4 grid env. It does not repeat for few jobs (when run on next day) but is persistent for other jobs.


Could I please get help to resolve this issue.




Super User
Posts: 3,856

Re: Exit code in LSF

Posted in reply to MarkNicholas

I suggest that this type of problem is best progressed with SAS Tech Support if you haven't done so already. From my own experience LSF errors are tricky to diagnose.

Regular Contributor
Posts: 176

Re: Exit code in LSF

Posted in reply to MarkNicholas
Can you see what hosts the jobs are being submitted to? I had an issue with Platform Process Manager and LSF submitting jobs to non-compute nodes in my grid. I had to create a queue for batch jobs, associate only compute nodes with the queue and then make sure flow properties were set so it would submit to that queue. Not sure if this is the same issue you're having, though.
Trusted Advisor
Posts: 1,737

Re: Exit code in LSF

Posted in reply to MarkNicholas



this not is not directly related to your issue, but it should be able to give you and SAS Technical Suppport additional insight than a plain exit code 102.


Problem Note 50749: Submitting a SAS® job to a SAS® grid environment might fail with the error "Could not Start Grid Job":


New Contributor
Posts: 4

Re: Exit code in LSF

[ Edited ]
Posted in reply to JuanS_OCS

When sasgsub returns an RC=102, chances are that you are trying to run it with the -GRIDSASOPTS parameter to pass in values to the sas program that you're trying to execute.


Here is the correct syntax for that:


sasgsub -GRIDSUBMITPGM ~/ -GRIDSASOPTS "(-sysparm "arg1")" -GRIDWAITRESULTS -GRIDWORK /sas/gridwork


Note the double quoting around the brackets then again around the actual argument.


You probably were trying to use a variation like one of the ones below, which do NOT work and will give you the sasgsub/lsf RC=102 exit code.


sasgsub -GRIDSUBMITPGM ~/ -GRIDSASOPTS "(sysparm arg1)" -GRIDWAITRESULTS -GRIDWORK /sas/gridwork

sasgsub -GRIDSUBMITPGM ~/ -GRIDSASOPTS 'sysparm arg1' -GRIDWAITRESULTS -GRIDWORK /sas/gridwork

sasgsub -GRIDSUBMITPGM ~/ -GRIDSASOPTS "sysparm arg1" -GRIDWAITRESULTS -GRIDWORK /sas/gridwork

Ask a Question
Discussion stats
  • 4 replies
  • 1 like
  • 5 in conversation