*---------------------------------------------------------; * Sort Routine for Control.Stats File ; *---------------------------------------------------------; * ; * Ronald W. Matheny, U.S. EPA ; *---------------------------------------------------------; options linesize=132 nocenter date pagesize=10000; libname maia 'c:\NetApps\sas\sasuser\ugm\maia'; *Input the data from control_stats; *The header of the file is reported as missing values; data maia.maia0214; infile 'c:\NetApps\sas\sasuser\ugm\maia\control_stats.log'; Input Run Product Compare Pop Edges Clusters Size Leesalee Slope Urban Xmean Ymean Rad Fmatch Diff Brd Sprd Slp RG; *The following line creates a new statistic that replaces the old product; Product=Pop*Edges*Clusters*Size; proc sort;by descending product; proc print noobs; var run product pop edges clusters size leesalee slope diff brd sprd slp rg; run;