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

Finding Key Values in a Hash Object

The FIND Method

The FIND method searches the hash object for the current key values. The method returns a code of 0 if the key value is found, or matched. If the value is not found, then a nonzero value is returned. If the value is found, the FIND method copies the data component values to the PDV.
Syntax, FIND method:
object-name.FIND(<KEY: value-1, ... KEY: value-n>)
object-name
specifies the name of the component object.
value
specifies the key value whose type must match the corresponding key variable that is specified in a DEFINEKEY method call.
The number of “KEY:value” pairs depends on the number of key variables that you define by using the DEFINEKEY method.

Retrieving Matching ...

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