|
View previous topic :: View next topic
|
| Author |
Message |
mandyzzzz
New User

Joined: 04 Jul 2005 Posts: 23
|
|
|
|
I am getting -927 as sqlcode Please help!
Thanks in advance |
|
| Back to top |
|
 |
iknow
Active User

Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
Hi
I got this message from IBMMAINFRAMES-Error Descriptor. Please correct me if I am wrong.
THE LANGRAGE INTERFACE WAS CALLED WHEN THE CONNECTING ENVIRONMENT WAS NOT ESTABLISHED. THE PROGRAM SHOULD BE INVOKED UNDER THE DSN COMMAND
| Quote: |
Knowledge in your hands for your journey ahead |
|
|
| Back to top |
|
 |
satish1978
New User
Joined: 22 Jun 2006 Posts: 13 Location: mumbai
|
|
| Back to top |
|
 |
vana
New User
Joined: 27 Jul 2006 Posts: 6
|
|
|
|
-927 THE LANGUAGE INTERFACE (LI) WAS CALLED WHEN THE CONNECTING
ENVIRONMENT WAS NOT ESTABLISHED. THE PROGRAM SHOULD BE INVOKED
UNDER THE DSN COMMAND
Explanation: In the TSO environment, the user has attempted to execute an application program without first establishing the correct execution environment by issuing the DSN command. In the IMS, CICS, or call attachment facility (CAF) environment, the user has attempted to execute an application program that is not using the correct language interface module.
System Action: The statement cannot be executed.
Programmer Response: In the TSO environment, DB2 application programs should be invoked under the RUN subcommand of the DSN command processor. In the IMS, CICS or CAF environment check that the application was link-edited with or is dynamically allocating the correct language interface module. The language interface modules required in each environment are as follows:
The DYNAM option can result in the incorrect language interface module being loaded at runtime. |
|
| Back to top |
|
 |
pasupuleti
New User
.jpg)
Joined: 30 Jun 2006 Posts: 8 Location: India
|
|
|
|
Hi,
I read a discussion on the web where it states an instance where you're likely to get -927. Please be warned that your situation could be different from this. Hope this would be of help:
If you're situation is that you're trying to execute a non-db2 cobol program that is calling a db2-calling program. You HAVE to use the IKJEFT01-JCL even if your main program doesn't use DB2-commands. And you have to bind a plan for this program. Ohterwise you cannot connect to the DB2-system an receive a SQL-Code -927.
| Code: |
//GO EXEC PGM=IKJEFT01,DYNAMNBR=20,REGION=4M
//STEPLIB DD DISP=SHR,DSN=TEST.LM
// DD DISP=SHR,DSN=PROD.LM
// DD DISP=SHR,DSN=DBNT.DSNEXIT
// DD DISP=SHR,DSN=DBNT.DSNLOAD
//SYSOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//CEEDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DBNT)
RUN PROGRAM(COBOLPGM) PLAN(BATCH01) -
END
//* |
Please correct me if I am wrong. |
|
| Back to top |
|
 |
|
|