ContentsIndexPreviousNext

5.4.8 VALUE OF FILE-ID Clause

The VALUE OF FILE-ID clause specifies the file's external name. (This can also be accomplished by the file's ASSIGN clause. The VALUE OF FILE-ID clause is provided for compatibility with other COBOL compilers.)

General Format

[ VALUE OF { FILE-ID } IS id-name ]
           { ID      }

Syntax Rules

1. Id-name is either a non-numeric literal or the name of an alphanumeric data item in Working-Storage. The value of this name is used as the file's external name.

2. If a file-spec is specified in the file's ASSIGN clause, id-name must be identical to file-spec.