Hi @pkp Please see if this example helps-
data lookup;
do key=1 to 3;
data=rand('uniform')*100;
output;
end;
run;
data base;
do key=1 to 10;
output;
end;
run;
data one two;
if _n_=1 then do;
if 0 then set lookup;
dcl hash h(dataset:'lookup');
h.definekey('key');
h.definedata('data');
h.definedone();
end;
set base;
rc=h.find();
if rc=0 then output one;
else do;
call missing(data);
output two;
end;
run;