BookmarkSubscribeRSS Feed
ravi_k
Calcite | Level 5

 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;



3 REPLIES 3
ravi_k
Calcite | Level 5

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 

AMSAS
SAS Super FREQ

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.

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 947 views
  • 1 like
  • 3 in conversation