View previous topic :: View next topic
|
Author |
Message |
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
Dear all,
I got SQLCODE=-981 with the following error message
DSNT408I SQLCODE = -981, ERROR: THE SQL STATEMENT FAILED BECAUSE THE RRSAF CONNECTION IS NOT IN A STATE THAT ALLOWS SQL OPERATIONS, REASON 00C12219 DSNT418I SQLSTATE = 57015 SQLSTATE RETURN CODE DSNT415I SQLERRP = DSNARA00 SQL PROCEDURE DETECTING ERROR DSNT416I SQLERRD = 0 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION DSNT416 I SQLERRD = X'00000000' X'00000000' X'00000000' X'FFFFFFFF' X'00000000' X'00000000' SQL DIAGNOSTIC INFORMATION.
while calling a Store Procedure from COBOL Program. I have called the stored procedure as typical COBOL-DB2 Program as shown below
Code: |
CALL WS-XYZ USING WS-L055-CRDORG-NAME
WS-L055-CRDORG-ALT
WS-L055-CRDORG-ID
WS-L055-OUT-CODE
WS-L055-ERROR-MSG
WS-L055-IND.
|
where XYZ is an stored procedure. Will it be the problem causing to -981? Please explain and give your valuable inputs to resolve this issue.
Thanks,
Murali. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
The Stored Procedure has been generated as requiring RRSAF type of attach.
Your CALLing program has not invoked an RRS connection with db2
or
the SP invocation methodology has not included an RRS connection.
I don't know which. Is this a MQS-DB2 application? |
|
Back to top |
|
|
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
Can you please pitch it more on RRS? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
pkmurali Warnings : 1 Active User
Joined: 15 Dec 2005 Posts: 271
|
|
|
|
It deals with DB2 Stored Procedures. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
It deals with DB2 Stored Procedures. |
Is this a question or a reply?
Posting a clear reply is more important than posting a brief reply. . . |
|
Back to top |
|
|
|