1. Sequential files:
S.NO. |
File Status |
|
1 |
Attempt to read from a file after reaching EOF. |
10 |
2 |
Attempt to open a file that was earlier closed with LOCK option. |
38 |
3 |
Attempt to open a file, which is already open. |
41 |
4 |
Attempt to close a file that was not opened. |
42 |
5 |
Attempt to rewrite a record whose size was not same as the record being replaced. (Boundary Violation) |
44 |
6 |
Attempt to read from a file after the EOF was reached by a previous read statement. |
46 |
7 |
Attempt to read from a file without opening it. |
47 |
8 |
Attempt to read from a file whose attributes did not conform to the FD. |
47 |
9 |
Attempt to read from a file that was not opened in the INPUT or I-O modes. |
48 |
10 |
Attempt to write to a file without opening it. |
48 |
11 |
Attempt to write to a file that was not opened in the OUTPUT or EXTEND modes. |
48 |
12 |
Attempt to rewrite a record that was not opened in the I-O mode. |
49 |
13 |
Attempt to open a non-existing file in the INPUT and I-O modes. |
90 |
14 |
Attempt to read a file that was read by another program in the I-O mode. |
99 |
S.NO. |
File Status |
|
1 |
Attempt to read a record with a duplicate alternate key. |
02 |
2 |
Attempt to write a record with a duplicate ALTERNATE KEY. |
02 |
3 |
Attempt to change the RECORD KEY value of a sequentially accessed Index sequential file before rewriting. |
21 |
4 |
Attempt to write a record with a duplicate prime RECORD KEY. |
22 |
5 |
Attempt to randomly read a record that did not exist. |
23 |
6 |
Attempt to position the file pointer from a record whose prime RECORD KEY did not exist using the START statement. |
23 |
7 |
Attempt to write a record with prime RECORD KEY larger than the size defined in the FD. |
24 |
8 |
Attempt to delete a record without reading it. |
43 |
9 |
Attempt to delete a record without opening the file in the I-O mode. |
49 |