You can use the %LOOKUP built-in function to search an array data structure using one of its subfields as a key.
For more information about searching an array data structure, see %LOOKUPxx (Look Up an Array Element).