The most convenient and succinct way is using PROC IML.
data have;
input abc def ghi jkl 8.;
datalines;
1 4 2 3
6 99 0 8
3 99 6 5
2 4 0 99
;
run;
proc iml;
use have;
read all var _all_ into x[c=vname];
close;
idx=loc((x=99)[<>,]);
want=vname[idx];
print want;
quit;
... View more