Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mp_searchdata.test.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Testing mp_searchdata.sas
4
5 <h4> SAS Macros </h4>
6 @li mp_searchdata.sas
7 @li mp_assert.sas
8
9
10**/
11
12/** Test 1 - generic useage */
13
14%mp_searchdata(lib=sashelp, ds=class, string=a)
15%mp_assert(
16 iftrue=(&syscc=0),
17 desc=No errors in regular usage,
18 outds=work.test_results
19)
20
21/** Test 2 - with obs issue */
22
23%mp_searchdata(lib=sashelp, ds=class, string=l,outobs=5)
24
25%mp_assert(
26 iftrue=("&SYSWARNINGTEXT" = ""),
27 desc=Ensuring WARN status is clean,
28 outds=work.test_results
29)