Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_isblank.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mf_isblank macro
4
5 <h4> SAS Macros </h4>
6 @li mf_isblank.sas
7 @li mp_assert.sas
8
9**/
10
11%let test_blank=;
12%mp_assert(
13 iftrue=(%mf_isblank(&test_blank)=1),
14 desc=An empty macro variable is blank,
15 outds=work.test_results
16)
17
18%let test_value=abc;
19%mp_assert(
20 iftrue=(%mf_isblank(&test_value)=0),
21 desc=A populated macro variable is not blank,
22 outds=work.test_results
23)
24
25%let test_zero=0;
26%mp_assert(
27 iftrue=(%mf_isblank(&test_zero)=0),
28 desc=The digit zero is not blank,
29 outds=work.test_results
30)