The maximum record size for the file is established at the time the file is created, and cannot subsequently be changed.
After the WRITE statement is executed, the logical record is no longer available in record-name-1, unless:
The file position indicator is not affected by execution of the WRITE statement.
The number of character positions required to store the record in a file might or might not be the same as the number of character positions defined by the logical description of that record in the COBOL program. (See "PICTURE Clause Editing" in topic 5.3.11.4 and "USAGE Clause" in topic 5.3.16.)
If the FILE STATUS clause is specified in the File-Control entry, the associated status key is updated when the WRITE statement is executed, whether or not execution is successful.
The WRITE statement can only be executed for a sequential file opened in OUTPUT or EXTEND mode for QSAM files.
Subtopics:
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.