Declaring Hash Objects

A Brief Overview

Hash objects are helpful when performing table lookups. A hash object is an in-memory table that contains key and data components. In the following example, the hash object contains two key columns, col_A and col_B, and three data columns, col_C, col_D, and col_E.
Figure 12.1 Hash Object with Key and Data Components
Hash Object With Key and Data Components
You can quickly and efficiently store, search, and retrieve data based on the key components. When the key component values are found, the data values are copied to the program data vector (PDV).
The use of hash objects is specific to the DATA step. A hash object is available only to ...

Get SAS Certified Professional Prep Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.