Difference between revisions of "MONITOR Error Codes"

From MidrangeWiki
Jump to: navigation, search
(Main Error Codes)
(+ /copy)
 
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
[[Category:RPG]]
 
[[Category:RPG 4]]
 
 
 
Here is a list of the MONITOR group error codes in numeric order.
 
Here is a list of the MONITOR group error codes in numeric order.
  
Line 11: Line 8:
 
</tr>
 
</tr>
 
<tr>
 
<tr>
<td><!-- *PROGRAM --></td><td>Handles all program-error status codes, from 00100 to 00999</td>
+
<td>*PROGRAM</td><td>Handles all program-error status codes, from 00100 to 00999.</td>
 +
</tr>
 +
<tr>
 +
<td>*FILE</td><td>Handles all file-error status codes, from 01000 to 09999.</td>
 +
</tr>
 +
<tr>
 +
<td>*ALL</td><td>Handles both program-error and file-error status codes, from 00100 to 09999. This is the defualt.</td>
 +
</tr>
 +
</table>
 +
 
 +
== Specific Error Codes ==
 +
<table border="1" cellpadding="2" cellspacing="0">
 +
<tr>
 +
<th>Code</th>
 +
<th>Condition</th>
 +
</tr>
 +
<tr>
 +
  <td>00000</td><td>No Exception/Error.</td>
 +
</tr>
 +
<tr>
 +
  <td>00100</td>
 +
  <td> Value out of range for string operation</td>
 +
</tr>
 +
<tr>
 +
  <td>00102</td>
 +
  <td> Divide by zero</td>
 +
</tr>
 +
<tr>
 +
  <td>00103</td>
 +
  <td> Receiver too small to hold result</td>
 +
</tr>
 +
<tr>
 +
  <td>00105</td>
 +
  <td> The character string contains invalid data</td>
 +
</tr>
 +
 
 +
<tr>
 +
  <td>00112</td>
 +
  <td> Invalid Date, Time or Timestamp value.</td>
 +
</tr>
 +
<tr>
 +
  <td>00115</td>
 +
  <td> Length of varying length variable is out of range.</td>
 +
</tr>
 +
<tr>
 +
  <td>00121</td>
 +
  <td> Array index not valid</td>
 +
</tr>
 +
<tr>
 +
  <td>00122</td>
 +
  <td> OCCUR outside of range</td>
 +
</tr>
 +
<tr>
 +
  <td>00202</td>
 +
  <td> Called program or procedure failed</td>
 +
</tr>
 +
<tr>
 +
  <td>00211</td>
 +
  <td> Error calling program or procedure</td>
 +
</tr>
 +
<tr>
 +
  <td>00222</td>
 +
  <td> Pointer or parameter error</td>
 +
</tr>
 +
<tr>
 +
  <td>00353</td>
 +
  <td>The XML document does not match the RPG variable; Reason code <i>x</i></td>
 +
</tr>
 +
<tr>
 +
  <td>00401</td>
 +
  <td> Data area specified on IN/OUT not found</td>
 +
</tr>
 +
<tr>
 +
  <td>00413</td>
 +
  <td> Error on IN/OUT operation</td>
 +
</tr>
 +
<tr>
 +
  <td>00414</td>
 +
  <td> User not authorized to use data area</td>
 +
</tr>
 +
<tr>
 +
  <td>00415</td>
 +
  <td> User not authorized to change data area</td>
 +
</tr>
 +
<tr>
 +
  <td>00907</td>
 +
  <td> Decimal data error (digit or sign not valid)</td>
 +
</tr>
 +
<tr>
 +
  <td>01021</td>
 +
  <td> Tried to write a record that already exists (file being used has unique keys and key is duplicate, or attempted to write       
 +
      duplicate relative record number to a subfile).</td>
 +
</tr>
 +
<tr>
 +
  <td>01022</td>
 +
  <td> Referential constraint error detected on file member.</td>
 +
</tr>
 +
<tr>
 +
  <td>01023</td>
 +
  <td> Error in trigger program before file operation performed.</td>
 +
</tr>
 +
<tr>
 +
  <td>01024</td>
 +
  <td> Error in trigger program after file operation performed.</td>
 +
</tr>
 +
<tr>
 +
  <td>01211</td>
 +
  <td> File not open.</td>
 +
</tr>
 +
<tr>
 +
  <td>01218</td>
 +
  <td> Record already locked.</td>
 +
</tr>
 +
<tr>
 +
  <td>01221</td>
 +
  <td> Update operation attempted without a prior read.</td>
 +
</tr>
 +
<tr>
 +
  <td>01222</td>
 +
  <td> Record cannot be allocated due to referential constraint error</td>
 +
</tr>
 +
<tr>
 +
  <td>01331</td>
 +
  <td> Wait time exceeded for READ from WORKSTN file.</td>
 
</tr>
 
</tr>
 
</table>
 
</table>
  
* *FILE
+
=== /COPY member ===
* *ALL
+
Jon Paris contributed the bulk of the following /COPY member via MIDRANGE-L:
 +
 
 +
