Writing a Hash Object to a Table

The ADD Method

The ADD method adds data in the PDV columns to the corresponding key and data components within a hash object. This method returns a zero if adding is successful and a nonzero if adding is not successful.
Syntax, ADD method:
object-name.ADD( )
object-name
specifies the name of the component object.
Tip:A zero value indicates success, and a nonzero value indicates failure.

Example: Adding Key and Data Values

The ADD method adds the key and data values to the hash object.
ContName.add(key:91, data:'North America'); ContName.add(key:93, data:'Europe'); ContName.add(key:94, data:'Africa'); ContName.add(key:95, data:'Asia'); ContName.add(key:96, data:'Australia/Pacific'); ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.