Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Call a procedure inside another using dynamic sql - - forum topic by ganeshkim

$
0
0

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: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>