I am using this SAS code for Variable Summary report and receiving an error message: log is telling me the variable "auto" and "v1" doesn't exist
following SAS Code:
ods graphics on;
proc cluster method=average std pseudo noeigen outtree=tree;
id auto;
var v1-v4;
run;
proc tree horizontal;
run;
You do not have a DATA= option on the PROC statement which data set to use. By default it uses the last run data set, which is likely not what you want in this case since it doesn't have the variables. This is a style of programming I would never recommend, it's always better to explicitly specify the data set used in a procedure.
@hdrew wrote:
I am using this SAS code for Variable Summary report and receiving an error message: log is telling me the variable "auto" and "v1" doesn't exist
following SAS Code:
ods graphics on;
proc cluster data=inputDataSet method=average std pseudo noeigen outtree=tree;
id auto;
var v1-v4;
run;
proc tree data=tree horizontal;
run;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.