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 ...

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.