As featured in: Data Management Solutions Using SAS Hash Table Operations: A Business Intelligence Case Study , and built from this github repository.
Chapter 2 Create Operation Template.sas
1 /* "Chapter 2 Create Operation Template.sas" from the SAS Press book
2  Data Management Solutions Using SAS Hash Table Operations:
3  A Business Intelligence Case Study
4 */
5 
6 data _null_ ;
7  declare hash H ;
8  H = _new_ hash() ;
9  H.defineKey ("K") ;
10  H.defineData ("D") ;
11  H.defineDone () ;
12  stop ;
13  K = . ;
14  D = "" ;
15 run ;