Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mf_isblank.sas
Go to the documentation of this file.
1 /**
2  @file mf_isblank.sas
3  @brief Checks whether a macro variable is empty (blank)
4  @details Simply performs:
5 
6  %sysevalf(%superq(param)=,boolean)
7 
8  Usage:
9 
10  %put mf_isblank(&var);
11 
12  inspiration: https://support.sas.com/resources/papers/proceedings09/022-2009.pdf
13 
14  @param param VALUE to be checked
15 
16  @return output returns 1 (if blank) else 0
17 
18  @version 9.2
19 **/
20 
21 %macro mf_isblank(param
22 )/*/STORE SOURCE*/;
23 
24  %sysevalf(%superq(param)=,boolean)
25 
26 %mend;