Handling reason codes
After initialization, the access control authorization routine returns reason code EXPLRC2. EXPLRC2 determines how Db2 processes return code EXPLRC1 that is returned during authorization checking.
About this task
Value | Meaning |
---|---|
-1 | Identifies the default exit routine shipped with Db2. If you replace or modify the default exit, you should not use this value. |
16 | Indicates to Db2 that it should terminate if the exit routine returns EXPLRC1=12, an invalid EXPLRC1 or abnormally terminates during initialization or authorization checking. When the exit routine sets the reason code to 16, Db2 does an immediate shutdown, without waiting for tasks to end. For long-running tasks, an immediate shutdown can mean that recovery times are long. |
Other | Ignored by Db2. |
Field EXPLRC2 enables you to put in any code for authorization
check. You can use EXPLRC2 to determine why the authorization check
in the exit routine failed. On authorization failures, the reason
code is included in the IFCID 140 trace record.