Sample 23349: Modify the default format displayed with PROC FREQ
To modify the format for a particular field, edit the FORMAT= attribute for the statistic's column with PROC TEMPLATE. If you are not sure which table template is being used, issue the ODS TRACE statement before the PROC FREQ step to generate the table template information to the SAS Log.
/* make this change in the WORK library */
ods path (prepend) work.template(update);
proc template;
define table Base.Freq.Onewayfreqs;
parent = Base.Freq.OneWayList;
column Line FVariable FListVariable Variable Frequency
TestFrequency Percent TestPercent CumFrequency CumPercent;
define Percent;
format = 8.4;
end;
end;
run;
proc freq data=sashelp.class;
tables age;
run;
See also PROC TEMPLATE FAQ and Concepts.
This sample uses PROC TEMPLATE to change the format of the PERCENT column to 8.4.
| Type: | Sample |
| Topic: | Third Party ==> Output ==> HTML SAS Reference ==> ODS (Output Delivery System) SAS Reference ==> Procedures ==> FREQ
|
| Date Modified: | 2007-10-04 16:10:51 |
| Date Created: | 2003-08-08 16:42:39 |
Operating System and Release Information