it wont run in order the way it is I dont think, since the first section creates vg_sales_basic as the dataset however the line below it uses vg_sales_cookd as the dataset.
Can some one please explain it
libname ssr 'E:\Users\ssr180000\Downloads';
data vg_sales_basic;
set ssr.videogamesales_main;
run;
proc glm data = vg_sales_cookd;
class Rating(ref='E10+') Platform(ref='PC') Genre(ref='Strategy');
model log_global_sales = Rating Platform Genre Weighted_Score Critic_Score User_Score User_Count Critic_Count Generation Generation*Platform / solution;
where cookd < 4/4155;
output out=vg_sales_safe;
run;
quit;
the code at the start in line 2 creates 'vg_sales_basic' as the dataset but in line 6 'vg_sales_cookd' is used as a dataset. I want this to be explained
Assuming there is not a work.vg_sales_cookd, dataset then you are correct the PROC GLM will error
It has nothing to do with the data step that creates work.vg_sales_basic.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.