I have macros that have DDL statements in them. Since there is a restriction of one DDL statement per macro, is there a way to have one macro which has a DDL statement call another one which also has a DDL statement. I tried the following but that is not working when I try and run the macro with the following command
exec ba_proddb_v.derek_chain_list
I get the following error
3932: Only a ET or null statement is legal after a DDL statement
I am using Queryman, not BTEQ.
I created the macro as follows:
replace macro BA_PRODDB_V.DEREK_CHAIN_LIST
AS (
exec ba_proddb_v.derek_chain_list1;
exec ba_proddb_v.derek_chain_list2;
);
Thanks!
QueryMan
exec ba_proddb_v.derek_chain_list
I get the following error
3932: Only a ET or null statement is legal after a DDL statement
I am using Queryman, not BTEQ.
I created the macro as follows:
replace macro BA_PRODDB_V.DEREK_CHAIN_LIST
AS (
exec ba_proddb_v.derek_chain_list1;
exec ba_proddb_v.derek_chain_list2;
);
Thanks!
QueryMan