The OMITTED-ARGUMENT condition determines whether an argument has been provided for a program or a method.
Format
data-name-1 IS [NOT] OMITTED
Syntax rules
data-name-1 must be defined in the LINKAGE SECTION with level number 01 or 77. The data description entry for data-name-1 must not contain a REDEFINES clause.
data-name-1 must be specified in the USING phrase of the Procedure Division header of the source element in which this condition is contained.
General rules
The result of the IS OMITTED test is true:
if the OMITTED phrase is specified as the current value for the formal parameter data-name-1 of the called program or called method.
if no current value was specified for the formal parameter data-name-1; this is only possible for parameters at the end of the USING list, even if no value was specified for all subsequent parameters.
If NOT is specified, the truth value as per item No. 1 is reversed.