Good day,
I ran summary statistics on my data and my analysis variable is repeated (twice) in the table title. How do I correct this so the analysis variable is listed once?
The solution worked.
That is probably the LABEL that is attached to the variable.
Try this example:
proc means data=sashelp.class ;
var age;
run;
proc means data=sashelp.class ;
var age;
label age='age';
run;
You can either use a LABEL statement to remove the label. Or add the NOLABELS option to the PROC MEANS statement.
As to why someone would make a variable named SL with a label of 'Score SL Score' makes no sense. Or worse why anyone would make a variable named 'SL Score'n with an embedded space in the middle of the variable name and then also attach a label to it that did not add any extra information.
Are you sure the printout was not something like "SL_SCORE SL Score" ? That makes more sense because then the variable name is probably SL_SCORE and the label is "SL Score".
The solution worked.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.