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

4- 8
Table 4-2. ANSI COBOL'85 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 | 04-READ length of | 04-READ length of | 02-READ current |
| E | record doesn't | record doesn't | key = next key |
| S | match file. | match file. | value -WRITE or |
| S | 05-OPEN. Optional | 05-OPEN. Optional | REWRITE creates |
| F | file not | file not | duplicate key |
| U | present, | present, | for alternate |
| L | created. | created. | key in which |
| | 07-File is not a | | duplicates are |
| | tape as the | | allowed. |
| | OPEN/ CLOSE | | 04-READ length of |
| | phrase implies. | | record doesn't |
| | | | match file. |
| | | | 05-OPEN. Optional |
| | | | file not |
| | | | present, |
| | | | created. |
| | | | |
--------------------------------------------------------------------------------
| | | | |
| A | 10-EOF or optional | 10-EOF or optional | 10-EOF or optional |
| T | file not present | file not present | file not present |
| E | on READ. | on READ. | on READ. |
| N | | 14-Record number | |
| D | | too big for | |
| | | relative key | |
| | | data item on | |
| | | READ. | |
| | | | |
--------------------------------------------------------------------------------
| | | | |
| I | | 22-WRITE a | 21-Sequence error. |
| N | | duplicate key. (1)| 22-WRITE OR |
| V | | 23-Record does not | REWRITE |
| A | | exist. | a 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. | |
| | | | |
--------------------------------------------------------------------------------