CHKEMPTYUL control statement

Specifies whether to check if the unloaded data set contains segment data. Also, specifies the return code that is set when no segment data is found in the unloaded data set.

If DUMMY is specified for the DFSUINPT DD statement, this check is not applicable.

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

Read syntax diagram
                .-YES,WARN,4-----------.   
                |             .-,4-.   |   
                |     .-,WARN-+----+-. |   
                |     |       '-,n-' | |   
>>-CHKEMPTYUL=--+-YES-+--------------+-+-----------------------><
                '-NO-------------------'   

YES
Specifies to check if segment data exists in the unloaded data set.
WARN,n
Sets the job step return code to n when the unloaded data set contains no segment data. For n, specify a left-aligned decimal number in the range of 1 - 4.

If you specify CHKEMPTYUL=YES or CHKEMPTYUL=YES,WARN, CHKEMPTYUL=YES,WARN,4 is used.

NO
Specifies not to check if segment data exists in the unloaded data set. The return code is not changed even if no segment data exists in the unloaded data set.

The return code that you specify with CHKEMPTYUL can be overridden by a higher return code set for some other reason.

Tip: The default value of the CHKEMPTYUL control statement can be changed. For details, see Setting installation default options.