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(where=(EmpID='1113')); if MatchTitles.find(key:EmpID)=0 then output; /* lookup TITLE in MOVIES table using MatchTitles hash */ run;
... View more