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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts After newcopy the CICS program user f... CICS 7
No new posts Starting a CICS Transaction from a Th... CICS 0
No new posts Problem moving a cobol program into E... COBOL Programming 3
No new posts Error to invoke MPP program through B... IMS DB/DC 4
No new posts Inserting into table while open selec... DB2 1
Search our Forums:


Back to Top