Hi,
I am running a simulation experiment in a loop. I have written a macro to run simulation for multiple times. The macro runs only once and produces no errors or warnings. I checked the syntax and also spent quite some time on debugging this. Everything seems fine.
Am i missing something?
Your macro has a %DO loop that uses the macro variable I.
One possiblity is that somewhere in some of the included program files you are setting the value of I to 3 or more so that the DO loop ends.
Your macro has a %DO loop that uses the macro variable I.
One possiblity is that somewhere in some of the included program files you are setting the value of I to 3 or more so that the DO loop ends.
You might try something like
%put After datamanipulation.sas i=&i;
after each of the %include.
Or if you have any macros in any them ensure that all of their macro varaibles are explicitly set to Local.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.