I have a long list of patterns (called "List A") as partially shown at the attached image. "*" refers to a single character/string value.
On the other hand, I have a long list of character/string data (e.g. YIB2Z, YGEHN....), called "List B".
May I know how I can identify if the data in List B matches any of the patterns listed in List A? I am using SPSS modeler or SAS Enterprise Guide to process the data.
It would be highly appreciated if any advice could be given. Thanks in advance.

A possible solution using SAS would be to store the patterns in a temporary array then check each string against every element of this array.