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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.