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

Can you please let me know the centre name of INS certification in Kolkata.

1715


What is the utilization of copybook in cobol? Could we utilize a similar copybook?

720


What is the local-storage section?

682


How do we get current date from system with century in COBOL?

805


Which is the default, TEST BEFORE or TEST AFTER for a PERFORM statement?

824






What rules are followed by the search verb.

638


Explain how you can characterize tables in cobol?

638


write a cobol logic. i have file that has 10 records .1 record go to first output file and second record goes to 2 output and etc

710


Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?

720


I have one ps file in which there are 3 fileds emp_no,emp_name and leave_app.this ps file information give the detail of employee which is going to apply for leave.suppose emp_no=113430,emp_name=ajay,leave_app=1 that means he is going to apply for 1 day leave.and accordingling the table in db2 will be updated means if he has that no of leave in his account then he will get dat leave and updated acc. in table(leave_balance=previous leave present in table-leave_app).Now i want to check whther the updated result is correct or not by comparing the two ps file using IEBCOMPARE or icetool so what is going to be the two ps file and how its is going to be compare.

2009


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

897


IF I mention stop run in CICS what happens?

1896


What is amode(31)

724


What is inspect in cobol ?

803


How many bytes S(8) comp field occupy and its maximum value?

1630