Define the group and analysis variables. In this report, Sector and Manager are group variables. Sales is an analysis variable that is used to calculate the Sum statistic. Each detail row represents a set of observations that have a unique combination of formatted values for all group variables. The value of Sales in each detail row is the sum of Sales for all observations in the group. FORMAT= specifies the format to use in the report. Text in quotation marks in a DEFINE statement specifies the column heading.
define sector / group format=$sctrfmt. 'Sector'; define manager / group format=$mgrfmt. 'Manager'; define sales / analysis sum format=comma10.2 'Sales';