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
 
Is it possible to open two cursors with WITH HOLD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Is it possible to open two cursors with WITH HOLD
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    Post subject: Re: Is it possible to open two cursors with WITH HOLD
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    Post subject: Re: Is it possible to open two cursors with WITH HOLD
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    Post subject: Re: Is it possible to open two cursors with WITH HOLD
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    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 Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm
No new posts FTOPEN TEMP is failing due to dataset... mbenaud TSO/ISPF 7 Thu Jul 28, 2016 4:28 pm
No new posts How LOAD PROGRAM and LOAD on HOLD is ... pkmurali CICS 4 Tue May 03, 2016 6:26 pm
This topic is locked: you cannot edit posts or make replies. Secure Browse to open dataset sandip_mainframe TSO/ISPF 3 Tue Apr 26, 2016 11:18 am
This topic is locked: you cannot edit posts or make replies. BAE Systems - Recruitment Open Days -... Express Mainframe Jobs 0 Fri Apr 22, 2016 8:19 pm

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