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

What is Pic 9v99 Indicates in COBOL?

0 Answers   SwanSoft Technologies,


Explain how will you differentiate between an internal and an external sort, the pros and cons, internal sort syntax etc

0 Answers  


What are the access modes of START statement?

0 Answers  


EXPLAIN MAIN FRAME TESTING PROCESS...HOW TO FIX THE MAINFRAME BUGS?

0 Answers   Accenture,


What happens in the background of spool when we submit a job for compilation and execution... This is a recent question in ibm...Kindly help me.....

3 Answers   IBM,






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

0 Answers  


A LESS 1200 IF B GREATER 25 MOVE 47 TOC ELSE MOVE 57 TO C IF A GREATER 249 MOVE 67 TO C ELSE NEXT SENTENCE ELSE IF B LESS 67 MOVE 27 TO C What will be the value of C, when A is 137 and b is 25

3 Answers   TCS,


How to find How Many Lines in Sysin DD * Parameter Thru Cobol Coding? If any one knows the Answer Please Reply .....Thanks From Shree

3 Answers   Merrill Lynch,


can we redefine 77 level item is it possible

4 Answers   HCL,


after udatingg first 110 rows, my job abends. now how do i change my cobol program so that when i restart the Job it will start updating from 111th row ( i.e in next run I di=ont want to update those 110 rows which are already been updated in the first run before job abend)

7 Answers   Allianz, Wipro,


What is 77 level used for ?

12 Answers   IBM, iGate,


How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)

0 Answers   HCL,


Categories