Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mddl_assert.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief DDL for assertion results
4 @details Creates an empty table with the column names, types and lengths
5 used for assertion results. The table must not already exist.
6 The mp_assert macros use this DDL for their result rows.
7
8 Example:
9
10 %mddl_assert(work.assertions)
11
12 @param [in] libds Required table to create
13
14 <h4> Related Macros </h4>
15 @li mp_assert.sas
16 @li mp_assertmodel.sas
17
18 @version 9.4
19 @author sasjs@4gl.io
20**/
21
22%macro mddl_assert(libds);
23 %if %sysevalf(%superq(libds)=,boolean) %then %do;
24 %put %str(ERR)OR: MDDL_ASSERT requires a table name.;
25 %let syscc=%sysfunc(max(&syscc,1012));
26 %return;
27 %end;
28
29 proc sql;
30 create table &libds( test_description char(256), test_result char(5),
31 test_comments char(256) );
32 quit;
33%mend mddl_assert;