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

ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete

4 Answers   TCS,


I HAVE FOLLOWING DECLARATION. 02. A PIC X(10) VALUE 'XXXXXXXXXX'. 02. B REDEFINES A. 05. C PIC X(3). 05. D PIC X(3). 05. E PIC 9(3). IN MY PROG, I HAVE MOVE 1 TO E. DISPLAY A. WHAT WILL BE DISPLAYED AS A RESULT OF THIS? PLEASE EXPLAIN THE ANSWER. THANKS.

7 Answers   Amdocs,


COMP?

2 Answers  


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 anyone please give the example of Inline Perform.

6 Answers   TCS,






what modification we need to do in jcl if we use sort in cobol? I mean whether we need to include tempary file used for sorting in assign statement?

3 Answers   TCS,


what is the diff b/w select stsmt and cursor ?

2 Answers  


what is the difference between Normal vaiable and comp variable.

5 Answers   DELL,


HOW TO MOVE REDEFINES CLAUSE FROM INPUT TO OUTPUT ?

1 Answers  


Difference between cobol and cobol-ii?

0 Answers  


When would you use in-line perform?

2 Answers  


When we code these comp,comp1,comp-2,comp-3 and comp4 values. I know the differnece.I mean when we will prefer if it is new program.Explain in detail with memory examples. Thanks in advance.

1 Answers   CTS,


Categories