COBOL Manual for TNS/E Programs (H06.03+)
Environment Division
HP COBOL Manual for TNS/E Programs—520347-003
6-30
FILE-CONTROL Paragraph
alt-key
is an alphanumeric or unsigned numeric data item declared in the record
description entry of the file and is used to gain access to records within the file.
The size and location of alt-key must agree with the size and location of the
alternate key within the file, as defined when the alternate key file was
established by the Guardian environment File Utility Program (FUP). (For
information about FUP, see the File Utility Program (FUP) Reference Manual.)
DUPLICATES
means that alternate key values are not necessarily unique.
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.
STATUS
ISFILE
filestat
VST046.vsd










