Hello, is it possible in SAS to call a macro and write the macro at the end of the programm? It works, but i would need to run the programm twice. Are there any other ideas? For example: %mymacro;
proc sql;
select id_discriminator, count(*)
from work.macro_table
group by 1;
quit;
%macro mymacro;
proc sql;
create table work.macro_table as
select id_discriminator
from data_have;
quit;
%mend; Thanks in advance, Martin
... View more