Defining Hash Objects

Hash Object Methods

Hash object methods are operations that are performed on a hash object using dot notation. With dot notation, specify the name of the hash object to the left of the dot and specify the method to the right of the dot. All methods include a set of parentheses. Within the parentheses, arguments can be specified.
Table 12.2 Hash Object Methods
Method
Description
Syntax
ADD
Adds the specified data that is associated with the given key to the hash object.
object-name.ADD( )
DEFINEDATA
Defines data to be stored in the hash object.
object-name.DEFINEDATA( )
DEFINEDONE
Specifies that all key and data definitions are complete.
object-name.DEFINEDONE( )
DEFINEKEY ...

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.