Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mddl_getgroups.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Test the shared group model DDL
4
5 <h4> SAS Macros </h4>
6 @li mddl_getgroups.sas
7 @li mp_assert.sas
8 @li mp_assertmodel.sas
9 @li mp_assertscope.sas
10 @li mf_nobs.sas
11
12**/
13
14/* This model is deliberately independent of the DDL being tested. */
15data work.group_expected;
16 length groupuri groupname groupdesc $256;
17 stop;
18run;
19
20%mp_assertscope(SNAPSHOT)
21%mddl_getgroups(work.group_schema)
22%mp_assertscope(COMPARE,desc=Group DDL does not leak macro variables)
23%mp_assertmodel(work.group_schema,base=work.group_expected,
24 desc=Group DDL matches the fixed column contract)
25%mp_assert(iftrue=(%mf_nobs(work.group_schema)=0),
26 desc=Group DDL creates an empty table)