Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
mp_ds2inserts.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mp_ds2inserts.sas macro
4
5 <h4> SAS Macros </h4>
6 @li mp_ds2inserts.sas
7 @li mp_assert.sas
8
9**/
10
11/**
12 * test 1 - rebuild an existing dataset
13 * Cars is a great dataset - it contains leading spaces, and formatted numerics
14 */
15
16%mp_ds2inserts(sashelp.cars,outref=testref,schema=work,outds=test)
17
18data work.test;
19 set sashelp.cars;
20 stop;
21proc sql;
22%inc testref;
23
24proc compare base=sashelp.cars compare=work.test;
25quit;
26
27%mp_assert(
28 iftrue=(&sysinfo=1),
29 desc=sashelp.cars is identical except for ds label,
30 outds=work.test_results
31)