Interview Questions

How do you specify and use a cursor in a COBOL program? –

DB2 INTERVIEW QUESTIONS


(Continued from previous question...)

How do you specify and use a cursor in a COBOL program? –

Use DECLARE CURSOR statement either in working storage or in procedure division(before open cursor), to specify the SELECT statement. Then use OPEN, FETCH rows in a loop and finally CLOSE.

(Continued on next question...)

Other Interview Questions