Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mp_ds2ddl.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mp_ds2ddl.sas macro
4
5 <h4> SAS Macros </h4>
6 @li mp_ds2ddl.sas
7 @li mp_assert.sas
8 @li mp_assertscope.sas
9
10**/
11
12data test(index=(pk=(x y)/unique /nomiss));
13 x=1;
14 y='blah';
15 label x='blah';
16run;
17proc sql; describe table &syslast;
18%mp_assertscope(SNAPSHOT)
19%mp_ds2ddl(work,test,flavour=tsql,showlog=YES)
20%mp_assertscope(COMPARE)
21
22%mp_assert(
23 iftrue=(&syscc=0),
24 desc=mp_ds2ddl runs without errors,
25 outds=work.test_results
26)
27
28%mp_assertscope(SNAPSHOT)
29%mp_ds2ddl(work,test,flavour=sas,showlog=YES)
30%mp_assertscope(COMPARE)
31
32%mp_assert(
33 iftrue=(&syscc=0),
34 desc=mp_ds2ddl flavour=SAS (default) runs without errors,
35 outds=work.test_results
36)
37
38%mp_assertscope(SNAPSHOT)
39%mp_ds2ddl(work,test,flavour=pgsql,showlog=YES)
40%mp_assertscope(COMPARE)
41
42%mp_assert(
43 iftrue=(&syscc=0),
44 desc=mp_ds2ddl flavour=PGSQL runs without errors,
45 outds=work.test_results
46)