I have the following macro:
%macro AgregateSummAll(SAll,SNatl);
proc sql;
create table &SNatl as
select
Month,
Processing,
InsuranceRng,
sum(Transactions) as Transactions,
sum(TotalRev) as TotalRev format dollar16.2
from &SAll
group by
Month,
Processing,
InsuranceRng;
quit;
%mend; * AgregateSumAll;
Inside of the program I am using existing table SumAllReg, to go through macro but SAS does not see it. %AgregateSummAll(&SumAllReg,SumNatlReg);
Get the following error message:
&SumAllReg - 22 200 WARNING: Apparent symbolic reference SUMALLREG not resolved.
&sumallreg
. It works fine in a test case for me. – Reeza&&
to pass table name into macro. – Parfait