On Thu, 19 Oct 2006 08:23:45 -0700, phillyj <jessica.donato@GMAIL.COM> wrote:
>Im trying to use a wild card to select all observations with the
>specified letters in them. For example my code is:
>if DrugProcSite in ("Mast%", "modified%", "mrm%", "mat%", "quad%") then
> v009=1; else v009=2;
>This code is not working though. Any suggestions for what i did wrong?
> I also tried to remove the & and keep only quotes.
>Thanks for your help!
The '%' and '_' wildcards are used in conjuction with the LIKE operator,
which is not a valid operator in IF(-THEN-ELSE) statements.