Examining the Top N Report Solution
The source of the Microsoft Visual Studio solution for the Top N Report task represents the typical structure of a custom task.
The C#-based solution contains the following main components:
Programs folder with SAS programs
The Programs folder contains four SAS programs to support the different reports. StraightReport.sas and StraightChart.sas provide the basis for the basic Top N report and chart with no category column. StratifiedReport.sas and StratifiedChart.sas support a category column. The processing is slightly different between the types. It is cleaner to keep the implementations separate rather than complicate a single SAS program to support all implementations.
TopNReport class (TopNReport.cs)