I wish to call a macro if a condition is met. The two options I see are in the following code snippets, however, I don't know how to do either. The first updates a table that is internal to the do loop. data _null_;
array veh_no[1006] _temporary_ (2800:3805)
;
call execute('proc sql;');
do i=1 to dim(veh_no) while (veh_no(i) ne .);
if <daily update table condition> then
do:
call execute(cats('%nrstr(%rept_map)(',veh_no(i),')'));
end;
end;
call execute('quit;');
run; OR the second uses the same updated table to update the do loop array. data _null_;
array veh_no[varying] _temporary_ <input from updated table have>
;
call execute('proc sql;');
do i=1 to dim(veh_no) while (veh_no(i) ne .);
call execute(cats('%nrstr(%rept_map)(',veh_no(i),')'));
end;
call execute('quit;');
run;
... View more