File Status Key Values and Meanings
For information about error handling, refer to the Error
and Exception Handling
section in the IBM® Rational® Development Studio for i: ILE COBOL
Programmer's Guide.
High Order Digit | Meaning | Low Order Digit | Meaning |
---|---|---|---|
0 | Successful Completion | 0 | Nofurther information |
2 | The READ statement was successfully executed, but a duplicate key was detected. That is, the key value for the current key of reference was equal to the value of the key in the next record. For information about enabling file status 02 see the accompanying notes under the READ statement. | ||
4 | An attempt was made to read a record that is larger than the largest, or smaller than the smallest record allowed by the RECORD IS VARYING clause of the associated file-name. | ||
5 | An OPEN statement is successfully executed, but the referenced optional file is not present at the time the OPEN statement is executed. If the open mode is I-O or EXTEND, the file has been created. CPF4101, CPF4102, CPF4103, CPF4207, CPF9812. | ||
7 | For a CLOSE statement with the NO REWIND, REEL⁄UNIT, or FOR REMOVAL phrase or for an OPEN statement with the NO REWIND phrase, the referenced file was on a non-reel⁄unit medium. | ||
A | Job ended in a controlled manner by CL command ENDJOB, PWRDWNSYS, ENDSYS, or ENDSBS CPF4741. Escape message sent during an accept input operation, READ from invited program device (multiple device listings only). | ||
M | Last record written to a subfile. CPF5003 | ||
P | The file has been opened successfully, but it contains null-capable fields and the ASSIGN clause does not specify ALWNULL and device-type DATABASE. | ||
Q | A CLOSE statement for a sequentially-processed relative file was successfully executed. The file was created with the *INZDLT and *NOMAX options, so its boundary has been set to the number of records written. | ||
1 | At end conditions | 0 | A sequential READ statement was attempted and no next logical record existed in the file because the end of the file had been reached (no invites outstanding) CPF4740, CPF5001, CPF5025. |
2 | IBM Extension No modified subfile record found. CPF5037 End of IBM Extension |
||
4 | A sequential READ statement was attempted for a relative file and the number of significant digits in the relative record number was larger than the size of the relative key data item described for the file. | ||
2 | Invalid key | 1 | A sequence error exists for a sequentially
accessed indexed file. The prime record key value has been changed
by the program between the successful execution of a READ statement
and the execution of the next REWRITE statement for that file, or
the ascending requirements for successive record key values were violated. Alternatively, the program has changed the record key value between a successful READ and subsequent REWRITE or DELETE operation on a randomly or dynamically-accessed file with duplicate keys. |
2 | An attempt was made to write a record that would create a duplicate key in a relative file; or an attempt was made to write or rewrite a record that would create a duplicate prime record key in an indexed file. CPF4759, CPF5008, CPF5026, CPF5034, CPF5084, CPF5085. | ||
3 | An attempt was made to randomly access a record that does not exist in the file. CPF5001, CPF5006, CPF5013, CPF5020, CPF5025. | ||
4 | An attempt was made to write beyond the externally defined boundaries of a relative or indexed file. Or, a sequential WRITE statement was attempted for a relative file and the number of significant digits in the relative record number was larger than the size of the relative record key data item described for the file. CPF5006, CPF5018, CPF5021, CPF5043, CPF5272. | ||
3 | Permanent error condition | 0 | No further information CPF4192, CPF5101, CPF5102, CPF5129, CPF5030, CPF5143. |
4 | A permanent error exists because of a boundary violation; an attempt was made to write beyond the externally-defined boundaries of a sequential file. CPF5116, CPF5018, CPF5272 if organization is sequential. | ||
5 | An OPEN statement with the INPUT, I-O, or EXTEND phrase was attempted on a non-optional file that was not present. CPF4101, CPF4102, CPF4103, CPF4207, CPF9812. | ||
7 | An OPEN statement was attempted on
a file that would not support the open mode specified in the OPEN
statement. Possible violations are:
|
||
8 | An OPEN statement was attempted on a file previously closed with lock. | ||
9 | The OPEN statement was unsuccessful
because a conflict was detected between the fixed file attributes
and the attributes specified for that file in the program. The possible
causes are:
|
||
4 | Logic error condition | 1 | An OPEN statement was attempted for a file in the open mode. |
2 | A CLOSE statement was attempted for a file that was already closed. | ||
3 | For a sequential file in the sequential access mode, the last input-output statement executed for the associated file prior to the execution of a REWRITE statement was not a successfully executed READ statement. For relative and indexed files in the sequential access mode, the last input-output statement executed for the file prior to the execution of a DELETE or REWRITE statement was not a successfully executed READ statement. | ||
4 | A boundary violation exists because an attempt was made to rewrite a record to a file and the record was not the same size as the record being replaced. An attempt was made to write or rewrite a record that is larger than the largest, or smaller than the smallest record allowed by the RECORD IS VARYING clause of the associated file-name. | ||
6 | A sequential READ, READ NEXT or READ PRIOR statement was attempted on a file open in the input or I-O mode and no valid next record had been established because the preceding START statement was unsuccessful, or the preceding READ statement was unsuccessful or caused an at end condition. CPF5001, CPF5025, CPF5183. | ||
7 | The execution of a READ or START statement was attempted on a file not open in the input or I-O mode. | ||
8 | The execution of a WRITE statement was attempted on a sequential file not open in the output, or extend mode. The execution of a WRITE statement was attempted on an indexed or relative file not open in the I-O, output, or extend mode. | ||
9 | The execution of a DELETE or REWRITE statement was attempted on a file not open in the I-O mode. | ||
9 | Other errors | 0 | Other errors:
|
1 | Undefined or unauthorized access type CPF2207, CPF4104, CPF4236, CPF4238, CPF5057, CPF5109, CPF5134, CPF5279. | ||
2 | Logic error:
|
||
4 | No file position indicator REWRITE/DELETE when not sequential access, and last operation was not a successful READ. | ||
9 | Other errors | 5 | Invalid or incomplete file information (1) Duplicate keys specified in COBOL program. The file has been successfully opened, but indexed database file created with unique key; or (2) Duplicate keys not specified in COBOL program, and indexed database file created allowing duplicate keys. |
9 | Undefined (display or ICF). | ||
C | Acquire failed; session was not started. | ||
D | Record is locked CPF5027, CPF5032. | ||
G | Output exception to device or session. | ||
H | ACQUIRE operation failed. Resource owned by another program, or unavailable. (9H is the result when an ACQUIRE operation causes any of the operating system exceptions monitored for 90, or 9N to occur.) | ||
I | WRITE operation failed CPF4702, CPF4737, CPF5052, CPF5076. | ||
K | Invalid format-name; format not found. CPF5022, CPF5023, CPF5053, CPF5054, CPF5121, CPF5152, CPF5153, CPF5186, CPF5187. | ||
9 | Other errors | N | Temporary (potentially recoverable) hardware I-O error. (Error during communication session.) CPF4145, CPF4146, CPF4193, CPF4229, CPF4291, CPF4299, CPF4354, CPF4526, CPF4542, CPF4577, CPF4592, CPF4602, CPF4603, CPF4611, CPF4612, CPF4616, CPF4617, CPF4622, CPF4623, CPF4624, CPF4625, CPF4628, CPF4629, CPF4630, CPF4631, CPF4632, CPF4705, CPF5013, CPF5107, CPF5128, CPF5166, CPF5198, CPF5280, CPF5282, CPF5287, CPF5293, CPF5352, CPF5353, CPF5517, CPF5524, CPF5529, CPF5530, CPF5532, CPF5533, CPF5257. |
P | OPEN failed because file cannot be placed under commitment control CPF4293, CPF4326, CPF4327, CPF4328, CPF4329. | ||
Q | An OPEN statement for a randomly- or dynamically-accessed relative file failed because its size was *NOMAX. Change the file size (for example, using CHGPF) to the size you expect, and submit the program again. | ||
R | Referential integrity error. CPF502D, CPF502E, CPF503A. | ||
S | REWRITE or DELETE failed because last READ operation specified NO LOCK. | ||
T | Trigger program exception. CPF502B | ||
U | Cannot complete READ PRIOR because
records are left in block from READ NEXT, or vice versa. CPF5184. Close the file, then open it again. |
||
W | Check constraint exception. CPF502F. | ||
X | OPEN failed because the file type is not supported in a multithreaded job. Change the file type to DATABASE, PRINTER (spool file only), or a DDM file of type *IP and submit the program again. CPF4380. | ||
Y | OPEN failed because the auxiliary storage pool (ASP) device where the file is located is not available. CPF980B. |