From: Dan Abner on
Hello,

I have an optional macro parameter CLASS that resolves to a named range:

GENDER--ETHNICITY

When I attempt to evaluate whether or not CLASS is null (left unspecified by
the user), I get an error. The error does not occur when CLASS resolves to a
single (or list of) variable name(s).

%IF &CLASS = %THEN %DO;

ERROR: A character operand was found in the %EVAL function or %IF condition
where a

numeric operand is required. The condition was:

The condition was: &CLASS =

ERROR: The macro MNORM will stop executing.

MLOGIC(MNORM): Ending execution.

Can anyone advise? How can I evaluate whether or not a macro parameter is
null when it occasionally could include a named range?



Thanks,



Dan