mpe_dsmeta.test.sas
Go to the documentation of this file.
1 /**
2  @file
3  @brief Testing mpe_dsmeta macro
4  @details Checking functionality of mpe_dsmeta.sas macro
5 
6  <h4> SAS Macros </h4>
7  @li mp_assertdsobs.sas
8  @li mp_assertscope.sas
9  @li mpe_dsmeta.sas
10 
11  @author 4GL Apps Ltd
12  @copyright 4GL Apps Ltd. This code may only be used within Data Controller
13  and may not be re-distributed or re-sold without the express permission of
14  4GL Apps Ltd.
15 
16 **/
17 
18 /* run the macro*/
19 %mp_assertscope(SNAPSHOT)
20 %mpe_dsmeta(&mpelib..mpe_security, outds=test1)
21 %mp_assertscope(COMPARE,
22  desc=Checking macro variables against previous snapshot
23 )
24 
25 data work.test1;
26  set work.test1;
27  where ods_table in ('MPE_DATADICTIONARY','MPE_TABLES');
28  putlog (_all_)(=);
29 run;
30 
31 %mp_assertdsobs(work.test1,
32  desc=Test 1 - 27 records returned,
33  test=EQUALS 27,
34  outds=work.test_results
35 )
36 
37