Fixing Recovery Problems
The lacobrts process has several return codes that determine if a step was successful. The UNIX shell automatically interprets the return code when lacobrts is run from the command line or from a shell script. Third-party products that start the lacobrts process must obtain and interpret the lacobrts return code. See the manufacturer's documentation for the batch job scheduler you are using to determine how this works.
The lacobrts process calls the C-language exit function with the return code parameters listed in the following table. The return values are obtained from the WS-RETURN-CODE working storage section in the application program.
Return Code | Interpretation |
---|---|
0 | Step Successful |
1 - or - Any Signal | Needs Recovery |
2 | Invalid Parameters |
3 | Process Terminated Due to Deadlock Time-out (SQL Databases Only) |
If a report fails with a status of 1 or receives a signal, investigate the log to determine the error. Once the error is fixed, re-run the lacobrts command to continue the job. If a report fails with an error of 2, correct the parameter and resubmit the job.