@HaiKuo would you change this code for any one EMPID? you can find the data sets in your sasuser library. data match_on_movie_titles(drop=rc); if 0 then set sasuser.flightschedule sasuser.flightattendants; /* load variable properties into hash tables */ if _n_ = 1 then do; declare Hash MatchTitles (dataset:"sasuser.flightattendants"); /* declare the name MatchTitles for hash */ MatchTitles.DefineKey ("EmpID"); /* identify variable to use as key */ MatchTitles.DefineData ( "EmpID","JobCode","LastName","FirstName"); /* identify columns of data */ MatchTitles.DefineDone (); /* complete hash table definition */ end; set sasuser.flightschedule; if MatchTitles.find(key:EMPID) = 0 then output; /* lookup TITLE in MOVIES table using MatchTitles hash */ run;
... View more