19%mp_assertcols(sashelp.class,
22 desc=Checking ALL is satisfied when every column exists
25%mp_assertcols(sashelp.class,
28 desc=Checking ANY is satisfied when some of the columns exist
31%mp_assertcols(sashelp.class,
34 desc=Checking ANY is satisfied when every column exists
37%mp_assertcols(sashelp.class,
38 cols=notacol othercol,
40 desc=Checking NONE is satisfied when no column exists
44%mp_assertcols(sashelp.class,
45 cols=name age notacol,
47 desc=Checking ALL is unsatisfied when a column is missing,
48 outds=work.neg_results
51%mp_assertcols(sashelp.class,
52 cols=notacol othercol,
54 desc=Checking ANY is unsatisfied when no column exists,
55 outds=work.neg_results
58%mp_assertcols(sashelp.class,
61 desc=Checking NONE is unsatisfied when a column exists,
62 outds=work.neg_results
66 select count(*) into: pos_fail from work.test_results
67 where test_result ne 'PASS';
68 select count(*) into: neg_pass from work.neg_results
69 where test_result ne 'FAIL';
72%mp_assert(iftrue=(&pos_fail=0),
73 desc=Checking the satisfied conditions all recorded PASS)
75%mp_assert(iftrue=(&neg_pass=0),
76 desc=Checking the unsatisfied conditions all recorded FAIL)
78%mddl_assert(work.assert_schema)
79%mp_assertmodel(work.neg_results,base=work.assert_schema,
80 desc=Checking mp_assertcols output schema)