IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

store proc DB2 error code -981, & 00C12219


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top