Usage Note 23350: How to replace the variable's name with the variable's label in PROC FREQ output
In the output for a one-way frequency table, the variable's label, if one is specified, is centered at the
top of the table. If you want to use the variable's label instead of the name,
then use PROC TEMPLATE to edit the HEADER= value as shown in the example code below.
For a similar modification to crosstabulation output, see SAS Note 48277.
proc template;
edit Base.Freq.OneWayList ;
edit h1;
/* set text to BLANK instead of VARLABEL */
text " ";
end;
edit FVariable;
just=varjust;
style=rowheader;
id;
generic;
header=varlabel;
end;
end;
run;
title;
ods listing;
proc freq data=sashelp.class;
label age='this is a label';
tables age;
run;
/* delete the customized table if desired */
proc template;
delete base.freq.onewaylist;
run;
See also the full SAS Notes and Concepts for ODS.
Operating System and Release Information
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Type: | Usage Note |
Priority: | low |
Topic: | Third Party ==> Output ==> HTML SAS Reference ==> ODS (Output Delivery System) SAS Reference ==> Procedures ==> FREQ
|
Date Modified: | 2021-07-26 09:29:37 |
Date Created: | 2003-08-08 16:45:36 |