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
 
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 -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Testing rerad cursor for status with ... John F Dutcher DB2 8 Fri May 19, 2017 9:35 pm

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