CHKTRAIL control statement

Specifies whether to check if a trailer record exists in the *HD or *SH format of the unload data set.

This control statement is optional. If you do not specify this control statement, CHKTRAIL=YES,WARN is used.

Read syntax diagram
              .-YES,WARN-------.   
              |     .-,WARN--. |   
>>-CHKTRAIL=--+-YES-+-,ERROR-+-+-------------------------------><
              '-NO-------------'   

YES
Specifies that the existence of the trailer record is checked.
WARN
Specifies IMS™ HP Load to continue processing, setting the job step return code to 4 when a trailer record is not found in the unload data set.
If you specify only CHKTRAIL=YES, CHKTRAIL=YES,WARN is assumed.
ERROR
Specifies IMS HP Load to end with return code 16 when a trailer record is not found in the unload data set.
NO
Specifies that the existence of trailer record is not checked. IMS HP Load will continue processing even if a trailer record does not exist in the unload data set.
Tip: The default value of the CHKTRAIL control statement can be changed. For details, see Setting installation default options.