Greetings,
I'm creating a variable that categorizes email domains based on the substring contents of a string variable (Email_Domain) using an IF function. I'm using a wildcard (not sure if I'm using correctly), however, I cant seem to get it to work and would love some guidance. Here's part of the code I am currently working on:
IF Email_Domain = '%build%' |
Email_Domain = '%constr%'
GroupedEmailDomains=1.
Email_Domain = '%arch%'
GroupedEmailDomains=2.
EXECUTE.
Here's an example of a fake email that I'd like to have classified as 1 in the new field using the syntax code: Prattconstructionexperts.com
Here's an example of a fake email that I'd like to have classified as 2 in the new field using the syntax code: kevinarchitectectsAZ.com
Thank you for your help!
------------------------------
Frederick Pratt
------------------------------