Recommended actions after an abnormal termination of an ODBA program
The suggestions given here are some common guidelines on what you should do if your program terminates abnormally.
- Document the error situation to help in investigating and correcting it. Some of the information
that can be helpful include:
- The program's PSB name
- The call function
- The terminal ID (online programs only)
- The contents of the AIB or the PCB
- The contents of the I/O area when the problem occurred
- If a database request was executing, the SSAs or SEGMENT and WHERE options, if any, the request used
- The date and time of day
- When your program encounters an error, it can pass all the required error information to a standard error routine.
- You can send a message to the system log by issuing a LOG request.