A custom task example for SAS Enterprise Guide, implemented in Visual Basic.  This task creates a Top N report.