If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Cursor Names in ResultSets from a COBOL Stored Procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-04, 10:41
rsreeni rsreeni is offline
Registered User
 
Join Date: Dec 2004
Posts: 3
Cursor Names in ResultSets from a COBOL Stored Procedure

Hi,

I am calling a DB2 Stored Procedure returning multiple Resultsets ( from different cursors ) from a Java Client. The call goes through, get successful return code, sql state etc..But when I tried to retrieve the cursor name using resultSet.getCursorName(), it returns Nulls. I am able to get the ResultSetMetaData object & retrieve all the column names correctly. So, I took out the getCursorName and tried to get the data. Now I am getting COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver] CLI0115E Invalid cursor state. SQLSTATE=24000

We are running db2 z/OS V7 & connecting through DB2 Connect V8.1 FXP3.

Could anyone throw some light on the problem & help me.

Thanks,

Sreeni
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On