Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Finding the plan when code compiled u... Ahemad DB2 1 Fri Dec 01, 2017 6:38 pm
No new posts Strange Code amitc23 COBOL Programming 6 Tue Nov 28, 2017 11:25 am
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us