|
On 29 mar, 07:44, "Jinto83" <jint...@sina.com> wrote:
> Hi,
>
> How do I run a loop say %calculatetemperature(argument=), on a list of 100 arguments:
>
> 1975
> 1988
> 1930
> 1999
> ....
>
> So that in essence I invoke the macro 100 times ,each time with a different input argument.
>
> --- news://freenews.netfront.net/ - complaints: n...@netfront.net ---
what about a macro that call an other macro:
%macro calculatetemperature(argument);
%put &argument;
%mend;
%macro loopmacro;
%let cpt=1;
%do cpt=1 %to 10;
%calculatetemperature(&cpt);
%end;
%mend;
%loopmacro;
|