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

WITH HOLD OPTION OF CURSOR


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
CUDNAREN

New User


Joined: 06 Jan 2006
Posts: 9

PostPosted: Tue Feb 07, 2006 11:44 am
Reply with quote

HI ALL

CAN ANYBODY TELL ME WHAT HAPPENS WHEN IAM FECTHING 1000 RECORDS AND AT 500TH RECORD ABEND OCCURS AND I HAVE DECLARED A CURSOR WITH WITHHOLD OPTION.HERE AT THIS STAGE WHETHER THE CURSOR WILL BE IN OPEN STAGE OR SINCE ABEND OCCURED IT WILL BE CLOSED.

PLS TELL ME WHETHER CURSOR WILL BE OPENED OR CLOSED WHEN ABEND OCCURS.
Back to top
View user's profile Send private message
KMK

New User


Joined: 29 Jul 2005
Posts: 18

PostPosted: Tue Feb 07, 2006 11:55 am
Reply with quote

Hi

WITH HOLD option is used to hold the result set only if COMMIT is issued.

But when the program abends , the cursor will be closed implicitly, I think

Cheers,
Back to top
View user's profile Send private message
pa1chandak
Currently Banned

New User


Joined: 31 Jan 2006
Posts: 55

PostPosted: Tue Feb 07, 2006 11:55 am
Reply with quote

it will be open because of with hold option


pawan
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Tue Feb 07, 2006 12:38 pm
Reply with quote

WITH HOLD specifies that the cursor may continue to be used after the transaction that created it successfully commits.
If WITH HOLD is specified and the transaction that created the cursor successfully commits, the cursor can continue to be accessed by subsequent transactions in the same session. (But if the creating transaction is aborted, the cursor is removed.) A cursor created with WITH HOLD is closed when an explicit CLOSE command is issued on it, or the session ends
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts OUTFIL with SAVE option DFSORT/ICETOOL 7
No new posts CICS vs LE: STORAGE option CICS 0
No new posts INSYNC option with same function as I... JCL & VSAM 0
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top