CORE
mf_verifymacvars.sas File Reference

Checks if a set of macro variables exist / contain values. More...

Go to the source code of this file.

Detailed Description

Checks if a set of macro variables exist / contain values.

Writes ERROR to log if abortType is SOFT, else will call mf_abort. Usage:

%let var1=x;
%let var2=y;
%put %mf_verifymacvars(var1 var2);

Returns:

1

Parameters
verifyvarsspace separated list of macro variable names
makeupcase=set to YES to convert all variable VALUES to uppercase.
mAbort=Abort Type. Default is SOFT (writes error to log). Set to any other value to call mf_abort (which can be configured to abort in various fashions according to context).
Warning
will not be able to verify the following variables due to naming clash!
  • verifyVars
  • verifyVar
  • verifyIterator
  • makeUpcase
Version
9.2
Author
Allan Bowe

Definition in file mf_verifymacvars.sas.