Create the output data set TOWNS but include only the first observation of each BY group. NODUPKEY writes only the first observation of each BY group to the new data set TOWNS.

Operating Environment Information:   If you use the VMS operating environment sort, then the observation that is written to the output data set is not always the first observation of the BY group.  [cautionend]


proc sort data=account out=towns nodupkey;