Interview Questions

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

COBOL SQL 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