As featured in: Data Management Solutions Using SAS Hash Table Operations: A Business Intelligence Case Study , and built from this github repository.
Pitches.sas
1 /* "Pitches.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.PITCHES
8  (
9  Game_SK char(16) format=$HEX32. label = "Game Surrogate Key",
10  Date num format=YYMMDD10. label = "Game Date",
11  Team_SK num label = "Team Surrogate Key",
12  Pitcher_ID num label = "Pitcher_ID",
13  Pitcher_First_Name char(12) label = "Pitcher_First_Name",
14  Pitcher_Last_Name char(12) label = "Pitcher_Last_Name",
15  Pitcher_Bats char(1) informat=$1. label = "Bats L, R or Switch",
16  Pitcher_Throws char(1) informat=$1. label = "Throws L or R",
17  Pitcher_Type char(3) label "Starter or Reliever",
18  Inning num label = "Inning",
19  Top_Bot char(1) label = "Which Half Inning",
20  Result char(16) label = "Result of the At Bat",
21  AB_Number num label = "At Bat Number in Game",
22  Outs num label = "Number of Outs",
23  Balls num label = "Number of Balls",
24  Strikes num label = "Number of Strikes",
25  Pitch_Number num label = "Pitch Number in the AB",
26  Is_A_Ball num label = "Pitch is a Ball",
27  Is_A_Strike num label ="Pitch is Strike",
28  onBase num label ="Number of Men on Base"
29  );
30 quit;