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

Reports a failure in the log and returns 0. It never aborts: an mf_ macro returns a value, and ending the step here would leave the caller unable to see that value or to report the failure itself. Usage:

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

Returns:

1

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) Retained for backwards compatibility. The macro no longer aborts on any value - a failure is written to the log and 0 is returned, so the caller decides what to do with it.
Note
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.