Compaq COBOL AAQ2G1FTK User Manual page 15

Compaq computer accessories user manual
Table of Contents

Advertisement

6-1
Sample Record Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Determining Fixed-Length Record Size . . . . . . . . . . . . . . . . . . . . . . . .
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
for a Sequential File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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
Sequential Access Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-20
SELECT Statements for Line Sequential Files with Sequential Access
Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-21
OPEN and CLOSE Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-22
Creating a Sequential File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-23
Creating a Line Sequential File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-24
6-25
Creating a Relative File in Random Access Mode . . . . . . . . . . . . . . . .
Creating and Populating an Indexed File . . . . . . . . . . . . . . . . . . . . . .
6-26
6-27
Using Segmented Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Reading a Sequential File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-28
6-29
Reading a Relative File Sequentially . . . . . . . . . . . . . . . . . . . . . . . . . .
Reading a Relative File Randomly . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6-30
6-31
Reading a Relative File Dynamically . . . . . . . . . . . . . . . . . . . . . . . . . .
Reading an Indexed File Sequentially . . . . . . . . . . . . . . . . . . . . . . . . .
6-32
6-33
Reading an Indexed File Randomly . . . . . . . . . . . . . . . . . . . . . . . . . . .
Reading an Indexed File Dynamically . . . . . . . . . . . . . . . . . . . . . . . . .
6-34
6-35
6-36
Rewriting a Sequential File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the COBOL AAQ2G1FTK and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents