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
 
How is a cursor closed if the program abends

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How is a cursor closed if the program abends
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm

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