PROC COMPARE <option(s)>;
|
BY <DESCENDING>
variable-1
<...<DESCENDING> variable-n>
<NOTSORTED>;
|
|
ID <DESCENDING> variable-1
<...<DESCENDING> variable-n>
<NOTSORTED>;
|
|
Task |
Statement |
Compare the contents of SAS data sets, or compare two variables |
PROC COMPARE
|
Produce a separate comparison for each BY group |
BY
|
Identify variables to use to match observations |
ID
|
Restrict the comparison to values of specific variables |
VAR
|
Compare variables of different names |
WITH and
VAR |
Compare two variables in the same data set |
WITH and
VAR |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.