7 dcl hash h (ordered:
"A") ; *Output in Home_SK order;
8 h.defineKey (
"Home_SK") ;
9 h.defineData (
"Home_SK",
"Away_SK",
"Date",
"Game_SK") ;
12 set dw.games (keep = Game_SK Date Home_SK Away_SK) end = lr ;
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:_Away_SK, data:_Date
22 h.output (dataset:
"Last_games_hash") ;