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..

Answers were Sorted based on User's Feedback



I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am no..

Answer / swati

If Sub-Program executtion is terminated,cursor is
automatically closed.

Is This Answer Correct ?    23 Yes 1 No

I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am no..

Answer / subhani

DEAR DUDE ABIRAMI DONT GIVE WRONG ANSWERS PLEASE.... SO MANY
PERSONS PREPARE FOR INTERVIEW PLEASE I REQUEST TO U........

Is This Answer Correct ?    1 Yes 0 No

I have a Main Program which is calling Sub-Program which is a DB2 pgm. What will happen if I am no..

Answer / 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

More COBOL Interview Questions

how do you reference the esds vsam file formats from cobol programs

0 Answers  


what is the difference between COBOL2 AND COBOL390?

0 Answers   L&T,


What are the different data types in cobol?

0 Answers  


How can you submit a job from COBOL programs?

2 Answers   ITC Infotech,


What are the different rules to perform a Search?

0 Answers  


How do you do in-line PERFORM?

4 Answers   Accenture,


What is 66 level number and where it is used in real time by software developers?

2 Answers   ITC Indian Tobacco Company, TCS,


Can anyone explain me CALL procedure in COBOL.Does it carries similarities like call by reference in C.

1 Answers  


what is srange and nosrange pls reply to ths question ?

2 Answers   L&T,


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

0 Answers  


can we use 77 level no for Redefines?if we use give an example?

3 Answers   Mphasis,


what is the difference between PA & PF keys?

1 Answers   IBM,


Categories