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.
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 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.
Ready to level-up your skills? Choose your own adventure.