If an error is returned by the Btrieve Record Manager, the Xfh2btr call conversion module maps the Btrieve error to a COBOL file status code which it returns to your program. The mappings are shown below. Any error returned by Btrieve that is not in the table below will be returned as a 9/025 error.
COBOL Status | Btrieve Status |
---|---|
10 | 9 (if READ sequential operation) |
21 | 10 |
22 | 5 |
23 | 4, 9 (if START operation), 43 |
35 | 12 |
42 | 3 (if CLOSE operation) |
43 | 8 |
47 | 3 (if START/READ operation) |
48 | 3 (if WRITE operation), 46 |
49 | 3 (if REWRITE/DELETE operation) |
9/004 | 11 |
9/007 | 2 (if WRITE operation), 18, 38 |
9/009 | 35 |
9/013 | 12 |
9/014 | 40, 47, 86, 87 |
9/025 | 101, 102, 103, 104, 105, 106, 107, 109, 130, 133 |
9/027 | 20 |
9/033 | 2 (if not WRITE or OPEN operation), 14, 15, 16, 17, 19, 33, 54, 66, 67, 68, 69, 71, 72, 73, 75, 76, 79, 100 |
9/036 | 59 |
9/037 | 51, 94 |
9/039 | 2 (if OPEN operation), 30 |
9/040 | 24, 36, 58, 90, 91, 92, 96 |
9/041 | 42, 56 |
9/047 | 6 |
9/053 | 53 |
9/065 | 25, 85 (if OPEN operation), 88 |
9/068 | 77, 80, 83, 84, 85 (if non-OPEN operation) |
9/074 | 60, 61, 62, 63, 64, 65 |
9/077 | 13, 21, 23, 31, 32, 34, 37, 39, 45, 48, 49, 50, 55, 93 |
9/078 | 26, 29 |
9/100 | 41, 99 |
9/124 | 95 |
9/125 | 74, 78, 98 |
9/126 | 97 |
9/139 | 7, 22, 27, 28, 44 |
9/142 | 3 (if CLOSE operation) |
9/143 | 8 |
9/146 | 82 |
9/147 | 3 (if START/READ operation) |
9/148 | 3 (if WRITE operation), 46 |
9/149 | 3 (if REWRITE/DELETE operation) |
9/161 | 1 |
9/213 | 81 |