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

How is a cursor closed if the program abends


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tushar_study

New User


Joined: 01 Feb 2007
Posts: 30
Location: Mumbai

PostPosted: Wed Mar 14, 2007 10:31 am
Reply with quote

Hi All,

I am using a cursor for a COBOL-DB2 application program.
I am aware of the fact that the program closes the cursor automatically
if it reaches NORMAL TERMINATION

I am using batch updates(COMMIT) with a frequency of 100.I have a query that if my program abends then what will be the status of the cursor.whether it will

1) Be closed by the program? or

2) Will it remain in the open state.If it remains open and I try to execute the program next time then do i need to first close the cursor and reopen it again?

Please help.

Thanks in advance.

regards,
Tushar
Back to top
View user's profile Send private message
vini_srcna

Active User


Joined: 26 May 2005
Posts: 178
Location: Copenhagen, Denmark

PostPosted: Wed Mar 14, 2007 3:45 pm
Reply with quote

Muthuvel has a given a good explanation about this. check that here http://ibmmainframes.com/viewtopic.php?t=18926&sid=bc26bbdbde74091b46246cb721939ed8
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top