As featured in:
Data Management Solutions Using SAS Hash Table Operations: A Business Intelligence Case Study
, and built from this
github repository
.
Chapter 11 Frontal Attack Unduplication.sas
1
/* "Chapter 11 Frontal Attack Unduplication.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 First_scores ;
7
if
_n_ = 1 then do ;
8
dcl hash h () ;
9
h.defineKey (
"Game_SK"
,
"Runner_ID"
) ;
10
h.defineData (
"_N_"
) ;
11
h.defineDone () ;
12
dcl hiter ih (
"h"
) ;
13
end ;
14
do
until (LR) ;
15
set
dw.Runs end = LR ;
16
if
h.check() = 0 then continue ;
17
output ;
18
h.add() ;
19
end ;
20
run ;
Generated by
For more information visit the
Bizarro Ball library
.