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
 
Sql Code -981

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Sql Code -981
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: 658
Location: Whitby, ON, Canada

PostPosted: Tue Dec 14, 2010 6:46 pm    Post subject:
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    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm

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