Return codes for the Reload function user exit routine


When you exit the user exit routine, register 15 must contain the decimal return code for the Reload function.

The following table lists possible return codes.

Return code

Routine

0

Register 15 must be set to 0 if no changes are to be made to the segment before placing the segment in the database.

4

Use the modified segment pointed to by A(work area). If the segment is to be modified before placing the segment in the database, register 15 must be set to 4.

8

Delete the segment. When deleting a segment, it is your responsibility to also delete all hierarchically dependent segments; dependent segments should also contain a return code of 8.

12

Delete the segment and all subsequent segments in this database record. This includes subsequent segments across the hierarchy as well as down the hierarchy. The Reload function will delete the dependent segments under this parent and delete the rest of this root’s segments that are hierarchically after the deleted segment.

16

Put the current HDAM segment into the overflow area.

20

Put the current HIDAM segment into a new block.

100+

Terminate the loading process, and pass this return code back as the job step condition code. This can be any three-digit number.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*