The omitted-argument condition determines whether an argument was provided to a function, method, or program.
data-name-1 IS [ NOT ] OMITTED
- Data-name-1 must be a formal parameter defined in the source element in which this condition is specified.
- The result of the OMITTED test is true if one of the following conditions applies:
- If the OMITTED phrase, rather than an identifier or literal, is specified as the argument corresponding to data-name-1 in
the statement that activated this program, function, or method
- The argument corresponding to data-name-1 was a trailing argument that was omitted from the activating statement
- If the argument corresponding to data-name-1 is itself a formal parameter for which the omitted-argument condition is true.
- When used, NOT and the keyword OMITTED specify one condition to be executed for truth values.