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

What is cobol?

933


Program A (Normal COBBAT) calling a B Program (DB2COBOL, COBBATDB which is using a VSAM file. its a dynamic call. How we will handle VSAM file decleration in our from JCL from where we are running A PGM. And should we have PLAN for A pGM also. if possible can some one post a sample JCL. Thanks for help in advance.

5402


What is amode(24)?

865


What is the difference between PIC 9.99 and 9v99 in COBOL?

958


Write a program to explain size error.

876






What is redefines clause in COBOL?

1024


What is static and dynamic call in cobol?

775


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

2108


how do you reference the variable unblock file formats from cobol programs

989


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1869


What is length is cobol?

849


Write down the divisions of cobol program?

825


I have to write to a outfile where the number of records in that file should be the header of that file using IMS.. can anyone help me in this issue

2218


What is the Purpose of Pointer in the string?

812


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

836