I have a Main Program which is calling Sub-Program which is
a DB2 pgm. What will happen if I am not closing the cursor
used in the Sub-program? Please advise..
Answer Posted / abirami
If you do not close the cursor it might give warnign
message, But it will not fail, When you try to open next
time it will give error that cursor is already opened, and
you are tryign to open the same
| Is This Answer Correct ? | 0 Yes | 13 No |
Post New Answer View All Answers
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
When is inspect verb is used in cobol?
How do define dynamic array in cobol. how do you define single dimensional array and multidimensional array in your cobol?
Is it possible that the redefines clause has different picture clauses compared to the one it redefined?
If you are current on the owner of a set, what is the difference between obtain next and obtain first?
what is search and searchall?what is the diffrence between them?give an best example?
HOw can I get the negative sign while deduct high value from low value
Why do we code s9 (4) comp. Inspite of knowing comp-3 will occupy less space?
How to remove the spaces at the end of each record in the output file of variable length, via cobol program?
What is a report item?
Give some examples of command terminators?
how do you reference the fixed unblock file formats from cobol programs
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?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
what are decleratives in cobol?