The ascending key requirements of successive record key values has been violated, or, the prime record key value has been changed by a COBOL program between successful execution of a READ statement and execution of the next REWRITE statement for that file. 22 Indexed and relative files only. In...
file status COBOLFILESTATUS(returncode) Status Description 00 Successfulcompletion 02 Indexedfilesonly.Possiblecauses: ForaREADstatement,thekeyvalueforthecurrentkeyisequaltothevalueofthatsamekeyinthenextrecordinthecurrentkeyofreference. ForaWRITEorREWRITEstatement,therecordjustwrittencreateda...
COBOL FILE STATUS(return code) Status Description 00 Successful completion 02 Indexed files only. Possible causes: For a READ statement, the key value for the current key is equal to the value of that same key in the next record in the current key of reference. For a WRITE or REWRITE sta...
COBOL, Display File Status Code The following member (CBLRTNC1.cbl) is the COBOL program that generates various file status codes and then calls the COBOL routine that does the conversion to a four byte, numeric field that may be displayed.IDENTIFICATION DIVISION. PROGRAM-ID. CBLRTNC1. AUTHOR...
Restriction:The data item referenced in theFILE STATUSclause cannot be variably located; for example, it cannot follow a variable-length table. Related tasks Using file status keys Related references FILE STATUS clause(COBOL for Linux® on x86 Language Reference)...
This document provides a summary of the two-byte File Status Code (sometimes referred to as file return code or file status key) with a brief narrative for each code. For the COBOL environment if the FILE STATUS clause is specified in the FILE-CONTROL entry, a value is placed in the ...
File status 90: Quote: 1. For multithreading only: A CLOSE of a VSAM or QSAM file was attempted on a thread that did not open the file. 2. Without multithreading: For VSAM only: See the information on VSAM return codes in the Enterprise COBOL Programming Guide. ...
The following example shows how you can use the file status code and the INVALID KEY phrase to determine more specifically why an input or output statement failed.
The--chatbot interface now supports syntax highlighting 42 separate programming languages: ada, asm, basic, c, c#, c++, cobol, css, d, forth, fortran, go, haskell, html, java, javascript, json, kotlin, ld, lisp, lua, m4, make, markdown, matlab, pascal, perl, php, python, r, ruby...
01 IO-STATUS-04. 05 IO-STATUS-0401 pic 9 value 0. 05 IO-STATUS-0403 pic 999 value 0. 01 TWO-BYTES-BINARY pic 9(4) BINARY. 01 TWO-BYTES-ALPHA redefines TWO-BYTES-BINARY. 05 TWO-BYTES-LEFT pic X. 05 TWO-BYTES-RIGHT pic X. *** * Message Buffer used by the Z-DISPLAY-MESSAG...