16%
if %sysfunc(exist(sashelp.vcncolu,view))=1 %then %
do;
18 create table work.example(
19 TX_FROM
float format=datetime19.,
22 DD_SHORTDESC
char(256),
23 constraint pk primary key(tx_from, dd_type,dd_source),
24 constraint unq unique(tx_from, dd_type),
25 constraint nnn not
null(DD_SHORTDESC)
27 %mp_assertscope(SNAPSHOT)
28 %mp_getconstraints(lib=work,ds=example,outds=work.constraints)
29 %mp_assertscope(COMPARE)
32 iftrue=(%mf_nobs(work.constraints)=6),
33 desc=Output table work.constraints created with correct number of records,
34 outds=work.test_results
39 create table work.example(
40 TX_FROM
float format=datetime19.,
43 DD_SHORTDESC
char(256)
45 %mp_assertscope(SNAPSHOT)
46 %mp_getconstraints(lib=work,ds=example,outds=work.constraints)
47 %mp_assertscope(COMPARE)
50 iftrue=(%mf_nobs(work.constraints)=0),
51 desc=Empty table created as constraints not supported,
52 outds=work.test_results