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

Sql Code -981


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
LearningDb2

New User


Joined: 19 Jun 2009
Posts: 40
Location: India

PostPosted: Tue Dec 14, 2010 6:22 pm
Reply with quote

Hi..
I am working on DB2 v9.1 z/os
While connecting to DB2 from my Rexx application i am getting the sqlcode -981.
The reason code being 00C12219.
In Manuals
Quote:
00C12219
Explanation: The application program issued an SQL
or IFI function request without completing CREATE
THREAD processing. SQL or IFI requests cannot be
issued until CREATE THREAD processing is complete.
User response: You can continue processing with a
corrected request.


The Rexx simply fetches data from sysibm.syspackdep.
Do in need to explicitly call DSNRLI in my application?

Please suggest what exactly should be my approach regarding this.

Thanks in advance......

Regards
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Tue Dec 14, 2010 6:46 pm
Reply with quote

Does your program issue a DSNREXX "CONNECT" __ssid command? If so, what is the RC?
Back to top
View user's profile Send private message
LearningDb2

New User


Joined: 19 Jun 2009
Posts: 40
Location: India

PostPosted: Tue Dec 14, 2010 7:36 pm
Reply with quote

Hi don.leahy,

Thx for your reply...it just ticked into my mind that i am not closing the connection..hence i added..
Quote:

S_RC=RXSUBCOM('DELETE','DSNREXX','DSNREXX')


n its working fine..

Thanks again

Regards
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top