Please help me with my Oracle procedure question. In my package I have a procedure and I want to declare a cursor which uses dynamic queries.
type DocList IS REF CURSOR;
curDocList DocList;
.
.
.
OPEN curDocList FOR v_sql; --v_sql has dynamic sql
...
FOR recDocStatusList IN curDocList
LOOP
When I am trying to use - FOR recDocStatusList IN curDocList it is giving me the error: [Error] PLS-00221 (2262: 34): PLS-00221: 'CURDOCLIST' is not a procedure or is undefined.
Please help me correcting the issue.