OPTIONAL-FILE

Makes the Compiler treat all files opened for I-O or EXTEND as optional.

Syntax:
>>-.---.-.----.--OPTIONAL-FILE-------------><
   +-/-+ +-NO-+
Parameters:

None

Properties:
Default: OPTIONAL-FILE (DIALECT DIALECT
Phase: Syntax check
$SET: Initial
Dependencies:

Set to OPTIONAL-FILE immediately by NORM. Set to NOOPTIONAL-FILE immediately by RM or RM"ANSI".

Comments:

Under ANSI'85 Standard COBOL, a file is treated as optional only if it has the OPTIONAL phrase in its SELECT statement. For compatibility with the ANSI'85 Standard you must specify the NOOPTIONAL-FILE directive.

See Also: