|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Asserts the existence (or not) of columns. More...
Go to the source code of this file.
Useful in the context of writing sasjs tests. The results of the test are appended to the &outds. table.
Example usage:
%mp_assertcols(sashelp.class, cols=name age sex, test=ALL, desc=check all columns exist ) %mp_assertcols(sashelp.class, cols=a b c, test=NONE ) %mp_assertcols(sashelp.class, cols=age depth, test=ANY )
| [in] | inds | The input library.dataset to test for values | ||||||
| [in] | cols= | (0) The list of columns to check for | ||||||
| [in] | desc= | (0) The user provided test description | ||||||
| [in] | test= | (ALL) The test to apply. Valid values are:
| ||||||
| [out] | outds= | (work.test_results) The output dataset to contain the results. If it does not exist, it will be created, with the following format:
|
Definition in file mp_assertcols.sas.