Macros for SAS Application Developers
https://github.com/sasjs/core
mp_reseterror.test.sas
Go to the documentation of this file.
1 /**
2  @file
3  @brief Testing mp_reseterror macro
4 
5  <h4> SAS Macros </h4>
6  @li mp_assert.sas
7  @li mp_reseterror.sas
8 
9 **/
10 
11 
12 /* cause an error */
13 
14 lock sashelp.class;
15 
16 /* recover ? */
17 %mp_reseterror()
18 
19 %mp_assert(
20  iftrue=(&syscc=0),
21  desc=Checking error condition was fixed,
22  outds=work.test_results
23 )