Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_verifymacvars.sas File Reference

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

Go to the source code of this file.

Detailed Description

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

SAS Macros

Parameters
[in]verifyvarsSpace separated list of macro variable names
[in]makeupcase=(NO) Set to YES to convert all variable VALUES to uppercase.
[in]mAbort=(SOFT) Abort Type. When SOFT, simply writes an err message to the 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.