Hi Novinosrin and thanks for your help. Sorry for the delayed response but it was a long weekend here where I am. I brought in the old data and ran it against the new data using the code you provided. It creates and populates a column in my results but its putting a "N" in every row even though I know there are some that should have a "Y". I am not very versed with complex code as I basically just run a standard and saved script so some of the code you use I don't really understand. I used this: data UrineAnalysis1; if _n_=1 then do; if 0 then set Apr2018_TEST; (The old data I imported in) dcl hash H (dataset:'Apr2018_TEST',multidata:'N') ; h.definekey ('COMBO'); h.definedone () ; end; set UrineAnalysis; (the new data created) if h.check()=0 then RETRACT='N'; else RETRACT='Y'; run;
... View more