COBOL Manual for TNS and TNS/R Programs

Environment Division
HP COBOL Manual for TNS and TNS/R Programs522555-006
6-24
FILE-CONTROL Paragraph
Table 6-3. Summary of File-Control Entry Clauses
File-Control
Entry Clause
1
File Type
Sequential
Line
Sequential Relative Indexed Queue
Sort-
Merge
SELECT
2
RRRRRR
ASSIGN R R R R R R
RESERVE O O O O O NA
ORGANIZATION O O R R R NA
PADDING
CHARACTER
ONANANANANA
RECORD
DELIMITER
ONANANANANA
ACCESS
MODE
3
OOOOONA
RECORD KEY NA NA NA R R NA
RELATIVE KEY NA NA O if
access
mode is
sequential,
R
otherwise
NA NA NA
ALTERNATE
RECORD KEY
ONAOONANA
FILE STATUS O O O O O NA
R=Required
O=Optional
NA=Not Applicable
1. File-control entry clauses have the same syntax for each file type, except as noted.
2. SELECT clause syntax is the same for all file types except sort-merge.
3. ACCESS MODE clause syntax is different for all types.