Features: |
PROC SORT statement option: : NODUPKEY BY statement |
Other features: |
PROC PRINT |
Data set: | Account |
Note: | The EQUALS option, which is the default, must be in effect to ensure that the first observation for each BY group is the one that is retained by the NODUPKEY option. If the NOEQUALS option has been specified, then one observation for each BY group will still be retained by the NODUPKEY option, but not necessarily the first observation. |
proc sort data=account out=towns nodupkey;
by town; run;
proc print data=towns;
var town company debt accountnumber;
title 'Towns of Customers with Past-Due Accounts'; run;