Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mp_dsmeta.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mp_dsmeta.sas macro
4
5 <h4> SAS Macros </h4>
6 @li mp_assert.sas
7 @li mp_assertscope.sas
8 @li mp_dsmeta.sas
9
10**/
11
12data work.Example;
13 set sashelp.vmacro;
14run;
15
16%mp_assertscope(SNAPSHOT)
17%mp_dsmeta(work.example,outds=work.test)
18%mp_assertscope(COMPARE)
19
20proc sql noprint;
21select count(*) into: nobs from work.test;
22select count(distinct ods_table) into: tnobs from work.test;
23
24%mp_assert(
25 iftrue=(&tnobs=2),
26 desc=Check that both ATTRIBUTES and ENGINEHOST are provided
27)
28%mp_assert(
29 iftrue=(&nobs>10),
30 desc=Check that sufficient details are provided
31)
32