|
Macros for SAS Application Developers
https://github.com/sasjs/core |
Asserts the number of observations in a dataset. 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_assertdsobs(sashelp.class) %* tests if any observations are present; %mp_assertdsobs(sashelp.class,test=ATLEAST 10) %* pass if >9 obs present; %mp_assertdsobs(sashelp.class,test=ATMOST 20) %* pass if <21 obs present;
| [in] | inds | input dataset to test for presence of observations | ||||||
| [in] | desc= | (Testing observations) The user provided test description | ||||||
| [in] | test= | (HASOBS) 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_assertdsobs.sas.