Is there a method for the user to define variable names within the output dataset?
The below code is part of a production process in my workplace.
The variable name length of the macro variable &score is between 23 to 28.
The tabulate procedure defaults the variable names for the computed stats within the DecileOut dataset(var_stat ..score_mean score_min score_max).
When the combined variable name (&score_mean) is greater then 32, SAS defaults the variable name to 'Mean'. I am aware that the variable name length is limited to 32.
So my question: Can a user define variable names within the Output dataset in Proc Tabulate? Please provide examples.
proc tabulate data=temp2 noseps formchar=' ' out=DecileOut;
class r_score;
var &score ;
weight weight;
table r_one='' all,
&score*(min mean max)*f=percent8.2
;
run;
... View more