COBOL Manual for TNS and TNS/R Programs
Environment Division
HP COBOL Manual for TNS and TNS/R Programs—522555-006
6-33
FILE-CONTROL Paragraph
FILE STATUS clause
defines filestat as the file-status data item for the file. When a COBOL run-
time IO routine completes an operation on the file, it stores the status code in
filestat before returning control to your program (see I-O Status Code).
filestat
is a 2-character alphanumeric, nonnational data item defined in the Working-
Storage Section, Extended-Storage Section, or Linkage Section.
Usage Considerations:
•
EDIT Files
A file assigned to an EDIT file can be open for output only if it has the file code
101. It can be given the file code 101 by any of:
°
The application that created it outside the COBOL program
°
An ASSIGN command that was active during run unit initialization (the ASSIGN
command must have a CODE phrase)
°
The COBOL_ASSIGN_ routine
The buffer size of an EDIT file created in the CRE is determined:
1. If an ASSIGN command includes the BLOCK parameter, that value is the
buffer size. (ASSIGN commands are allowed only in the Guardian
environment.)
2. If Step 1 is not true and the file description entry for the EDIT file includes a
BLOCK CONTAINS clause, then that value is the buffer size.
3. If Step 2 is not true, the buffer size is 4,096.
STATUS
ISFILE
filestat
VST046.vsd