Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mp_assertcolvals.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mp_assertcolvals macro
4
5 <h4> SAS Macros </h4>
6 @li mp_assertcolvals.sas
7
8**/
9
10
11data work.checkds;
12 do checkval='Jane','James','Jill';
13 output;
14 end;
15run;
16%mp_assertcolvals(sashelp.class.name,
17 checkvals=work.checkds.checkval,
18 desc=At least one value has a match,
19 test=ANYVAL
20)
21
22data work.check;
23 do val='M','F';
24 output;
25 end;
26run;
27%mp_assertcolvals(sashelp.class.sex,
28 checkvals=work.check.val,
29 desc=All values have a match,
30 test=ALLVALS
31)
32