Yes, the line %if %index(Parameter, &Varname ) NE 0 %then TYPE = 2; was working correctly, your expectations were wrong You were using macro statements where you should have used data step statements. A common problem when trying to learn and apply macro.
... View more