PL/I · DB2 SQLCODE

SQLCODE -927: Language Interface Called Before Connecting Environment Established

What does SQLCODE -927: Language Interface Called Before Connecting Environment Established mean in PL/I?

The PL/I program's embedded SQL calls ran before the correct attachment-facility environment was set up. In batch or TSO this means the program was invoked directly instead of through the DSN command processor; under CICS or IMS it means the load module was link-edited with the wrong language-interface module.

SQLCODE -927: Language Interface Called Before Connecting Environment EstablishedDB2 for z/OS · PL/I (embedded SQL)

Condition

The PL/I program's embedded SQL calls ran before the correct attachment-facility environment was set up. In batch or TSO this means the program was invoked directly instead of through the DSN command processor; under CICS or IMS it means the load module was link-edited with the wrong language-interface module.

Fix

In TSO/batch, invoke the program under DSN RUN. Under CICS/IMS/CAF, confirm the program is link-edited with the correct attachment stub for the environment it actually runs in (DSNCLI for CICS, DSNELI for TSO batch, DFSLI000 for IMS, DSNRLI for RRSAF).

Related db2 sqlcode