Skip to Main Content
SAS Certified Professional Prep Guide
book

SAS Certified Professional Prep Guide

by SAS Institute
October 2019
Intermediate to advanced content levelIntermediate to advanced
430 pages
19h 4m
English
SAS Institute
Content preview from SAS Certified Professional Prep Guide

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'); ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

SAS Certified Specialist Prep Guide

SAS Certified Specialist Prep Guide

SAS Institute
SAS in Practice

SAS in Practice

Ekta Saraogi

Publisher Resources

ISBN: 9781642954692