Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

store proc DB2 error code -981, & 00C12219

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Mon Jul 02, 2007 1:05 pm    Post subject: store proc DB2 error code -981, & 00C12219
Reply with quote

Hi all,
i am working on store procedure i got following error while running the job

SQLCODE: -981
SQLERRMC => 00C12219

i am using a store procedure(SR2 program) to call other program(SPS program),

if anyone has worked on it, can help me out by passing me the sample program of both called and calling program


regards,
Jaspal virk
Back to top
View user's profile Send private message

mkk157

Active User


Joined: 17 May 2006
Posts: 310

PostPosted: Mon Jul 02, 2007 7:58 pm    Post subject: Hi
Reply with quote

-981 THE SQL STATEMENT FAILED BECAUSE THE RRSAF CONNECTION IS NOT IN A STATE THAT ALLOWS SQL OPERATIONS, REASON reason-code.

Explanation: The application attempted to execute an SQL operation but
the RRSAF connection was not in a state that allows the processing of SQL
statements.

System Action: The statement cannot be executed.

Programmer Response: See reason-code in "Section 4. DB2 Codes" in
topic 4.0 for an explanation of the problem. Correct the error in the
application, REBIND, and run the application again.

Destination: 57015
Back to top
View user's profile Send private message
jaspal

New User


Joined: 22 May 2007
Posts: 68
Location: mumbai

PostPosted: Tue Jul 03, 2007 8:12 pm    Post subject: Re: store proc DB2 error code -981, & 00C12219
Reply with quote

hi ,
the above stated reply from you can be found after giving QW -981
if u have worked on it then pls forward me sample job, called program ,calling program for store procedure, it not an easy job to run store procedure on mainframe

regards,
Jaspal virk
9833814470
Back to top
View user's profile Send private message
catchyblues

New User


Joined: 28 Dec 2005
Posts: 24

PostPosted: Fri Jul 20, 2007 8:03 pm    Post subject: Re: store proc DB2 error code -981, & 00C12219
Reply with quote

Hi,

Even I'm getting the same error when I've called a stored Proc and executing the 1st SQL query within it.

Can anyone tell me how to rectify this ?
Back to top
View user's profile Send private message
Bhavna Antriwale

New User


Joined: 03 Jan 2008
Posts: 1
Location: Bangalore

PostPosted: Fri Jan 04, 2008 12:37 pm    Post subject: SQLCODE = -981, REASON 00C12219
Reply with quote

Hi,

Even I got the same error when I executed a COBOL-DB2 program by IKJEFT01 and a subroutine called in it attempted to insert a row in a table.

Can anybody tell me what needs to be done in this case?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us