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.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.