Learn it on Mainframe Path. Do it with Mainframe KIT.Learn on Mainframe Path ▸
Mainframe KIT ● Nothing leaves this tab

-927

Language interface called while not connected to Db2NEGATIVE SQLCODE · CHECKED 2026-11-14
Checked against IBM documentation

A Db2 program was run without the correct execution environment or without the right language interface module.

QUICK ANSWER

A Db2 program was run without the correct execution environment or without the right language interface module.

LIKELY CAUSES, IN THE ORDER OF THIS ENTRY

  1. In TSO, the program was run without first establishing the DSN environment.
  2. In IMS, CICS, RRSAF or CAF, the wrong language interface module is linked or allocated.
  3. The DYNAM compile option loaded the wrong language interface module at run time.

CHECKED 14 Nov 2026 IBM: Db2 13 - Codes - SQLCODE -927 | Db2 for z/OS 13.0.0

MOST LIKELY

In TSO, the program was run without first establishing the DSN environment.

FIRST CHECK

In TSO, run the program with the RUN subcommand of the DSN command processor.

TRY IT ▸

Site search

What it means

In TSO the program was not run under the DSN command. In IMS, CICS, RRSAF or CAF the program is not using the right language interface module. The statement is not processed.

Typical causes

  • In TSO, the program was run without first establishing the DSN environment.
  • In IMS, CICS, RRSAF or CAF, the wrong language interface module is linked or allocated.
  • The DYNAM compile option loaded the wrong language interface module at run time.

How to fix it

  1. In TSO, run the program with the RUN subcommand of the DSN command processor.
  2. Link-edit or dynamically allocate the right module: DSNELI for TSO, DFSLI000 for IMS, DSNCLI for CICS, DSNRLI for RRSAF, DSNALI for CAF.
  3. Check whether the DYNAM option causes the wrong module to be loaded.