I am calling a sql stored procedure inside my cobol function,but I am getting an error code of -927 at the place where I am calling my Stored Procedure. Please help me out as to how to solve this issue. Giveb below are the Link edit step of the jcl used to compile Stored procedure as well as Cobol functions:
Function I am getting that error message runs in WLM address space so there is no system error messages. I am able to trace the error code by putting displays into my Cobol function. Also I gone through the documents for sqlcode -927 but couldn't find out what exactly is required to be done. If you have any cluse about it then please do let me know..
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.
Suggest you work with your dba or other system support people to resolve how to launch your code.