Getting SQLCODE -927 with a new COBOL-DB2 program.

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Bhanu Pathak
New Member
Posts: 2
Joined: Mon Aug 04, 2014 11:44 am

Getting SQLCODE -927 with a new COBOL-DB2 program.

Post by Bhanu Pathak »

Hi,

I have written a new COBOL-DB2 program. This program is being called by another program which is only a COBOL program. I have called it the way it should be called and coded in similar way the other programs are coded. But I still end up with SQLCODE -927 all the time. How can I solve it?

Regards.
Bhanu Pathak
New Member
Posts: 2
Joined: Mon Aug 04, 2014 11:44 am

Re: Getting SQLCODE -927 with a new COBOL-DB2 program.

Post by Bhanu Pathak »

This is what I get as error:

SQLCODE = -927, ERROR: THE LANGUAGE INTERFACE (LI) WAS CALLED WHEN THE CONNECTING ENVIRONMENT WAS NOT ESTABLISHED. THE PROGRAM SHOULD BE INVOKED UNDER THE DSN COMMAND
User avatar
Akatsukami
Global Moderator
Global Moderator
Posts: 122
Joined: Tue Oct 20, 2015 3:20 am
Location: Bloomington, IL
Contact:

Re: Getting SQLCODE -927 with a new COBOL-DB2 program.

Post by Akatsukami »

Explicitly link with the necessary interface module.
"I come to the conclusion that, men loving according to their own will and fearing according to that of the prince, a wise prince should establish himself on that which is in his own control and not in that of others." -- Niccolò Machiavelli
mmcrew
New Member
Posts: 4
Joined: Thu Dec 24, 2015 7:53 am

Re: Getting SQLCODE -927 with a new COBOL-DB2 program.

Post by mmcrew »

Specifically, try:

Code: Select all

//SYSTSIN    DD *
  DSN SYSTEM(your db2 subsystem id)
  RUN PROGRAM(your program id) -
      PLAN(plan of the sub program) -
      PARM('parameters that your program wants')
  END
/*
Last edited by Anuj Dhawan on Fri Jan 08, 2016 10:02 am, edited 1 time in total.
Reason: Added code tags,.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”