Hi,
I have a formulation with more than two indices, SAS produce an error:
for example:
con problem_con{<index_1, index_2> in two_indices}: ...
SAS produced an error and told me:
"The name 'index_1' hides an outer declaration."
What does this mean and how do I get rid of this error?
Thank you!
The message should just be a NOTE and not an ERROR. It means that you have declared index_1 as a parameter and then later used it as a dummy index. The following code yields the same behavior:
proc optmodel;
num i;
put ({i in 1..3});
quit;
To avoid the note, either omit the declaration or use a different dummy index.
The message should just be a NOTE and not an ERROR. It means that you have declared index_1 as a parameter and then later used it as a dummy index. The following code yields the same behavior:
proc optmodel;
num i;
put ({i in 1..3});
quit;
To avoid the note, either omit the declaration or use a different dummy index.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.