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
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.