<code>
 +
        // Version 1
 +
 +
      * Called program returned with the LR indicator on.
 +
    D ReturnWithLR    C                  00001
 +
 +
      * Conversion resulted in substitution.
 +
    D ConvWithSub    C                  00050
 +
 +
      * Value out of range for string operation
 +
    D StringRangeErr  C                  00100
 +
 +
      * Negative square root
 +
    D NegativeSqRoot  C                  00101
 +
 +
      * Divide by zero
 +
    D DivideByZero    C                  00102
 +
 +
      * An intermediate result is not large enough to contain the result.
 +
    D IntResTooBig    C                  00103
 +
 +
      * Float underflow. An intermediate value is too small to be contained in the
 +
      * intermediate result field.
 +
    D IntResTooSmall  C                  00104
 +
 +
      * Invalid characters in character to numeric conversion functions.
 +
    D Char2NumErr    C                  00105
 +
 +
      * Invalid Date, Time or Timestamp value.
 +
    D InvalidDTZ      C                  00112
 +
 +
      * Date overflow or underflow. (For example, when the result of a Date
 +
      *  calculation results in a number greater than *HIVAL or less than *LOVAL.)
 +
    D DateRangeErr    C                  00113
 +
 +
      * Date mapping errors, where a Date is mapped from a 4-character year to a
 +
      *  2-character year, and the date range is not 1940-2039.
 +
    D DateMapErr      C                  00114
 +
 +
      * Variable-length field has a current length that is not valid.
 +
    D FieldLenErr    C                  00115
 +
 +
      * Table or array out of sequence.
 +
    D ArraySeqErr    C                  00120
 +
 +
      * Array index not valid
 +
    D ArrayIndxErr    C                  00121
 +
 +
      * OCCUR outside of range
 +
    D InvalidOccur    C                  00122
 +
 +
      * Reset attempted during initialization step of program
 +
    D ResetErr        C                  00123
 +
 +
      * Called program or procedure failed; halt indicator (H1 through H9) not on
 +
    D CallFail        C                  00202
 +
 +
      * Error calling program or procedure
 +
    D ErrorOnCall    C                  00211
 +
 +
      * Pointer or parameter error
 +
    D ParmError      C                  00222
 +
 +
      * Called program or procedure returned with halt indicator on
 +
    D ReturnWithHalt  C                  00231
 +
 +
      * Halt indicator on in this program
 +
    D HaltIsOn        C                  00232
 +
 +
      * Halt indicator on when RETURN operation run
 +
    D HaltOnReturn    C                  00233
 +
 +
      * RPG IV formatted dump failed
 +
    D DumpFail        C                  00299
 +
 +
      * Class or method not found for a method call, or error in method call.
 +
    D MethodCallErr  C                  00301
 +
 +
      * Error while converting a Java array to an RPG parameter on entry to a
 +
      *  Java native method.
 +
    D JNIJavaArrayToRPGErr...
 +
    D                C                  00302
 +
 +
      * 00302 Error converting RPG parm to Java array on exit from an RPG native method.
 +
    D JNIExitParmErr  C                  00302
 +
 +
      * Error converting RPG parameter to Java array in preparation for a Java
 +
      *  method call.
 +
    D JNIRPGtoJavaAErr...
 +
    D                C                  00304
 +
 +
      * Error converting Java array to RPG parameter or return value after a Java method
 +
    D MethodReturnErr...
 +
    D                C                  00305
 +
 +
      * Error converting RPG return value to Java array.
 +
    D JNIReturnErr    C                  00306
 +
 +
      * Error on DSPLY operation
 +
    D DSPLYErr        C                  00333
 +
 +
      // 00351 XML parser error
 +
    D errXmlParse    C                  00351
 +
      // 00352 Bad option for XML opcode
 +
    D errXmlBadOption...
 +
    D                C                  00352
 +
      // 00353 XML document mismatch RPG variable
 +
    D errXmlIntoMismatch...
 +
    D                C                  00353
 +
      // 00354 Problem preparing to parse XML document
 +
    D errXmlProblem...
 +
    D                C                  00354
 +
 +
      * Data area specified on IN/OUT not found
 +
    D DataAreaNotFnd  C                  00401
 +
 +
      * *PDA not valid for non-prestart job
 +
    D PDAUsageErr    C                  00402
 +
 +
      * Data area type or length does not match
 +
    D DtaAreMismatch  C                  00411
 +
 +
      * Data area not locked for output
 +
    D DtaAraNotLocked...
 +
    D                C                  00412
 +
 +
      * Error on IN/OUT operation
 +
    D DtaAraIOErr    C                  00413
 +
 +
      * User not authorized to use data area
 +
    D DtaAraAutErr    C                  00414
 +
 +
      * User not authorized to change data area
 +
    D DtaAraUpdErr    C                  00415
 +
 +
      * Error on UNLOCK operation
 +
    D DtaAraUnlErr    C                  00421
 +
 +
      * Length requested for storage allocation is out of range
 +
    D AllocSizeErr    C                  00425
 +
 +
      * Error encountered during storage management operation
 +
    D StorageMgtErr  C                  00426
 +
 +
      * Data area previously locked by another program
 +
    D DtaAraLckOther  C                  00431
 +
 +
      * Data area locked by program in the same process
 +
    D DtaAraLckThis  C                  00432
 +
 +
      * Character field not entirely enclosed by shift-out and shift-in characters
 +
    D MissingSISO    C                  00450
 +
 +
      *Conversion between two CCSIDs is not supported.
 +
    D CCSIDErr        C                  00451
 +
 +
      // 00452 CCSID conversion could not convert all characters
 +
      // With H-spec keyword CCSIDCVT(*EXCP), you get error status 452 instead of
 +
      // non-error status 50, if the CCSID conversion can't convert all the
 +
      // characters. You won't find these messages in your QRNXMSG message file
 +
      // unless you have followed the instructions in the PTF cover letter to add them.
 +
    D errCcsidCvtDataLoss...
 +
    D                C                  00452 
 +
      * Failure to retrieve sort sequence.
 +
    D SortSeqRetFail  C                  00501
 +
 +
      * Failure to convert sort sequence.
 +
    D SortSeqConvFail...
 +
    D                C                  00502
 +
 +
      * Commitment control not active.
 +
    D CCNotActive    C                  00802
 +
 +
      * Rollback operation failed.
 +
    D RollBackFail    C                  00803
 +
 +
      * Error occurred on COMMIT operation
 +
    D CommitErr      C                  00804
 +
 +
      * Error occurred on ROLBK operation
 +
    D RollBackErr    C                  00805
 +
 +
      * Decimal data error (digit or sign not valid)
 +
    D DecDataErr      C                  00907
 +
 +
      * Errors indicative of RPG/System error
 +
 +
      * The level number of the compiler used to generate the program does not
 +
      *    agree with the level number of the RPG IV run-time subroutines.
 +
    D RPGLevelErr    C                  00970
 +
 +
      * Internal failure in ILE RPG compiler or in run-time subroutines
 +
    D RPGErr          C                  09998
 +
 +
      * Program exception in system routine.
 +
    D SystemErr      C                  09999
 +
 +
 +
 +
      * File related errors (*FILE category)
 +
      *  Extracted from Chapter 5 - File Exception/Errors of the RPG IV Reference
 +
 +
      * (W,D,SQ) Tried to write a record that already exists
 +
    D RecordExists    C                  01021
 +
 +
      * (D) Referential constraint error detected on file member.
 +
    D RefConstErr    C                  01022
 +
 +
      * (D,SQ) Error in trigger program before file operation performed.
 +
    D TriggerErrB    C                  01023
 +
 +
      * (D,SQ) Error in trigger program after file operation performed.
 +
    D TriggerErrA    C                  01024
 +
 +
      * (W,D,SQ) Match field out of sequence.
 +
    D MatchSeqErr    C                  01031
 +
 +
      * Array/table load sequence error.
 +
    D LoadSeqErr      C                  01041
 +
 +
      * Array/table load sequence error. Alternate collating sequence used.
 +
    D LoadAltSeqErr  C                  01042
 +
 +
      * Excess entries in array/table file.
 +
    D TooManyEntries  C                  01051
 +
 +
      // 01061 File parameter error
 +
    D errFileParm...
 +
    D                C                  01061
 +
 +
      * (W,D,SQ) Numeric sequence error.
 +
    D NumSeqErr      C                  01071
 +
 +
      * (W) No indicator on the DDS keyword for Print key.
 +
    D NoPrintKeyInd  C                  01121
 +
 +
      * (W) No indicator on the DDS keyword for Roll Up key.
 +
    D NoRollUpKeyInd  C                  01122
 +
 +
      * (W) No indicator on the DDS keyword for Roll Down key.
 +
    D NoRollDownKeyInd...
 +
    D                C                  01123
 +
 +
      * (W) No indicator on the DDS keyword for Clear key.
 +
    D NoClearKeyInd  C                  01124
 +
 +
      * (W) No indicator on the DDS keyword for Help key.
 +
    D NoHelpKeyInd    C                  01125
 +
 +
      * (W) No indicator on the DDS keyword for Home key.
 +
    D NoHomeKeyInd    C                  01126
 +
 +
      * (W) 34xx Record mismatch detected on input.
 +
    D RecMatchErr    C                  01201
 +
 +
      * (All) I/O operation to a closed file.
 +
    D FileIsClosed    C                  01211
 +
 +
      * (All) OPEN issued to a file already opened.
 +
    D FileIsOpen      C                  01215
 +
 +
      * (All) Error on an implicit OPEN/CLOSE operation.
 +
    D OpenFailImp    C                  01216
 +
 +
      * (All) Error on an explicit OPEN/CLOSE operation.
 +
    D OpenFailExp    C                  01217
 +
 +
      * (D,SQ) Record already locked.
 +
    D RecordLocked    C                  01218
 +
 +
      * (D,SQ) Update operation attempted without a prior read.
 +
    D UpdWithNoRead  C                  01221
 +
 +
      * (D,SQ) Record cannot be allocated due to referential constraint error
 +
    D AllocErrRC      C                  01222
 +
 +
      * (SP) Error on SPECIAL file.
 +
    D SpecialFileErr  C                  01231
 +
 +
      * (P) Error in PRTCTL space or skip entries.
 +
    D PrtCtlErr      C                  01235
 +
 +
      * (D,SQ) Record number not found. (Record number specified in record
 +
      *        address file is not present in file being processed.)
 +
    D RAFError        C                  01241
 +
 +
      * (W) 80xx 81xx Permanent I/O error occurred.
 +
    D PermIOErr      C                  01251
 +
 +
      * (W) 82xx 83xx Session or device error occurred. Recovery may be possible.
 +
    D DeviceErr      C                  01255
 +
 +
      * (W) Attempt to exceed maximum number of acquired devices.
 +
    D MaxAcqDevices  C                  01261
 +
 +
      * (W) Attempt to acquire unavailable device
 +
    D DeviceNA        C                  01271
 +
 +
      * (W) Operation to unacquired device.
 +
    D DeviceNotAcq    C                  01281
 +
 +
      * (W) 0309 Job ending with controlled option.
 +
    D JobEnding      C                  01282
 +
 +
      * (W) Unable to acquire second device for single device file
 +
    D CannotAcqDev    C                  01284
 +
 +
      * (W) 0800 Attempt to acquire a device already acquired.
 +
    D AlreadyAcq      C                  01285
 +
 +
      * (W) Attempt to open shared file with SAVDS or IND options.
 +
    D SharedOpenFail  C                  01286
 +
 +
      * (W) Response indicators overlap IND indicators.
 +
    D IndOverlapErr  C                  01287
 +
 +
      * (W,D,SQ) Other I/O error detected.
 +
    D OtherIOErr      C                  01299
 +
 +
      * (W) 0310 Wait time exceeded for READ from WORKSTN file.
 +
    D ReadWaitExp    C                  01331
 +
 +
 +
 +
 +
        // Version 2
 +
 +
      // 00000 No error.
 +
    D stsNoError      C                  00000
 +
      // 00001 Called program returned with *INLR on.
 +
    D stsPgmRetLR    C                  00001
 +
      // 00002 Function key pressed.
 +
    D stsFkeyPressed  C                  00002
 +
      // 00011 End of file (%EOF = *ON).
 +
    D stsEOF          C                  00011
 +
      // 00012 Record not found (%FOUND = *OFF).
 +
    D stsNotFnd      C                  00012
 +
      // 00013 Write to full subfile.
 +
    D stsWrtSflFull  C                  00013
 +
      // 00050 Conversion resulted in substitution.
 +
    D stsCvtSubst    C                  00050
 +
      // 00100 String operation, value out of range.
 +
    D errInvalString  C                  00100
 +
      // 00101 Negative square root.
 +
    D errNegSqrt      C                  00101
 +
      // 00102 Divide by zero.
 +
    D errDivZero      C                  00102
 +
      // 00103 Intermediate result too small to contain result.
 +
    D errResultTooSmall...
 +
    D                C                  00103
 +
      // 00104 Float underflow. Intermediate value too small.
 +
    D errFltUndflow  C                  00104
 +
      // 00105 Invalid characters in character to numeric conversion
 +
    D errInNumConv    C                  00105
 +
      // 00112 Invalid date, time, or timestamp value.
 +
    D errInvalDate    C                  00112
 +
      // 00113 Date overflow or underflow.
 +
    D errDateOvflow  C                  00113
 +
      // 00114 Date mapping error.
 +
    D errDateMap      C                  00114
 +
      // 00115 Invalid length for variable-length field.
 +
    D errInvalVarLen  C                  00115
 +
      // 00120 Table or array out of sequence.
 +
    D errArrSeq      C                  00120
 +
      // 00121 Invalid array index.
 +
    D errArrIdx      C                  00121
 +
      // 00122 OCCUR value out of range.
 +
    D errInvalOccur  C                  00122
 +
      // 00123 RESET attempted during initialization.
 +
    D errInzReset    C                  00123
 +
      // 00202 Call to program or procedure ended in error.
 +
    D errCallFail    C                  00202
 +
      // 00211 Error occurred while calling program or procedure.
 +
    D errCall        C                  00211
 +
      // 00221 Called program tried to use unpassed parameter.
 +
    D errParmNoPass  C                  00221
 +
      // 00222 Pointer or parameter error.
 +
    D errPtrParm      C                  00222
 +
      // 00231 Called program returned with halt indicator on.
 +
    D errCallHalt    C                  00231
 +
      // 00232 Halt indicator on in this program.
 +
    D errHalt        C                  00232
 +
      // 00233 Halt indicator on when RETURN operation run.
 +
    D errHaltRtn      C                  00233
 +
      // 00299 RPG dump failed.
 +
    D errDumpFail    C                  00299
 +
      // 00301 Error in method call.
 +
    D errMthCall      C                  00301
 +
      // 00302 Error converting Java array to RPG parm entering Java
 +
      //      native meth
 +
    D errCvtJavArrEnt...
 +
    D                C                  00302
 +
      // 00303 Error converting RPG parm to Java array exiting RPG
 +
      //      native method
 +
    D errCvtRpgPrmOut...
 +
    D                C                  00303
 +
      // 00304 Error converting RPG parm to Java array preparing
 +
      //      Java meth call.
 +
    D errCvtRPGtoJavaArray...
 +
    D                C                  00304
 +
      // 00305 Error cvting Java array to RPG parm/return value
 +
      //      after meth call.
 +
    D errCvtJavArrayToRPG...
 +
    D                C                  00305
 +
      // 00306 Error converting RPG return value to Java array.
 +
    D errcvtRpgRtnVal...
 +
    D                C                  00306
 +
      // 00333 Error on DSPLY operation.
 +
    D errDsply        C                  00333
 +
      // 00401 Data area not found.
 +
    D errDataAreaNotFnd...
 +
    D                C                  00401
 +
      // 00402 *PDA not valid for non-prestart job.
 +
    D errInvalPsjPDA  C                  00402
 +
      // 00411 Data area types/lengths do not match.
 +
    D errInvalDataArea...
 +
    D                C                  00411
 +
      // 00412 Data area not allocated for output.
 +
    D errDataAreaNoOutput...
 +
    D                C                  00412
 +
      // 00413 I/O error while processing data area.
 +
    D errDataAreaIO...
 +
    D                C                  00413
 +
      // 00414 Not authorized to use data area.
 +
    D errDataAreaUseAut...
 +
    D                C                  00414
 +
      // 00415 Not authorized to change data area.
 +
    D errDataAreaChgAut...
 +
    D                C                  00415
 +
      // 00421 Error while unlocking data area.
 +
    D errDataAreaUnlFail...
 +
    D                C                  00421
 +
      // 00425 Requested storage allocation length out of range.
 +
    D errInvalAlloc  C                  00425
 +
      // 00426 Error during storage management operation.
 +
    D errStorFail    C                  00426
 +
      // 00431 Data area previously allocated to another process.
 +
    D errDataAreaAlloc...
 +
    D                C                  00431
 +
      // 00432 *LOCK for data area not granted.
 +
    D errDataAreaLock...
 +
    D                C                  00432
 +
      // 00450 Character field not enclosed by SO and SI.
 +
    D errInvalSosi    C                  00450
 +
      // 00451 Cannot convert between two CCSIDs.
 +
    D errCvtCcsid    C                  00451
 +
      // 00501 Sort sequence not retrieved.
 +
    D errSortRtv      C                  00501
 +
      // 00502 Sort sequence not converted.
 +
    D errSortCvt      C                  00502
 +
      // 00802 Commitment control not active.
 +
    D errCmtNact      C                  00802
 +
      // 00803 Rollback failed.
 +
    D errRolbkFail    C                  00803
 +
      // 00804 COMMIT error.
 +
    D errCmt          C                  00804
 +
      // 00805 ROLBK error.
 +
    D errRolbk        C                  00805
 +
      // 00907 Decimal data error.
 +
    D errDecimal      C                  00907
 +
      // 00970 Compiler/runtime level check.
 +
    D errCompLevChk  C                  00970
 +
      // 01011 Undefined record type.
 +
    D errUndefRecTyp  C                  01011
 +
      // 01021 Record already exists.
 +
    D errRecExists    C                  01021
 +
      // 01022 Referential constraint error.
 +
    D errRefCst      C                  01022
 +
      // 01023 Trigger program error before operation.
 +
    D errTrgBefore    C                  01023
 +
      // 01024 Trigger program error after operation.
 +
    D errTrgAfter    C                  01024
 +
      // 01031 Match field sequence error.
 +
    D errMatchSeq    C                  01031
 +
      // 01041 Array/table load sequence error.
 +
    D errLoadArr      C                  01041
 +
      // 01042 Array/table load sequence error.
 +
    D errArrAltSeq    C                  01042
 +
      // 01051 Excess entries in array/table file.
 +
    D errArrOvflow    C                  01051
 +
      // 01071 Record out of sequence.
 +
    D errInvalRecSeq  C                  01071
 +
      // 01121 No Print Key DDS keyword indicator.
 +
    D errDDSPrtKey    C                  01121
 +
      // 01122 No Page Down Key DDS keyword indicator.
 +
    D errDDSPgDn      C                  01122
 +
      // 01123 No Page Up Key DDS keyword indicator.
 +
    D errDDSPgUp      C                  01123
 +
      // 01124 No Clear Key keyword indicator.
 +
    D errDDSClrKey    C                  01124
 +
      // 01125 No Help Key DDS keyword indicator.
 +
    D errDDSHlpKey    C                  01125
 +
      // 01126 No Home Key DDS keyword indicator.
 +
    D errDDSHomeKey  C                  01126
 +
      // 01201 Record mismatch detected on input.
 +
    D errInpMisMatch  C                  01201
 +
      // 01211 I/O operation to a closed file.
 +
    D errIOClosed    C                  01211
 +
      // 01215 OPEN issued to already open file.
 +
    D errAlreadyOpen  C                  01215
 +
      // 01216 Error on implicit OPEN/CLOSE.
 +
    D errOpenClosereq...
 +
    D                C                  01216
 +
      // 01217 Error on explicit OPEN/CLOSE.
 +
    D errOpenClose    C                  01217
 +
      // 01218 Unable to allocate record.
 +
    D errRcdLocked    C                  01218
 +
      // 01221 Update/delete operation without a prior read.
 +
    D errUpdNoRead    C                  01221
 +
      // 01222 Referential constraint allocation error.
 +
    D errRefCstAlloc  C                  01222
 +
      // 01231 Error on SPECIAL file.
 +
    D errSpecial      C                  01231
 +
      // 01235 Error in PRTCTL space or skip entries.
 +
    D errPrtCtl      C                  01235
 +
      // 01241 Record number not found.
 +
    D errRecNbrNotFnd...
 +
    D                C                  01241
 +
      // 01251 Permanent I/O error.
 +
    D errPermIO      C                  01251
 +
      // 01255 Session or device error.
 +
    D errSessDev      C                  01255
 +
      // 01261 Attempt to exceed maximum number of devices.
 +
    D errMaxDev      C                  01261
 +
      // 01271 Attempt to acquire unavailable device.
 +
    D errDevUnavail  C                  01271
 +
      // 01281 Operation to unacquired device.
 +
    D errDevUnacq    C                  01281
 +
      // 01282 Job ending with controlled option.
 +
    D errJobEndCtl    C                  01282
 +
      // 01284 Unable to acquire second device.
 +
    D errAcqAddDev    C                  01284
 +
      // 01285 Attempt to acquire an allocated device.
 +
    D errDevAlloc    C                  01285
 +
      // 01286 Attempt to open shared file with SAVDS or SAVIND.
 +
    D errShrOpn      C                  01286
 +
      // 01287 Response indicators overlap SAVIND indicators.
 +
    D errRespInd      C                  01287
 +
      // 01299 I/O error detected.
 +
    D errIO          C                  01299
 +
      // 01331 Wait time exceeded for WORKSTN file.
 +
    D errWait        C                  01331
 +
      // 09998 Internal failure in RPG compiler or in runtime
 +
      //      subroutines.
 +
    D errIntRPGFail  C                  09998
 +
      // 09999 Program exception in system routine.
 +
    D errPgmExc      C                  09999
 +
