7 dcl hash h (ordered:
"A") ;
8 h.defineKey (
"Home_SK") ;
9 h.defineData (
"Home_SK",
"Date",
"Away_SK") ;
12 set dw.Games (keep=Date Home_SK Away_SK Month DayOfWeek) end=lr ;
13 where Home_SK in (203,246,281) and Month=5 and DayOfWeek=7 ;
16 if h.find() ne 0 then h.add() ;
17 else if _Date > Date then
18 h.replace(key:Home_SK, data:Home_SK, data:_Date, data:_Away_SK) ;
20 h.output (dataset: "Last_games_hash") ;