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


Please Help Members By Posting Answers For Below Questions

What is the difference between comp and comp-3 usage?

681


What is perform what is varying?

711


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

748


What are the pertinent COBOL

2045


Which is not true about evaluate statement

1586






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

1933


Which mode is used to operate the sequential file?

669


What is the difference between external and global variables in COBOL?

815


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

623


What are the different rules of SORT operation?

700


Differentiate between structured cobol programming and object-oriented cobol programming.

669


What is amode(24)?

684


How did the release of cobol/370 version 1.3 improve the performance of release 1.1?

645


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

1944


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

644