Table 44. Availability of a File | ||
OPENed As | File is Available | File is Unavailable |
---|---|---|
INPUT | Normal open | Open is unsuccessful |
INPUT (optional file) |
Normal open |
Normal open; the first read causes the at end condition or the invalid key condition |
I-O | Normal open | Open is unsuccessful |
I-O (optional file) |
Normal open |
Open causes the file to be created |
OUTPUT |
Normal open; the file contains no records |
Open causes the file to be created |
EXTEND | Normal open | Open is unsuccessful |
EXTEND (optional file) |
Normal open |
Open causes the file to be created |
Table 45. Permissible Statements for Sequential Files | ||||
Statement |
Open Mode | |||
Input | Output | I-O | Extend | |
---|---|---|---|---|
READ | X | X | ||
WRITE | X | X | ||
REWRITE | X |
Table 46 shows the permissible statements for indexed and relative files. An 'X' indicates that the specified statement, used in the access mode given for that row, can be used with the OPEN mode given at the top of the column.
Table 46. Permissible Statements for Indexed and Relative Files | |||||
File Access Mode |
Statement |
Open Mode | |||
Input | Output | I-O | Extend | ||
---|---|---|---|---|---|
Sequential |
READ | X | X | ||
WRITE | X | X | |||
REWRITE | X | ||||
START | X | X | |||
DELETE | X | ||||
Random |
READ | X | X | ||
WRITE | X | X | |||
REWRITE | X | ||||
START | |||||
DELETE | X | ||||
Dynamic |
READ | X | X | ||
WRITE | X | X | |||
REWRITE | X | ||||
START | X | X | |||
DELETE | X |
X Table 47 shows the permissible input-output statements for line
X sequential files. An 'X' indicates that the specified statement can
X be used with the open mode given at the top of the column.
X Table 47. Permissible Statements for Line Sequential Files (Workstation X Only) |
||||
X X Statement X |
X Open Mode X ‘ X Input |
|||
X ‘ X Output |
X ‘ X I-O |
X ‘ X Extend |
||
---|---|---|---|---|
X READ | X X | X | X | X |
X WRITE | X | X X | X | X X |
X REWRITE | X | X | X | X |
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.