Hi I have a call to a macro like
%GetData(1330);
How can I call this many times like
FOR n=1330 to 1730 by 5;
END;
as I do not wish to write out loads of %GetData(1330); %GetData(1335); %GetData(1340); %GetData(1345); .... etc.....
Hi,
try this:
%macro test;
%do n=1330 %to 1730 %by 5;
%getdata(&n);
%end;
%mend;
%test
View solution in original post
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.
Browse our catalog!