DBA > Job Interview Questions > COBOL SQL Interview Questions

How do you specify and use a cursor in a COBOL p

More DBA job interview questions and answers at http://dba.fyicenter.com/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 Job Interview Questions