HP COBOL II/XL Quick Reference Guide (31500-90015)
4- 10
Table 4-2. ANSI COBOL'85 File Status Codes (cont.)
--------------------------------------------------------------------------------
| | | | |
| | | RANDOM ACCESS or | |
| | SEQUENTIAL | RELATIVE | INDEXED |
| | | | |
| | | | |
| L | 41-OPEN on file | 41-OPEN on file | 41-OPEN on file |
| O | that is | that is | that is |
| G | already open. | already open. | already open. |
| I | 42-CLOSE for file | 42-CLOSE for file | 42-CLOSE for file |
| C | not open. | not open. | not open. |
| E | 43-No READ before | 43-No READ before | 43-No READ before |
| R | REWRITE. | REWRITE/DELETE. | REWRITE/DELETE. |
| R | 44-Boundary | 44-Boundary | 44-Boundary |
| O | violation. | violation. | violation. |
| R | -Record too big | -Record too big | -Record too big |
| | or too small. | or too small. | or too small. |
| | -Rewrite record | 46-READ after | 46-READ after |
| | not same size. | AT END or | AT END or |
| | 46-READ after | after | after |
| | AT END or | unsuccessful | unsuccessful |
| | after | READ or START. | READ or START. |
| | unsuccessful | 47-READ or START | 47-READ or START |
| | READ. | on file not | on file not |
| | 47-READ on file | open for | open for |
| | not open | input or I-O. | input or I-O. |
| | for input. | 48-WRITE on file | 48-WRITE on file |
| | 48-WRITE on file | not open for | not open for |
| | not open for | output or I-O. | output or |
| | output. | 49-REWRITE or | I-O. |
| | 49-REWRITE on file | DELETE on | 49-REWRITE/DELETE |
| | not open for I-O. | file not open | on file not |
| | | for I-O. | open for I-O. |
| | | | |
--------------------------------------------------------------------------------
(1) Does not apply to random files.