HP COBOL II/XL Quick Reference Guide (31500-90015)

4- 11
Table 4-3. ANSI COBOL'74 File Status Codes
--------------------------------------------------------------------------------
| | | | |
| | | RANDOM ACCESS or | |
| | SEQUENTIAL | RELATIVE | INDEXED |
| | | | |
--------------------------------------------------------------------------------
| | | | |
| S | 00-Successful. No | 00-Successful. No | 00-Successful. No |
| U | more information | more information | more information |
| C | available. | available. | available. |
| C | | | 02-READ current |
| E | | | key = next |
| S | | | key value. |
| S | | | -WRITE or REWRITE |
| F | | | creates |
| U | | | duplicate key |
| L | | | for alternate |
| | | | key in which |
| | | | duplicates are |
| | | | allowed. |
| | | | |
--------------------------------------------------------------------------------
| | | | |
| A | 10-EOF or optional | 10-EOF or optional | 10-EOF or optional |
| T | file not | file not | file not |
| E | present. | present. | present. |
| N | | | |
| D | | | |
| | | | |
--------------------------------------------------------------------------------
| | | | |
| I | | 22-WRITE | 21-Sequence error. |
| N | | a duplicate key. | 22-WRITE OR |
| V | | 23-Record does not | REWRITE a |
| A | | exist. | duplicate key. |
| L | | -START OR READ on | 23-Record does not |
| I | | missing optional | exist |
| D | | file. | -START OR READ on |
| K | | 24-WRITE beyond | missing optional |
| E | | file boundary. | file. |
| Y | | -Sequential | 24-WRITE beyond |
| | | WRITE record | file boundary. |
| | | number too | |
| | | big for relative | |
| | | key data item. | |
| | | | |
--------------------------------------------------------------------------------
| | | | |
| P | 30-No more | 30-No more | 30-No more |
| E | information | information | information |
| R | available. | available. | available. |
| M | 34-Boundary | | |
| A | violation. | | |
| N | | | |
| E | | | |
| N | | | |
| T | | | |
| E | | | |
| R | | | |
| R | | | |
| O | | | |
| R | | | |
| | | | |
--------------------------------------------------------------------------------