Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
WITH HOLD OPTION OF CURSOR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM
Author Message
CUDNAREN

New User


Joined: 06 Jan 2006
Posts: 11

PostPosted: Tue Feb 07, 2006 11:44 am    Post subject: WITH HOLD OPTION OF CURSOR
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
References
KMK

New User


Joined: 29 Jul 2005
Posts: 18

PostPosted: Tue Feb 07, 2006 11:55 am    Post subject:
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

Active User


Joined: 31 Jan 2006
Posts: 55

PostPosted: Tue Feb 07, 2006 11:55 am    Post subject:
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: 151
Location: Bangalore

PostPosted: Tue Feb 07, 2006 12:38 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1