Chapter Contents

Previous

Next
The COMPARE Procedure

Procedure Syntax


Restriction: You must use the VAR statement when you use the WITH statement.
Tip: Supports the Output Delivery System (see Chapter 2, "Fundamental Concepts for Using Base SAS Procedures")
Reminder: You can use the LABEL, ATTRIB, FORMAT, and WHERE statements. See Chapter 3, "Statements with the Same Function in Multiple Procedures," for details. You can also use any global statements as well. See Chapter 2, "Fundamental Concepts for Using Base SAS Procedures," for a list.

PROC COMPARE <option(s)>;
BY <DESCENDING> variable-1
<...<DESCENDING> variable-n>
<NOTSORTED>;
ID <DESCENDING> variable-1
<...<DESCENDING> variable-n>
<NOTSORTED>;
VAR variable(s);
WITH variable(s);

To do this Use this statement
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


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.