Here I have a sample where I\'ve used foreach cursos explicit to solve a task.
set serveroutput on DECLARE CURSOR c_1 IS SELECT LNR, LFNDNR, DATU