As featured in: Data Management Solutions Using SAS Hash Table Operations: A Business Intelligence Case Study , and built from this github repository.
Games.sas
1 /* "Games.sas" from the SAS Press book
2  Data Management Solutions Using SAS Hash Table Operations:
3  A Business Intelligence Case Study
4 */
5 
6 proc sql;
7  create table TEMPLATE.GAMES
8  (
9  Game_SK char(16) format=$HEX32. label = "Game Surrogate Key"
10  ,Date num format=YYMMDD10. label = "Game Date"
11  ,Time num format=TIMEAMPM8. label = "Game Time"
12  ,Year num label = "Year"
13  ,Month num label = "Month"
14  ,DayOfWeek num Label = "Day of the Week"
15  ,League_SK num label = "League"
16  ,Home_SK num label = "Home Team Surrogate Key"
17  ,Away_SK num label = "Away Team Surrogate Key"
18  );
19 quit;
20