15 do checkval=
'Jane',
'James',
'Jill';
19%mp_assertcolvals(sashelp.class.name,
20 checkvals=work.checkds.checkval,
21 desc=At least one value has a match,
30%mp_assertcolvals(sashelp.class.sex,
31 checkvals=work.check.val,
32 desc=All values have a match,
37%mp_assertcolvals(sashelp.class.sex,
38 checkvals=work.check.val, test=NOVAL,
39 desc=Expected NOVAL failure, outds=work.colval_results)
40%mp_assertcolvals(sashelp.class.sex,
41 checkvals=work.check.val, test=ALLVALS,
42 desc=Expected ALLVALS pass, outds=work.colval_results)
44 select count(*) into: ncolvalfail trimmed from work.colval_results
45 where test_result='FAIL' and test_description='Expected NOVAL failure'
46 and test_comments contains 'has 0/'
47 and test_comments contains 'not in work.check.val';
48 select count(*) into: ncolvalpass trimmed from work.colval_results
49 where test_result='PASS' and test_description='Expected ALLVALS pass';
50 select count(*) into: ncolvaltotal trimmed from work.colval_results;
52%mp_assert(iftrue=(&ncolvalfail=1 and &ncolvalpass=1 and &ncolvaltotal=2),
53 desc=Checking colvals FAIL details and appended PASS)
55%mddl_assert(work.assert_schema)
56%mp_assertmodel(work.colval_results,base=work.assert_schema,
57 desc=Checking mp_assertcolvals output schema)