GB

Explanation

In trying to satisfy a GN call, DL/I reached the end of the database or, if you used a SETR statement, the end of the current range. In this situation, the SSA for the call or qualification for the command specified data beyond the last occurrence, and the search was not limited to the presence of a known or expected segment occurrence.

For example, a GN call was specified for a key greater than a particular value, rather than a GU call specifying a key value beyond the highest value.

A GB status code can be returned for:
  • An unqualified GN call
  • A qualified GN call without a maximum key (if no data is returned to the I/O area)

In contrast, a GE status code, instead of a GB status code, can be returned for:

  • A GU call
  • A qualified GN call without a maximum key (if data is returned to the I/O area)
  • A qualified GN call with a maximum key

IMS also returns this status code when it has closed a GSAM data set. The assumed position for a subsequent request for a GSAM or full-function database is the beginning of the database, or if a SETR statement was used for a DEDB database, the beginning of the current range.

Rather than having an abnormal termination occur, this status code is returned to the application program that issued the EXEC DLI command.

Programmer response

User determined.

Source

DL/I codes