BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
skipper
Calcite | Level 5

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;

%GetData(1330);

END;

as I do not wish to write out loads of %GetData(1330); %GetData(1335); %GetData(1340); %GetData(1345); .... etc.....

1 ACCEPTED SOLUTION

Accepted Solutions
Linlin
Lapis Lazuli | Level 10

Hi,

try this:

%macro test;

  %do n=1330 %to 1730 %by 5;

  %getdata(&n);

  %end;

%mend;

%test

View solution in original post

1 REPLY 1
Linlin
Lapis Lazuli | Level 10

Hi,

try this:

%macro test;

  %do n=1330 %to 1730 %by 5;

  %getdata(&n);

  %end;

%mend;

%test

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1306 views
  • 1 like
  • 2 in conversation