SQL Error Codes - SQLSERVER


    ------------------------------------------------------------------------
    Error
    Code                             Description
    ------------------------------------------------------------------------
    100 No (more) data
    0   Successful Completion
    -1  Invalid SQL statement
    ------------------------------------------------------------------------
    -2  Exponent digits missing after 'E'
    -3  Closing quote (") missing
    -4  A term expected, beginning with one of the following: identifier, constant,
        aggregate, %ALPHAUP, %EXACT, %MVR, %SQLSTRING, %SQLUPPER, %STRING, %UPPER,
        $$, :, +, -, (, NOT, EXISTS, or FOR
    -5  Column number specified in ORDER does not match SELECT list
    -6  ORDER must specify column number, not names, when after UNION
    ------------------------------------------------------------------------
    -7  ORDER column is not in the SELECT list
    -8  Invalid DATEPART code for DATEPART(), DATENAME(), DATEADD(), or DATEDIFF()
    -9  Incompatible SELECT lists used in UNION
    ------------------------------------------------------------------------
    -10 The SELECT list of the subquery must have exactly one item
    ------------------------------------------------------------------------
    -11 A scalar expression expected, not a condition
    -12 A term expected, beginning with one of the following: identifier,
        constant, aggregate, $$, :, (, +, -, %ALPHAUP, %EXACT, %MVR, %SQLSTRING,
        %SQLUPPER, %STRING, or %UPPER
    -13 An expression other than a subquery expected here
    -14 A comparison operator is required here
    ------------------------------------------------------------------------
    -15 A condition expected after NOT
    -16 A qualifier SOME or ALL expected after the FOR in the for-expression
    -17 A for-condition expected after the ( in the for-expression
    -18 IS (or IS NOT) NULL predicate can be applied only to a field
    ------------------------------------------------------------------------
    -19 An aggregate function cannot be used in a WHERE clause
    -20 Name conflict in the FROM list over label
    -22 ORDER must specify column names, not numbers, when after 'SELECT *'
    -23 Label is not listed among the applicable tables
    ------------------------------------------------------------------------
    -24 "Ambiguous sort column:"
    -25 Input encountered after end of query
    -26 Missing FROM clause
    -27 Field is ambiguous among the applicable tables
    -28 Host variable name must begin with either % or a letter
    -29 Field not found in the applicable tables
    ------------------------------------------------------------------------
    -30 Table or View not found
    -31 Field not (Found/Unique) in Table(s)
    -32 Outer-join symbol ( =* or *= ) must be between two fields
    -33 No field(s) found for table
    ------------------------------------------------------------------------
    -34 Optimizer failed to find a usable join order
    -35 INSERT/UPDATE/DELETE not allowed for non-updatable view
    -36 WITH CHECK OPTION (CHECKOPTION class parameter) not allowed for
        non-updatable views
    -37 SQL Scalar/Aggregate/Unary function not supported for Stream fields
    -38 No master map for table
    -39 No RowID field for table
    ------------------------------------------------------------------------
    -40 ODBC escape extension not supported
    -41 An extrinsic function call must have the form '$$tag^routine(...)'
    -42 Closing quotes ("") missing following pattern match
    -43 Table is ambiguous within #IMPORT schema name list
    ------------------------------------------------------------------------
    -44 Duplicate method or query characteristic
    -45 Duplicate method in Cache' ObjectScript query body
    -46 Required method missing in Cache' ObjectScript query body
    -47 Invalid method or query characteristic
    ------------------------------------------------------------------------
    -48 Invalid trigger REFERENCING clause for the trigger's event
    -49 Trigger REFERENCING clause cannot be specified when trigger language not SQL
    -50 Trigger specifies UPDATE OF clause when trigger language not SQL
    -51 SQL statement expected
    ------------------------------------------------------------------------
    -52 Cursor (Already/Was Not) DECLAREd
    -53 Constant or variable expected as new value
    -54 Array designator (last subscript omitted) expected after VALUES
    ------------------------------------------------------------------------
    -55 Invalid GRANT TO or REVOKE FROM
    ------------------------------------------------------------------------
    -56 GRANT/REVOKE Action not applicable to an object of this type
    -57 Trigger specifies WHEN clause when trigger language not SQL
    -58 Duplicate field found in trigger UPDATE OF clause
    -59 Cannot have more than one field
    ------------------------------------------------------------------------
    -60 An action (%ALTER, SELECT, UPDATE, etc.) expected
    -61 Cursor not updatable
    -62 Additional new values expected for INSERT/UPDATE
    -63 Data Exception - invalid escape character
    ------------------------------------------------------------------------
    -64 Incompatible SELECT list is used in INSERT
    -65 Positive integer constant or variable expected
    -66 Redundant Fields Found in SELECT list
    ------------------------------------------------------------------------
    -67 Implicit join (arrow syntax) not supported in ON clause
    -68 Legacy outer join (=*, *=) not supported in ON clause
    -69 SET = not allowed with WHERE CURRENT OF
    -70 Multi-Line Field only valid for LIKE, Contains ([), or NULL Comparison.
    -71 Multi-Line Field must be the Left operand of the Comparison.
    -72 Multi-Line Field not valid in ORDER BY clause.
    ------------------------------------------------------------------------
    -73 Aggregates not supported in ORDER BY clause.
    -74 Duplicate alias names found.
    -75 and/or required before FROM in TRIM function.
    -76 Cardinality mismatch between the SELECT-list and INTO-list.
    ------------------------------------------------------------------------
    -77 Qualified column reference not allowed in this JOIN context.
    -78 Invalid transaction state.
    -79 Referencing key and referenced key must be the same size
    -80 Integer expected
    ------------------------------------------------------------------------
    -81 Column Constraint expected
    -82 Multiple table %DESCRIPTION definitions found
    -83 Multiple table %FILE definitions found
    -84 Multiple table %NUMROWS definitions found
    ------------------------------------------------------------------------
    -85 Multiple table %ROUTINE definitions found
    -86 Invalid field definition, no datatype defined
    -87 Invalid table name
    ------------------------------------------------------------------------
    -88 Invalid field name
    ------------------------------------------------------------------------
    -89 Invalid index name
    -90 Invalid view name
    -91 cannot be specified more than once.
    -92 cannot be READ UNCOMMITTED if READ WRITE specified.
    -93 for the DIAGNOSTICS SIZE must be exact numeric.
    -94 Unsupported usage of OUTER JOIN.
    -95 Operation Disallowed by Operation Table
    ------------------------------------------------------------------------
    -96 Specified is not supported.
    ------------------------------------------------------------------------
    -97 Duplicate names found.
    -98 License Violation
    -99 Privilege Violation
    ------------------------------------------------------------------------
    -101 Attempt to open a cursor that is already open
    -102 Operation (FETCH/CLOSE/UPDATE/DELETE/...) attempted on an unopened cursor
    -103 Positioned UPDATE or DELETE attempted, but the cursor is not positioned on any row
    -104 Field validation failed in INSERT
    -105 Field validation failed in UPDATE
    -106 Row to DELETE not found
    -107 Cannot UPDATE RowID or RowID based on Fields
    -108 Required field missing; INSERT or UPDATE not allowed
    ------------------------------------------------------------------------
    -109 Cannot find the row designated for UPDATE
    -110 Locking conflict in filing
    -111 Cannot INSERT into a 'Default Only' RowID or RowID based on field
    -112 Access violation
    -113 %THRESHOLD Violation
    -114 One or more matching rows is locked by another user
    -115 Cannot INSERT/UPDATE/DELETE on a read only table
    -116 Cardinality mismatch on INSERT/UPDATE between values list and number
         of table columns.
    -117 Aggregates not supported in Views
    -118 Unknown or non-unique User or Role
    ------------------------------------------------------------------------
    -119 UNIQUE or PRIMARY KEY Constraint failed uniqueness check upon INSERT
    -120 UNIQUE or PRIMARY KEY Constraint failed uniqueness check upon UPDATE
    -121 FOREIGN KEY Constraint failed referential check upon INSERT of row
         in referencing table
    -122 FOREIGN KEY Constraint failed referential check upon UPDATE of row
         in referencing table
    ------------------------------------------------------------------------
    -123 FOREIGN KEY Constraint failed referential check upon UPDATE of row
         in referenced table
    -124 FOREIGN KEY Constraint failed referential check upon DELETE of row
         in referenced table
    -125 UNIQUE or PRIMARY KEY Constraint failed uniqueness check upon creation
         of the constraint
    ------------------------------------------------------------------------
    -126 REVOKE with RESTRICT failed.
    -127 FOREIGN KEY Constraint failed referential check upon creation of the constraint
    -129 Illegal value for SET OPTION locale property
    -130 Before Insert trigger failed
    ------------------------------------------------------------------------
    -131 After Insert trigger failed
    ------------------------------------------------------------------------
    -132 Before Update trigger failed
    -133 After Update trigger failed
    -134 Before Delete trigger failed
    ------------------------------------------------------------------------
    -135 After Delete trigger failed
    -136 View's WITH CHECK OPTION validation failed in INSERT
    -137 View's WITH CHECK OPTION validation failed in UPDATE
    -138 Cannot INSERT/UPDATE a value for a ReadOnly field
    ------------------------------------------------------------------------
    -139 Concurrency failure on update: row versions not the same
    -140 Invalid length parameter passed to the SUBSTRING function
    -141 Invalid input value passed to the CONVERT function
    -142 Cardinality mismatch between the View-Column-list and View Query's SELECT clause
    ------------------------------------------------------------------------
    -201 Table or View name not unique
    -300 DDL not allowed on this table definition
    -304 Attempt to add a NOT NULL field with no default value to a table which contains data
    -305 Attempt to make field required when the table has one or more rows
         where the column value is NULL
    -306 Column with this name already exists
    -307 Primary key already defined for this table
    ------------------------------------------------------------------------
    -308 Identity column already defined for this table
    -309 The left operand of %CONTAINS is not a property that supports the %Text interface
    -310 Foreign key references non-existent table
    -311 Foreign key with same name already defined for this table
    -312 Invalid schema name. Must use delimited identifiers to reference this schema name.
    -314 Foreign key references non-unique key/column collection
    -315 Constraint or Key not found
    -316 Foreign key references non-existent key/column collection
    ------------------------------------------------------------------------
    -317 Cannot DROP Constraint - One or more Foreign Key constraints reference
         this Unique constraint
    -319 Referenced table has no primary key defined
    ------------------------------------------------------------------------
    -320 Cannot DROP table - One or more Foreign Key constraints reference this table
    -321 Cannot DROP view - One or more views reference this view
    -324 Index with this name already defined for this table
    -325 Index cannot be dropped because it is the IDKEY index and the table has data
    ------------------------------------------------------------------------
    -333 No such index defined
    -356 SQL Function (function Stored Procedure) is not defined to return a value
    -357 SQL Function (function Stored Procedure) is not defined as a function procedure
    -358 SQL Function (function Stored Procedure) name not unique
    ------------------------------------------------------------------------
    -359 SQL Function (function Stored Procedure) not found
    -360 Class not found
    -361 Method or Query name not unique
    -362 Method or Query not found
    ------------------------------------------------------------------------
    -363 Trigger not found
    -364 Trigger with same EVENT, TIME, and ORDER already defined
    -365 Trigger name not unique
    -366 Schema name mismatch between trigger name and table name
    ------------------------------------------------------------------------
    -370 Embedded SQL CALL Statement can only be used for Method Procedures
    -371 :HVar = CALL...Specified for a Procedure which does not return a value
    -372 Support for extrinsic function calls are disabled
    -373 An extrinsic function call may not call a % routine
    ------------------------------------------------------------------------
    -374 Cannot alter the datatype of a field to/from a stream type when the
         table contains data
    -375 Cannot ROLLBACK to unestablished savepoint
    ------------------------------------------------------------------------
    -376 Unsupported CAST target specified
    -400 Fatal error occurred
    -401 Fatal Connection error
    -402 Invalid Username/Password
    ------------------------------------------------------------------------
    -405 Unable to read from communication device
    -406 Unable to Write to Server
    -407 Unable to Write to Server Master
    -408 Unable to start server
    ------------------------------------------------------------------------
    -409 Invalid server function
    -410 Invalid Directory
    -411 No stream object defined for field
    -412 General Stream Error
    ------------------------------------------------------------------------
    -413 Incompatible Client/Server Protocol
    -415 Fatal error occurred within the SQL filer
    -416 CacheInfo Error
    -417 Cache Security Error
    -421 Warning: UPDATE or DELETE statement does not contain a WHERE clause
    -422 SELECT request processed via ODBC, JDBC, or Dynamic SQL cannot
         contain an INTO clause
    -425 Error processing Stored Procedure request
    -426 Error preparing Stored Procedure
    ------------------------------------------------------------------------
    -427 Invalid Stored Procedure Name
    -428 Stored Procedure Not Found
    -429 Invalid number of input/output parameters for Stored Procedure
    -430 Cannot initialize procedure context
    ------------------------------------------------------------------------
    -431 Stored procedure parameter type mismatch
    -450 Request timed out due to user timeout
    -451 Unable to receive server message
    -452 Message sequencing error
    ------------------------------------------------------------------------
    -453 Error in User Initialization Code
    -459 Kerberos authentication failure
    -460 General error
    -461 Communication link failure
    ------------------------------------------------------------------------
    -462 Memory allocation failure
    -463 Invalid column number
    -464 Function sequence error
    -465 Invalid string or buffer length
    ------------------------------------------------------------------------
    -466 Invalid parameter number
    -467 Column type out of range
    -468 Fetch type out of range
    -469 Driver not capable
    ------------------------------------------------------------------------
    -470 Option value changed
    -471 Duplicate cursor name
    -478 Query recompiled: Result Set mismatch
    ------------------------------------------------------------------------
    -499 Version mismatch: version 5.0.13 or higher required
    ------------------------------------------------------------------------
    -500 Fetch row count limit reached
    -10050 WinSock: Network is down
    -10051 WinSock: Network is unreachable
    -10052 WinSock: Net dropped connection or reset
    ------------------------------------------------------------------------
    -10054 WinSock: Connection reset by peer (due to timeout or reboot)
    -10055 WinSock: No buffer space available
    -10056 WinSock: Socket is already connected
    -10057 WinSock: Socket is not connected
    ------------------------------------------------------------------------
    -10058 WinSock: Cannot send after socket shutdown
    -10060 WinSock: Connection timed out
    -10061 WinSock: Connection refused
    ------------------------------------------------------------------------
    -10064 WinSock: Host is down
    -10065 WinSock: No route to host
    -10070 WinSock: Stale NFS file handle
    -10091 WinSock: Network subsystem is unavailable
    -10092 WinSock: WINSOCK DLL version out of range
    -10093 WinSock: Successful WSASTARTUP not yet performed
    ------------------------------------------------------------------------
    -11001 WinSock: Host not found
    -11002 WinSock: Nonauthoritative host not found
    ------------------------------------------------------------------------

File Status Code

15.1 List of Messages:
'74    '85    Meaning
-------------------------------------------------------------------------
00    00    Successful completion
02    02    Indexed files only.
                One of two possibilities:
                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 statement, the record just written created a duplicate key value for at least one alternate record key for which duplicates are allowed.

00    04    The length of the record being processed does not conform to the fixed file attributes for that file.
00    05    The referenced optional file is not present at the time the OPEN statement is executed.
00    07    Sequential files only. For an OPEN or CLOSE statement with the REEL/UNIT phrase the referenced file is a non-reel/unit medium.
10    10    No next logical record exists.
                You have reached the end of the file.
     14    Relative files only.
                The number of significant digits in the relative record number is larger than the size of the relative key data item described for that file.
21    21    Sequentially accessed files only.
                Indicates a sequence error. The ascending key requirement 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    22    Indexed and relative files only.
                Indicates a duplicate key condition. Attempt has been made to store a record that would create a duplicate key in the indexed or relative file or a duplicate alternate record key that does not allow duplicates.
23    23    Indicates no record found.
                An attempt has been made to access a record identified by a key, and that record does not exist in the file.
                Alternatively a START or READ operation has been tried on an optional input file that is not present.
24    24    Relative and indexed files only.
                Indicates a boundary violation arising from one of the following conditions:
                .An attempt has been made to write beyond the externally defined boundaries of a file.
                .A sequential WRITE operation has been tried on a relative file, but the number of significant digits in the relative record number is larger than the size of the relative key data item described for the file.
               
     30    The I/O statement was unsuccessfully executed as the result of a boundary violation for a sequential file or as the result of an I/O error, such as a data check parity error, or a transmission error.
     34    The I/O statement failed because of a boundary violation.
                This condition indicates that an attempt has been made to write beyond the externally defined boundaries of a sequential file.
     35    An OPEN operation with the I-O, INPUT, or EXTEND phrases has been tried on a non-OPTIONAL file that is not present.
     37    An OPEN operation has been tried on a file which does not support the open mode specified in the OPEN statement.
     38    An OPEN operation has been tried on a file previously closed with a lock.
     39    A conflict has been detected between the fixed file attributes and the attributes specified for that file in the program.
     41    An OPEN operation has been tried on file already opened.
     42    A CLOSE operation has been tried on file already closed.
     43    Files in sequential access mode.
                The last I/O statement executed for the file, before the execution of a DELETE or REWRITE statement, was not a READ statement.
     44    A boundary violation exists. Possible violations are:
                An attempt has been 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.
                An attempt has been made to REWRITE a record to a file, and the record is not the same size as the record being replaced.

     46    A sequential READ operation has been tried on a file open in the INPUT or I-O mode but no valid next record has been established.
     47    A READ or START operation has been tried on a file not opened INPUT or I-O.
     48    A WRITE operation has been tried on a file not opened in the OUTPUT, I-O, or EXTEND mode, or on a file open I-O in the sequential access mode.
     49    A DELETE or REWRITE operation has been tried on a file that is not opened I-O.
     9/nnn    Extended file status code as shown below.
          RT001 Insufficient buffer space.
                Could also indicate an out of memory
                situation.
                RT002 File not open when access tried.
                RT003 Serial mode error.
                RT004 Illegal file name.
                RT005 Illegal device specification.
                RT006 Attempt to write to a file opened for input.
                RT007 Disk space exhausted.
                RT008 Attempt to input from a file opened for output.
                RT009 No room in directory (also, directory does not exist).
                RT010 File name not supplied.
                RT012 Attempt to open a file which is already open.

     35    RT013 File not found.
                RT014 Too many files open simultaneously.
                RT015 Too many indexed files open.
                RT016 Too many device files open.
                RT017 Record error: probably zero length.
                RT018 Read part record error: EOF before EOR or file open in wrong mode.
                RT019 Rewrite error: open mode or access mode wrong.
                RT020 Device or resource busy.
                RT021 File is a directory.
                RT022 Illegal or impossible access mode for OPEN.
                RT023 Illegal or impossible access mode for CLOSE.
                RT024 Disk I/O error.
                RT025 Operating system data error.
                RT026 Block I/O error.

     35    RT027 Device not available.
                RT028 No space on device.
                RT029 Attempt to delete open file.
                RT030 File system is read only.
                RT031 Not owner of file.
                RT032 Too many indexed files, or no such process.

     30    RT033 Physical I/O error.
     30    RT034 Incorrect mode or file descriptor.
     37    RT035 Attempt to access a file with incorrect permission.
                RT036 File already exists.
                RT037 File access denied.
                RT038 Disk not compatible.
                RT039 File not compatible.
                RT040 Language initialization not set up correctly.
                RT041 Corrupt index file.
                RT042 Attempt to write on broken pipe.
                RT043 File information missing for indexed file.
                RT045 Attempt to open an NLS file using an incompatible program.
                RT047 Indexed structure overflow. (Could indicate that you have reached the maximum number of duplicate keys.)
                RT065 File locked.
                RT066 Attempt to add duplicate record key to indexed file.
                RT068 Record locked.
                RT069 Illegal argument to ISAM module.
                RT070 Too many indexed files open.
                RT071 Bad indexed file format.
                RT072 End of indexed file.
                RT099 Invalid sort operation.

     37    RT100 Invalid file operation.
                RT104 Null file name used in a file operation.
                RT105 Memory allocation error.
                RT138 File closed with lock - cannot be opened.

     39/44    RT139 Record length or key data inconsistency.
     41    RT141 File already open - cannot be opened.
     42    RT142 File not open - cannot be closed.
     43    RT143 REWRITE/DELETE in sequential mode not preceded by successful READ.
     46    RT146 No current record defined for sequential read.
     47    RT147 Wrong open mode or access mode for READ/START.
                RT148 Wrong open mode or access mode for WRITE.
                RT149 Wrong open mode or access mode for REWRITE/ DELETE.
                RT161 File header not found.
                RT169. File is striped, but the value of MAXSTRIPEFILES in extfh.cfg is beyond the permitted range.
                RT173 Called program not found.
                RT188 File name too large.

     34    RT194 File size too large.
                RT195 DELETE/REWRITE not preceded by a READ.

     14    RT196 Record number too large in relative or indexed file.
     38    RT210 File is closed with lock.
     38    RT213 Too many locks.
                RT218 Malformed MULTIPLE REEL/UNIT file.
                RT219 Operating system shared file limit exceeded.


15.1.1 RM/COBOL File Status Codes
RM/COBOL file status codes are either ANSI'74 file status codes or can be mapped onto extended file status codes, as shown below.Status
     Status
Key 1    Key 2  See Code    Description 
-------------------------------------------------------------------------         
9   0    9/143    REWRITE/DELETE not after successful READ
         9/147    Wrong open or access mode for READ/ START.
         9/148    Wrong open or access mode for WRITE.
         9/149    Wrong open or access mode for REWRITE/ DELETE.
    1    9/142    File not open - cannot be closed.
    2    9/141    File already open - cannot be opened.
    3    9/138    File is closed with lock - cannot open.
         9/210    File is closed with lock.
    4    9/013    File not found.
         9/035    Incorrect access permission.
         9/037    File access denied.
         9/139    Record length or key inconsistent.
9   4    9/188    Filename too large.
    6    9/146    No current record defined for sequential read.
    8    9/071    Bad indexed file format.
    9    9/065    File locked.
         9/068    Record is locked.


File status mainframe
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 statement, the record just written created a duplicate
    key value for at least one alternate record key for which duplicates are allowed.
04  The length of the record being processed does not conform to the fixed file
    attributes for that file.
05  The referenced optional file is not present at the time the OPEN statement
    is executed.
06  Attempted to write to a file that has been opened for input.
07  Sequential files only. For an OPEN or CLOSE statement with the REEL/UNIT
    phrase the referenced file is a non-reel/unit medium.
08  Attempted to read from a file opened for output.
09  No room in directory or directory does not exist.
10  No next logical record exists. You have reached the end of the file.
12  Attempted to open a file that is already open.
13  File not found.
14  Relative files only. The number of significant digits in the relative
    record number is larger than the size of the relative key data item
    described for that file.
    Too many files open simultaneously (Micro Focus).
15  Too many indexed files open (Micro Focus).
16  Too many device files open (Micro Focus).
17  Record error: probably zero length (Micro Focus).
18  Read part record error: EOF before EOR or file open in wrong mode (Micro Focus).
19  Rewrite error: open mode or access mode wrong (Micro Focus).
20  Device or resource busy (Micro Focus).
21  Sequentially accessed files only. Indicates a sequence error. 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. Indicates a duplicate key condition.
    Attempt has been made to store a record that would create a duplicate key
    in the indexed or relative file OR a duplicate alternate record key that
    does not allow duplicates.
23  Indicates no record found. An attempt has been made to access a record,
    identified by a key, and that record does not exist in the file.
    Alternatively a START or READ operation has been tried on an optional
    input file that is not present.
24  Relative and indexed files only. Indicates a boundary violation.
    Possible causes:
    Attempting to write beyond the externally defined boundaries of a file
    Attempting a sequential WRITE operation has been tried on a relative file,
    but the number of significant digits in the relative record number is larger
    than the size of the relative key data item described for the file.
30  The I/O statement was unsuccessfully executed as the result of a boundary
    violation for a sequential file or as the result of an I/O error, such as
    a data check parity error, or a transmission error.
32  Too many Indexed files opened. This can also happen when a sequential file
    is open for input and an attempt is made to open the same file for output.
    (Run Time System (RTS) message by Micro Focus).
34  The I/O statement failed because of a boundary violation. This condition
    indicates that an attempt has been made to write beyond the externally defined
    boundaries of a sequential file.
35  An OPEN operation with the I-O, INPUT, or EXTEND phrases has been tried on
    a non-OPTIONAL file that is not present.
37  An OPEN operation has been tried on a file which does not support the open
    mode specified in the OPEN statement.
38  An OPEN operation has been tried on a file previously closed with a lock.
39  A conflict has been detected between the fixed file attributes and the
    attributes specified for the file in the program.
    This is usually caused by a conflict with record-length, key-length,
    key-position or file organization.
    Other possible causes are:
    1. Alternate indexes are incorrectly defined.
    2. The Recording Mode is Variable or Fixed or not defined the same as when
       the file was created..
41  An OPEN operation has been tried on file already opened.
42  A CLOSE operation has been tried on file already closed.
43  Files in sequential access mode. The last I/O statement executed for the
    file, before the execution of a DELETE or REWRITE statement, was not a
    READ statement.
44  A boundary violation exists. Possible causes:
    Attempting 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
    Attempting to REWRITE a record to a file and the record is not the same
    size as the record being replaced.
46  A sequential READ operation has been tried on a file open in the INPUT
    or I-O mode but no valid next record has been established.
47  A READ or START operation has been tried on a file not opened INPUT or I-O.
48  A WRITE operation has been tried on a file not opened in the OUTPUT, I-O, or
    EXTEND mode, or on a file open I-O in the sequential access mode.
49  A DELETE or REWRITE operation has been tried on a file that is not opened I-O.
91  For VSAM only.  Password Failure
92  For VSAM only. Logical Error
93  For VSAM only. Recourse not Available
94  For VSAM with CMPR2 compiler-option only: No file position indicator
    for sequential request.
95  For VSAM only.  Invalid or incomplete file information
96  For VSAM under MVS: No DD statement specified for this file.
    FOR VSAM and SAM under VSE: No DLBL statement specified for this file.
97  For VSAM only.  OPEN statement execution successful: File integrity verified.