Hi Sachin,
Yes you are correct in that the macro processor processes the macro before the data step compiler. As such you need to use the data step routine, call execute to invoke your macro instead.
The following code should do what you want...
array time_interval{4}$ 10 ('month','month3','annual','ytd');
do i=1 to 4;
call execute('%get_calcs(' || time_interval{i} || ')');
end;
I hope this helps.
Cheers,
Michelle
... View more