Right. Either need to either quote it or macro quote it. But interesting the presence of the non digit causes SAS to give an error that shows what is really happening. ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was: X2013-11X=X2011-10X
... View more