In reply to Chris Hemedinger.

Hello Chris,

This is great code. It is also possible to add an even number of ands, like:

data _null_;
if = 1; and = 0;
if if eq and and and and and eq if then
put 'they are the same';
else
put 'they are different';
run;

Cheers,
Eric ("SAS newbie") who did the suggestion (hiding under a blanket :-))