Using the IFC and IFN Functions
In SAS 9, you can use the IFC and IFN functions to evaluate an expression and return a value for the condition being true and another for it being false. IFC returns a character value and IFN returns a numeric value. Note that when using the IFC function, you need to specify the length of the character variable, otherwise a default length of 200 is used.