+1  A: 

What disadvantages does it have? If your arrays are sorted you can use SEARCH ALL instead (it is using the binary search instead of a serial one). Either way, using the search statement is probably more consise than writing several nested perform loops.

Also take a look here.

Bartosz Radaczyński