IMS and DL/I error codes

sysVar.errorCode is set to any DL/I status code for GSAM and Message Queue I/O, just as for any other file I/O. EGL I/O error codes map to DL/I error codes as shown in the following table:

EGL I/O error code DB status code Severity
endOfFile GB Soft
noRecordFound GE Soft
duplicate II (duplicates allowed) Soft
unique II (duplicates not allowed) Hard
ioError any non-blank status code Hard or soft
hardIOError non-blank other than GA, GB, GD, GE, GK, II Hard
  IMS™ Msg Queue status code  
endOfFile QC Soft
noRecordFound QD Soft
hardIOError non-blank other than QC, QD, CE, CF, CG, CI, CJ, CK, CL Hard
  GSAM status code  
endOfFile GB Soft
hardIOError non-blank other than GB Hard

An exception of type DLIException is thrown for any hard error related to any type of DL/I access. For details, see EGL system exceptions.

Related concepts
DL/I database support

Related tasks
EGL system exceptions

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.