6-1
6-2
6-3
Determining Fixed-Length Record Size for Files with Multiple Record
Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-4
Creating Variable-Length Records with the DEPENDING ON
Phrase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Creating Variable-Length Records with the RECORD VARYING
6-5
Phrase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-6
Creating Variable-Length Records and Using the OCCURS Clause
with the DEPENDING ON Phrase . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-7
Defining Fixed-Length Records with Multiple Record Descriptions . . .
Defining a Disk File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-8
6-9
Defining a Magnetic Tape File (OpenVMS) . . . . . . . . . . . . . . . . . . . . .
Defining a Magnetic Tape File (Tru64 UNIX) . . . . . . . . . . . . . . . . . . .
6-10
6-11
Using Environment Variables for File Specification . . . . . . . . . . . . . . .
Using Environment Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-12
6-13
Specifying Sequential File Organization and Sequential Access Mode
6-14
Specifying Relative File Organization and Random Access Mode for a
Relative File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Specifying Indexed File Organization and Dynamic Access Mode for
6-15
an Indexed File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-16
Specifying Line Sequential File Organization with Sequential Access
Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-17
SELECT Statements for Sequential Files with Sequential Access
Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
SELECT Statements for Relative Files with Sequential and Dynamic
6-18
Access Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-19
SELECT Statements for Indexed Files with Dynamic and Default
6-20
SELECT Statements for Line Sequential Files with Sequential Access
Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-21
6-22
6-23
6-24
6-25
6-26
6-27
6-28
6-29
6-30
6-31
Reading an Indexed File Sequentially . . . . . . . . . . . . . . . . . . . . . . . . .
6-32
6-33
6-34
6-35
6-36
6-9
6-10
6-10
6-11
6-11
6-11
6-12
6-15
6-16
6-16
6-19
6-19
6-21
6-21
6-21
6-22
6-23
6-23
6-24
6-24
6-25
6-26
6-27
6-30
6-30
6-33
6-35
6-38
6-39
6-40
6-41
6-42
6-43
6-45
6-46
6-49
xv
Need help?
Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?
Questions and answers