/ Published in: SAS
Simple, basic syntax for SAS lookup
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
data results; if _n_=1 then do; set lookup_file(keep=id); ** Read in the variable properties; declare hash look(dataset: "lookup_file"); look.definekey("id"); look.definedata("name"); look.definedone(); end; set big_data; if look.find()=0 then output; run;