The UNIQUEOUT= option can be used with the NOUNIQUEKEY
option. It cannot be combined with the NODUPKEY option.
See
“NOUNIQUEKEY” on page 1732
SAS Data Set Options: Reference
BY Statement
Specifies the sorting variables.
Examples:“Example 1: Sorting by the Values of Multiple Variables” on page 1742
“Example 2: Sorting in Descending Order” on page 1744
“Example 4: Retaining the First Observation of Each BY Group” on page 1749
Syntax
BY <DESCENDING> variable-1 <<DESCENDING>variable-2 …>;
Required Argument
variable
specifies the variable by which PROC SORT sorts the observations. PROC SORT
first arranges the data set by the values in ascending order, by ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.