Hello Everyone,
I am trying to create an index on a new data set where I have a new variable.
Here is the code that I have so far:
data work.all_staff (index=Age_Hired);
set orion.sales orion.nonsales;
Age_Hired =(year(Hire_Date)-year(Birth_Date));
run;
So I am trying to create an index on the new variable Age_Hired, and I get the following message in my log:
ERROR 23-7: Invalid value for the INDEX option.
I am not sure where I am going wrong with this or if I cannot create a new index against a new variable (which would seem silly since that is a problem on my homework assignment
)
Could someone please let me know where I am going wrong with my code?
Thanks,
Alisa
even when we want only a single simple index, the data set option value should appear in (parentheses), like
index=( age_hired )
even when we want only a single simple index, the data set option value should appear in (parentheses), like
index=( age_hired )
Hi Peter!
Thanks for letting me know what was wrong with my code.
Thanks!
Alisa
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.