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

Is it possible to open two cursors with WITH HOLD


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

New User


Joined: 19 Apr 2005
Posts: 12

PostPosted: Mon Jun 06, 2005 9:51 pm
Reply with quote

Hi
can anybody tell me that, is it possible to open two cursors in same program with WITH HOLD option.
actually i faced this question in an interview in Accenture.
So plz clear me asap.
Back to top
View user's profile Send private message
Pushpak

New User


Joined: 06 May 2005
Posts: 18

PostPosted: Tue Jun 07, 2005 1:11 pm
Reply with quote

Hi,

I have tested it. It works. Two cursors with " WITH HOLD" option for 2 diff tables in same program. It is working fine.

Pushpak.
Back to top
View user's profile Send private message
rkr

New User


Joined: 19 Apr 2005
Posts: 12

PostPosted: Wed Jun 08, 2005 5:45 pm
Reply with quote

Hi
thanx for clearing my doubt.
But can we open two cursors on same table in the same program.
thanx in advance.
Back to top
View user's profile Send private message
Pushpak

New User


Joined: 06 May 2005
Posts: 18

PostPosted: Thu Jun 09, 2005 1:36 pm
Reply with quote

Hi,

DB2-SQL provided very good features, like JOIN,UNION,Subqueries, Corelated subqueries & so on, for developers to combine two diff/same tables & get the results.

You don't need to try two cursors on same table in same program, instead you can use any of the above features to satisfy your requirement.

Pushpak.
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 Calling an Open C library function in... CICS 1
No new posts Open VSAM File in IMS DC Region - DFS... IMS DB/DC 0
No new posts Positioned Deletes/Updates using curs... DB2 3
No new posts DFHCSDUP EXTRACT unable to open outpu... CICS 5
No new posts IGZ0035S THERE WAS AN UNSUCCESSFUL OP... COBOL Programming 3
Search our Forums:

Back to Top