what happens if we dont close cursor in db2-cobol pgm?

Answer Posted / vaid

i think, if we dont close a cursor there will be no problem.

since once the program ends all the database
transaciton/connections are terminated and also commit is
implicitly executed.. so the cursors will be closed.

and all resources held by program will be released.

Is This Answer Correct ?    12 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

There are 5 fields and 1000 records in a file. Unload it into an array. Write the syntax for declaration and how will you unload it.

934


For rewrite, why is it mandatory that file needs to be opened?

623


how we sort two input files based on a common column and giving one o/p file please send me the coding logic?

1657


what is amode(24), amode(31), rmode(24) and rmode(any)?

705


What is length is cobol?

652






i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1773


What is an in line perform? When would you use it? Anything else you wish to say about it.

649


what is the difference between COBOL2 AND COBOL390?

2455


What is the difference between Call and a Link?

702


What is a scope terminator give example?

659


State the various causes of s0c1, s0c5 and s0c7.

665


Explain how you can characterize tables in cobol?

640


i want a program using by if, evaluate , string, unstring, perform, occurs?

4065


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676


In COBOL, what is the different between index and subscript?

763