I have

declare

x mypackage.gencursor;

begin

mypackage.myprocedure(x);

for v1 in x loop

dbms_output.put_line(x.name);

end loop;

end;
/

The x is a out parameter of myprocedure. It is a cursor called gencursor. I am trying to print the values but it is not working. Does anyone know what I am doing wrong?

I am getting the following error message:

declare
*
ERROR at line 1:
ORA-06550: line 9, column 11:
PLS-00221: 'X' is not a procedure or is undefined
ORA-06550: line 9, column 1:
PL/SQL: Statement ignored