![]() Fatal Errors |
![]() DEVELOPER |
![]() |
When a kernel error occurs, the kernel detects if it is a fatal error by checking the list of errors that require rollback. (This is performed even if transaction processing is not active.) If the error is fatal, a message number is returned to the caller after executing the Task error function.
If desired, the third party program can use the P4API to query the kernel for the error message string and the host system error for the prior Task that was executed.
Non-S/390 Environments
If an application error causes the application to exit, the error can be returned by using the logic command TASK_EXIT()
S/390 Environments
The TASK_EXIT() command is not available, but a Task function can link to the function specified as the Exit function for that Task. A forced application exit can occur under these circumstances. Refer to the S/390 PROIV Environment Guide for specific information.
Topic ID: 540058