The XDTLC user exit is invoked at the completion of data table loading--whether successful or not. The user exit is not invoked if the data table is closed for any reason before loading is complete.
The exit program is informed if the loading did not complete successfully--see field UEPDTORC. This could occur, for example, if the maximum number of records was reached or there was insufficient virtual storage. In this case, the exit program can request that the file is closed immediately, by setting the return code.
Depending on the return code value, the following action is taken by CICS®:
Return code | Action |
---|---|
UERCDTOK | No action; the file remains open. This is the default if the exit is not activated. |
UERCDTCL | Close the file. |