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
A table has two indexes defined. Which one will be used by the SEARCH?
What are different data types in cobol?
Why would you use find and get rather than to obtain?
How do you get the data to code the BMS macro?
What is report-item in COBOL?
How do you reference the fixed block file formats from cobol programs
What is the use of intialize verb?
) how do u code after getting data?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?
What is length is cobol?
What is the usage of comp fields in cobol?
how do you reference the rrds file formats from cobol programs
Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc
Why occurs cannot be used in 01 level in COBOL?
I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?