Hello All,
In hash programming is there a way to find/lookup for keys which has greater than or less than the hashkey, instead of equal to?
For example: in the below code output we have the final dataset created id roll=2. I would like to know if there is a way to create the final dataset with data where roll>2 or roll<2 ?
data one; input roll ; cards; 1 2 4 6 ; run;
data final; if _n_=1 then do; declare hash aa(); aa.definekey('roll'); aa.definedata('dat'); aa.definedone(); roll=2; dat="Match"; aa.add(); end; set one; if aa.find() =0 then output; run;
Thanks,
Mushy
... View more