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.

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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