</code>
  
== Specific Error Codes ==
+
==Categories==
00000 No Exception/Error
+
[[Category:RPG]]
 +
[[Category:Programming]]

Latest revision as of 13:54, 26 July 2013

Here is a list of the MONITOR group error codes in numeric order.

Main Error Codes

Code Condition
*PROGRAMHandles all program-error status codes, from 00100 to 00999.
*FILEHandles all file-error status codes, from 01000 to 09999.
*ALLHandles both program-error and file-error status codes, from 00100 to 09999. This is the defualt.

Specific Error Codes

Code Condition
00000No Exception/Error.
00100 Value out of range for string operation
00102 Divide by zero
00103 Receiver too small to hold result
00105 The character string contains invalid data
00112 Invalid Date, Time or Timestamp value.
00115 Length of varying length variable is out of range.
00121 Array index not valid
00122 OCCUR outside of range
00202 Called program or procedure failed
00211 Error calling program or procedure
00222 Pointer or parameter error
00353 The XML document does not match the RPG variable; Reason code x
00401 Data area specified on IN/OUT not found
00413 Error on IN/OUT operation
00414 User not authorized to use data area
00415 User not authorized to change data area
00907 Decimal data error (digit or sign not valid)
01021 Tried to write a record that already exists (file being used has unique keys and key is duplicate, or attempted to write duplicate relative record number to a subfile).
01022 Referential constraint error detected on file member.
01023 Error in trigger program before file operation performed.
01024 Error in trigger program after file operation performed.
01211 File not open.
01218 Record already locked.
01221 Update operation attempted without a prior read.
01222 Record cannot be allocated due to referential constraint error
01331 Wait time exceeded for READ from WORKSTN file.

