This is another way that may be useful.
data class;
set sashelp.class;
if ranuni(3) lt .5 then do;
weight = weight+1;
height = height-1;
sex = lowcase(sex);
end;
run;
filename lst temp;
ods listing file=lst;
proc compare novalues brief base=sashelp.class compare=class;
run;
ods listing close;
data vars;
infile lst col=col;
input @'NOTE: Values of the following' varnum @;
input @'variables compare unequal:' @;
do i = 1 to varnum;
input variable:$32. @;
output;
end;
stop;
run;
proc print;
run;
... View more