Customizing PROC FREQ's Output for One- and Two-Way Tables

The PROC FREQ is commonly used to display one- and two-way frequency tables. By default, frequencies are displayed without commas and percentages have two decimal places and no percent sign. One-way tables can be customized by modifying the default Output Delivery System (ODS) template. Unfortunately, there is little customization possible for two-way tables not displayed as a list. In this paper we describe how to customize the PROC FREQ’s output by combining the ODS system with PROC FORMAT and PROC TEMPLATE. The final outputs are one- and two-way tables that can display both the frequencies and the percents with any type of format, including special characters and percent signs.