/COPY member

Jon Paris contributed the bulk of the following /COPY member via MIDRANGE-L:

       // Version 1

     * Called program returned with the LR indicator on.
    D ReturnWithLR    C                   00001

     * Conversion resulted in substitution.
    D ConvWithSub     C                   00050

     * Value out of range for string operation
    D StringRangeErr  C                   00100

     * Negative square root
    D NegativeSqRoot  C                   00101

     * Divide by zero
    D DivideByZero    C                   00102

     * An intermediate result is not large enough to contain the result.
    D IntResTooBig    C                   00103

     * Float underflow. An intermediate value is too small to be contained in the
     * intermediate result field.
    D IntResTooSmall  C                   00104

     * Invalid characters in character to numeric conversion functions.
    D Char2NumErr     C                   00105

     * Invalid Date, Time or Timestamp value.
    D InvalidDTZ      C                   00112

     * Date overflow or underflow. (For example, when the result of a Date
     *   calculation results in a number greater than *HIVAL or less than *LOVAL.)
    D DateRangeErr    C                   00113

     * Date mapping errors, where a Date is mapped from a 4-character year to a
     *   2-character year, and the date range is not 1940-2039.
    D DateMapErr      C                   00114

     * Variable-length field has a current length that is not valid.
    D FieldLenErr     C                   00115

     * Table or array out of sequence.
    D ArraySeqErr     C                   00120

     * Array index not valid
    D ArrayIndxErr    C                   00121

     * OCCUR outside of range
    D InvalidOccur    C                   00122

     * Reset attempted during initialization step of program
    D ResetErr        C                   00123

     * Called program or procedure failed; halt indicator (H1 through H9) not on
    D CallFail        C                   00202

     * Error calling program or procedure
    D ErrorOnCall     C                   00211

     * Pointer or parameter error
    D ParmError       C                   00222

     * Called program or procedure returned with halt indicator on
    D ReturnWithHalt  C                   00231

     * Halt indicator on in this program
    D HaltIsOn        C                   00232

     * Halt indicator on when RETURN operation run
    D HaltOnReturn    C                   00233

     * RPG IV formatted dump failed
    D DumpFail        C                   00299

     * Class or method not found for a method call, or error in method call.
    D MethodCallErr   C                   00301

     * Error while converting a Java array to an RPG parameter on entry to a
     *   Java native method.
    D JNIJavaArrayToRPGErr...
    D                 C                   00302

     * 00302 Error converting RPG parm to Java array on exit from an RPG native method.
    D JNIExitParmErr  C                   00302

     * Error converting RPG parameter to Java array in preparation for a Java
     *   method call.
    D JNIRPGtoJavaAErr...
    D                 C                   00304

     * Error converting Java array to RPG parameter or return value after a Java method
    D MethodReturnErr...
    D                 C                   00305

     * Error converting RPG return value to Java array.
    D JNIReturnErr    C                   00306

     * Error on DSPLY operation
    D DSPLYErr        C                   00333

     // 00351 XML parser error
    D errXmlParse     C                   00351
     // 00352 Bad option for XML opcode
    D errXmlBadOption...
    D                 C                   00352
     // 00353 XML document mismatch RPG variable
    D errXmlIntoMismatch...
    D                 C                   00353
     // 00354 Problem preparing to parse XML document
    D errXmlProblem...
    D                 C                   00354

     * Data area specified on IN/OUT not found
    D DataAreaNotFnd  C                   00401

     * *PDA not valid for non-prestart job
    D PDAUsageErr     C                   00402

     * Data area type or length does not match
    D DtaAreMismatch  C                   00411

     * Data area not locked for output
    D DtaAraNotLocked...
    D                 C                   00412

     * Error on IN/OUT operation
    D DtaAraIOErr     C                   00413

     * User not authorized to use data area
    D DtaAraAutErr    C                   00414

     * User not authorized to change data area
    D DtaAraUpdErr    C                   00415

     * Error on UNLOCK operation
    D DtaAraUnlErr    C                   00421

     * Length requested for storage allocation is out of range
    D AllocSizeErr    C                   00425

     * Error encountered during storage management operation
    D StorageMgtErr   C                   00426

     * Data area previously locked by another program
    D DtaAraLckOther  C                   00431

     * Data area locked by program in the same process
    D DtaAraLckThis   C                   00432

     * Character field not entirely enclosed by shift-out and shift-in characters
    D MissingSISO     C                   00450

     *Conversion between two CCSIDs is not supported.
    D CCSIDErr        C                   00451

     // 00452 CCSID conversion could not convert all characters
     // With H-spec keyword CCSIDCVT(*EXCP), you get error status 452 instead of 
     // non-error status 50, if the CCSID conversion can't convert all the 
     // characters. You won't find these messages in your QRNXMSG message file 
     // unless you have followed the instructions in the PTF cover letter to add them. 
    D errCcsidCvtDataLoss...
    D                 C                   00452  
     * Failure to retrieve sort sequence.
    D SortSeqRetFail  C                   00501

     * Failure to convert sort sequence.
    D SortSeqConvFail...
    D                 C                   00502

     * Commitment control not active.
    D CCNotActive     C                   00802

     * Rollback operation failed.
    D RollBackFail    C                   00803

     * Error occurred on COMMIT operation
    D CommitErr       C                   00804

     * Error occurred on ROLBK operation
    D RollBackErr     C                   00805

     * Decimal data error (digit or sign not valid)
    D DecDataErr      C                   00907

     * Errors indicative of RPG/System error

     * The level number of the compiler used to generate the program does not
     *    agree with the level number of the RPG IV run-time subroutines.
    D RPGLevelErr     C                   00970

     * Internal failure in ILE RPG compiler or in run-time subroutines
    D RPGErr          C                   09998

     * Program exception in system routine.
    D SystemErr       C                   09999



     * File related errors (*FILE category)
     *  Extracted from Chapter 5 - File Exception/Errors of the RPG IV Reference

     * (W,D,SQ) Tried to write a record that already exists
    D RecordExists    C                   01021

     * (D) Referential constraint error detected on file member.
    D RefConstErr     C                   01022

     * (D,SQ) Error in trigger program before file operation performed.
    D TriggerErrB     C                   01023

     * (D,SQ) Error in trigger program after file operation performed.
    D TriggerErrA     C                   01024

     * (W,D,SQ) Match field out of sequence.
    D MatchSeqErr     C                   01031

     * Array/table load sequence error.
    D LoadSeqErr      C                   01041

     * Array/table load sequence error. Alternate collating sequence used.
    D LoadAltSeqErr   C                   01042

     * Excess entries in array/table file.
    D TooManyEntries  C                   01051

     // 01061 File parameter error
    D errFileParm...
    D                 C                   01061 

     * (W,D,SQ) Numeric sequence error.
    D NumSeqErr       C                   01071

     * (W) No indicator on the DDS keyword for Print key.
    D NoPrintKeyInd   C                   01121

     * (W) No indicator on the DDS keyword for Roll Up key.
    D NoRollUpKeyInd  C                   01122

     * (W) No indicator on the DDS keyword for Roll Down key.
    D NoRollDownKeyInd...
    D                 C                   01123

     * (W) No indicator on the DDS keyword for Clear key.
    D NoClearKeyInd   C                   01124

     * (W) No indicator on the DDS keyword for Help key.
    D NoHelpKeyInd    C                   01125

     * (W) No indicator on the DDS keyword for Home key.
    D NoHomeKeyInd    C                   01126

     * (W) 34xx Record mismatch detected on input.
    D RecMatchErr     C                   01201

     * (All) I/O operation to a closed file.
    D FileIsClosed    C                   01211

     * (All) OPEN issued to a file already opened.
    D FileIsOpen      C                   01215

     * (All) Error on an implicit OPEN/CLOSE operation.
    D OpenFailImp     C                   01216

     * (All) Error on an explicit OPEN/CLOSE operation.
    D OpenFailExp     C                   01217

     * (D,SQ) Record already locked.
    D RecordLocked    C                   01218

     * (D,SQ) Update operation attempted without a prior read.
    D UpdWithNoRead   C                   01221

     * (D,SQ) Record cannot be allocated due to referential constraint error
    D AllocErrRC      C                   01222

     * (SP) Error on SPECIAL file.
    D SpecialFileErr  C                   01231

     * (P) Error in PRTCTL space or skip entries.
    D PrtCtlErr       C                   01235

     * (D,SQ) Record number not found. (Record number specified in record
     *        address file is not present in file being processed.)
    D RAFError        C                   01241

     * (W) 80xx 81xx Permanent I/O error occurred.
    D PermIOErr       C                   01251

     * (W) 82xx 83xx Session or device error occurred. Recovery may be possible.
    D DeviceErr       C                   01255

     * (W) Attempt to exceed maximum number of acquired devices.
    D MaxAcqDevices   C                   01261

     * (W) Attempt to acquire unavailable device
    D DeviceNA        C                   01271

     * (W) Operation to unacquired device.
    D DeviceNotAcq    C                   01281

     * (W) 0309 Job ending with controlled option.
    D JobEnding       C                   01282

     * (W) Unable to acquire second device for single device file
    D CannotAcqDev    C                   01284

     * (W) 0800 Attempt to acquire a device already acquired.
    D AlreadyAcq      C                   01285

     * (W) Attempt to open shared file with SAVDS or IND options.
    D SharedOpenFail  C                   01286

     * (W) Response indicators overlap IND indicators.
    D IndOverlapErr   C                   01287

     * (W,D,SQ) Other I/O error detected.
    D OtherIOErr      C                   01299

     * (W) 0310 Wait time exceeded for READ from WORKSTN file.
    D ReadWaitExp     C                   01331




       // Version 2

     // 00000 No error.
    D stsNoError      C                   00000
     // 00001 Called program returned with *INLR on.
    D stsPgmRetLR     C                   00001
     // 00002 Function key pressed.
    D stsFkeyPressed  C                   00002
     // 00011 End of file (%EOF = *ON).
    D stsEOF          C                   00011
     // 00012 Record not found (%FOUND = *OFF).
    D stsNotFnd       C                   00012
     // 00013 Write to full subfile.
    D stsWrtSflFull   C                   00013
     // 00050 Conversion resulted in substitution.
    D stsCvtSubst     C                   00050
     // 00100 String operation, value out of range.
    D errInvalString  C                   00100
     // 00101 Negative square root.
    D errNegSqrt      C                   00101
     // 00102 Divide by zero.
    D errDivZero      C                   00102
     // 00103 Intermediate result too small to contain result.
    D errResultTooSmall...
    D                 C                   00103
     // 00104 Float underflow. Intermediate value too small.
    D errFltUndflow   C                   00104
     // 00105 Invalid characters in character to numeric conversion
    D errInNumConv    C                   00105
     // 00112 Invalid date, time, or timestamp value.
    D errInvalDate    C                   00112
     // 00113 Date overflow or underflow.
    D errDateOvflow   C                   00113
     // 00114 Date mapping error.
    D errDateMap      C                   00114
     // 00115 Invalid length for variable-length field.
    D errInvalVarLen  C                   00115
     // 00120 Table or array out of sequence.
    D errArrSeq       C                   00120
     // 00121 Invalid array index.
    D errArrIdx       C                   00121
     // 00122 OCCUR value out of range.
    D errInvalOccur   C                   00122
     // 00123 RESET attempted during initialization.
    D errInzReset     C                   00123
     // 00202 Call to program or procedure ended in error.
    D errCallFail     C                   00202
     // 00211 Error occurred while calling program or procedure.
    D errCall         C                   00211
     // 00221 Called program tried to use unpassed parameter.
    D errParmNoPass   C                   00221
     // 00222 Pointer or parameter error.
    D errPtrParm      C                   00222
     // 00231 Called program returned with halt indicator on.
    D errCallHalt     C                   00231
     // 00232 Halt indicator on in this program.
    D errHalt         C                   00232
     // 00233 Halt indicator on when RETURN operation run.
    D errHaltRtn      C                   00233
     // 00299 RPG dump failed.
    D errDumpFail     C                   00299
     // 00301 Error in method call.
    D errMthCall      C                   00301
     // 00302 Error converting Java array to RPG parm entering Java
     //       native meth
    D errCvtJavArrEnt...
    D                 C                   00302
     // 00303 Error converting RPG parm to Java array exiting RPG
     //       native method
    D errCvtRpgPrmOut...
    D                 C                   00303
     // 00304 Error converting RPG parm to Java array preparing
     //       Java meth call.
    D errCvtRPGtoJavaArray...
    D                 C                   00304
     // 00305 Error cvting Java array to RPG parm/return value
     //       after meth call.
    D errCvtJavArrayToRPG...
    D                 C                   00305
     // 00306 Error converting RPG return value to Java array.
    D errcvtRpgRtnVal...
    D                 C                   00306
     // 00333 Error on DSPLY operation.
    D errDsply        C                   00333
     // 00401 Data area not found.
    D errDataAreaNotFnd...
    D                 C                   00401
     // 00402 *PDA not valid for non-prestart job.
    D errInvalPsjPDA  C                   00402
     // 00411 Data area types/lengths do not match.
    D errInvalDataArea...
    D                 C                   00411
     // 00412 Data area not allocated for output.
    D errDataAreaNoOutput...
    D                 C                   00412
     // 00413 I/O error while processing data area.
    D errDataAreaIO...
    D                 C                   00413
     // 00414 Not authorized to use data area.
    D errDataAreaUseAut...
    D                 C                   00414
     // 00415 Not authorized to change data area.
    D errDataAreaChgAut...
    D                 C                   00415
     // 00421 Error while unlocking data area.
    D errDataAreaUnlFail...
    D                 C                   00421
     // 00425 Requested storage allocation length out of range.
    D errInvalAlloc   C                   00425
     // 00426 Error during storage management operation.
    D errStorFail     C                   00426
     // 00431 Data area previously allocated to another process.
    D errDataAreaAlloc...
    D                 C                   00431
     // 00432 *LOCK for data area not granted.
    D errDataAreaLock...
    D                 C                   00432
     // 00450 Character field not enclosed by SO and SI.
    D errInvalSosi    C                   00450
     // 00451 Cannot convert between two CCSIDs.
    D errCvtCcsid     C                   00451
     // 00501 Sort sequence not retrieved.
    D errSortRtv      C                   00501
     // 00502 Sort sequence not converted.
    D errSortCvt      C                   00502
     // 00802 Commitment control not active.
    D errCmtNact      C                   00802
     // 00803 Rollback failed.
    D errRolbkFail    C                   00803
     // 00804 COMMIT error.
    D errCmt          C                   00804
     // 00805 ROLBK error.
    D errRolbk        C                   00805
     // 00907 Decimal data error.
    D errDecimal      C                   00907
     // 00970 Compiler/runtime level check.
    D errCompLevChk   C                   00970
     // 01011 Undefined record type.
    D errUndefRecTyp  C                   01011
     // 01021 Record already exists.
    D errRecExists    C                   01021
     // 01022 Referential constraint error.
    D errRefCst       C                   01022
     // 01023 Trigger program error before operation.
    D errTrgBefore    C                   01023
     // 01024 Trigger program error after operation.
    D errTrgAfter     C                   01024
     // 01031 Match field sequence error.
    D errMatchSeq     C                   01031
     // 01041 Array/table load sequence error.
    D errLoadArr      C                   01041
     // 01042 Array/table load sequence error.
    D errArrAltSeq    C                   01042
     // 01051 Excess entries in array/table file.
    D errArrOvflow    C                   01051
     // 01071 Record out of sequence.
    D errInvalRecSeq  C                   01071
     // 01121 No Print Key DDS keyword indicator.
    D errDDSPrtKey    C                   01121
     // 01122 No Page Down Key DDS keyword indicator.
    D errDDSPgDn      C                   01122
     // 01123 No Page Up Key DDS keyword indicator.
    D errDDSPgUp      C                   01123
     // 01124 No Clear Key keyword indicator.
    D errDDSClrKey    C                   01124
     // 01125 No Help Key DDS keyword indicator.
    D errDDSHlpKey    C                   01125
     // 01126 No Home Key DDS keyword indicator.
    D errDDSHomeKey   C                   01126
     // 01201 Record mismatch detected on input.
    D errInpMisMatch  C                   01201
     // 01211 I/O operation to a closed file.
    D errIOClosed     C                   01211
     // 01215 OPEN issued to already open file.
    D errAlreadyOpen  C                   01215
     // 01216 Error on implicit OPEN/CLOSE.
    D errOpenClosereq...
    D                 C                   01216
     // 01217 Error on explicit OPEN/CLOSE.
    D errOpenClose    C                   01217
     // 01218 Unable to allocate record.
    D errRcdLocked    C                   01218
     // 01221 Update/delete operation without a prior read.
    D errUpdNoRead    C                   01221
     // 01222 Referential constraint allocation error.
    D errRefCstAlloc  C                   01222
     // 01231 Error on SPECIAL file.
    D errSpecial      C                   01231
     // 01235 Error in PRTCTL space or skip entries.
    D errPrtCtl       C                   01235
     // 01241 Record number not found.
    D errRecNbrNotFnd...
    D                 C                   01241
     // 01251 Permanent I/O error.
    D errPermIO       C                   01251
     // 01255 Session or device error.
    D errSessDev      C                   01255
     // 01261 Attempt to exceed maximum number of devices.
    D errMaxDev       C                   01261
     // 01271 Attempt to acquire unavailable device.
    D errDevUnavail   C                   01271
     // 01281 Operation to unacquired device.
    D errDevUnacq     C                   01281
     // 01282 Job ending with controlled option.
    D errJobEndCtl    C                   01282
     // 01284 Unable to acquire second device.
    D errAcqAddDev    C                   01284
     // 01285 Attempt to acquire an allocated device.
    D errDevAlloc     C                   01285
     // 01286 Attempt to open shared file with SAVDS or SAVIND.
    D errShrOpn       C                   01286
     // 01287 Response indicators overlap SAVIND indicators.
    D errRespInd      C                   01287
     // 01299 I/O error detected.
    D errIO           C                   01299
     // 01331 Wait time exceeded for WORKSTN file.
    D errWait         C                   01331
     // 09998 Internal failure in RPG compiler or in runtime
     //       subroutines.
    D errIntRPGFail   C                   09998
     // 09999 Program exception in system routine.
    D errPgmExc       C                   09999 

Categories