Hello,
Do you want to use a reference dataset to generate macro calls ?
If so, here is a way to achieve this :
%macro comp(ds=, id=);
%put &=ds. &=id.;
%mend;
data meta;
input ds_name $ var_id $;
cards;
foo x
bar y
baz z
;
run;
data _NULL_;
set meta;
call execute(cats('%comp(ds=',ds_name,', id=',var_id,');'));
run;
... View more