Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 -> JCL & VSAM
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    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

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

New 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: 146
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm
No new posts Getting -504 Cursor Name GTT-ARTS-CUR... Robin Sulsona DB2 2 Fri Mar 17, 2017 1:43 am
No new posts Release of Adabas Cursor mohitsethi All Other Mainframe Topics 1 Mon Feb 06, 2017 8:36 pm
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us