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.
Getting SQLCODE -927 with a new COBOL-DB2 program.
-
- New Member
- Posts: 2
- Joined: Mon Aug 04, 2014 11:44 am
-
- New Member
- Posts: 2
- Joined: Mon Aug 04, 2014 11:44 am
Re: Getting SQLCODE -927 with a new COBOL-DB2 program.
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
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
- Akatsukami
- 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.
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
Re: Getting SQLCODE -927 with a new COBOL-DB2 program.
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,.
Reason: Added code tags,.
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