O'Reilly logo

Custom Tasks for SAS Enterprise Guide Using Microsoft .NET by Chris Hemedinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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)

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required