An IF statement returns a value based on a TRUE/FALSE evaluation, and you can nest IF statements inside another to create complex logic. A SWITCH statement evaluates an expression and tests it ...
Restriction: If you omit COMPARE=, you must use the WITH and VAR statements. Restriction: PROC COMPARE reports errors differently if one or both of the compared data sets are not RADIX addressable.