Loading...
Searching...
No Matches
mpe_xlmapvalidate.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mpe_xlmapvalidate macro
4
5 <h4> SAS Macros </h4>
6 @li mpe_xlmapvalidate.sas
7 @li mp_assert.sas
8 @li mp_assertscope.sas
9
10 <h4> SAS Includes </h4>
11 @li mpe_xlmap_data.ddl ul
12
13 @author 4GL Apps Ltd
14 @copyright 4GL Apps Ltd. This code may only be used within Data Controller
15 and may not be re-distributed or re-sold without the express permission of
16 4GL Apps Ltd.
17
18**/
19
20/* create the table */
21%let curlib=work;
22proc sql;
23%inc ul;
24
25data work.test1;
26 if 0 then set work.MPE_XLMAP_DATA;
27 LOAD_REF='0';
28 XLMAP_ID='Sample';
29 XLMAP_RANGE_ID='Range 1';
30 ROW_NO=1;
31 COL_NO=2;
32 VALUE_TXT='something';
33run;
34
35%mp_assertscope(SNAPSHOT)
36%mpe_xlmapvalidate(DCTEST1,work.test1,&dclib,NOT.MAP)
37%mp_assertscope(COMPARE,
38 desc=Checking macro variables against previous snapshot
39)
40
41data _null_;
42 set work.test1;
43 call symputx('test1',load_ref);
44run;
45%mp_assert(
46 iftrue=(&test1=0),
47 desc=Checking load ref was not applied
48)
49
50%mpe_xlmapvalidate(DCTEST2,work.test1,&dclib,&dclib..MPE_XLMAP_DATA)
51
52data _null_;
53 set work.test1;
54 call symputx('test2',load_ref);
55run;
56%mp_assert(
57 iftrue=(&test2=DCTEST2),
58 desc=Checking load ref was applied for default case
59)