I have declare a REF cursor in the Package Specification:
TYPE type_cur IS REF CURSOR RETURN track_rec_type;
PROCEDURE prg_ConceptTrackMatrix_rpt(cur_TrackMatrix IN OUT PRG_EDP_REPORTS.type_cur);
In the Package body:
v_str_sql:= 'select card_cd as card_num from table_card';
v_openCur:= 'BEGIN OPEN cur_TrackMatrix '||'FOR '||v_str_sql||'; END;';
EXECUTE IMMEDIATE v_openCur;
When I execute this procedure I get a an error
"identifier 'CUR_TRACKMATRIX' must be declared"
I would greatly appreciate if someone could point me to what I am doing wrong.
Thanks
TYPE type_cur IS REF CURSOR RETURN track_rec_type;
PROCEDURE prg_ConceptTrackMatrix_rpt(cur_TrackMatrix IN OUT PRG_EDP_REPORTS.type_cur);
In the Package body:
v_str_sql:= 'select card_cd as card_num from table_card';
v_openCur:= 'BEGIN OPEN cur_TrackMatrix '||'FOR '||v_str_sql||'; END;';
EXECUTE IMMEDIATE v_openCur;
When I execute this procedure I get a an error
"identifier 'CUR_TRACKMATRIX' must be declared"
I would greatly appreciate if someone could point me to what I am doing wrong.
Thanks