Hi -
I have req such that , i need to call a procedure inside another using dynamic sql.
there is permanent table, which has procedure column, which will be loaded from java.
Once it is loaded a report procedure will be called through perl script.
In that procedure , based on the values in the procedure column, i need to call using dynamic sql.
eg:
tbl1 -
column(proc)
get_report
replace procedure report()
sel proc into var1 from tbl1;
set var2='call '||var1 ||'()';
call dbc.sysexecsql(var2);
The above code is valid? will we be able to call a procedure inside another using dynamic sql.
Please guide....
Forums: