Macros for SAS Application Developers
https://github.com/sasjs/core
mf_abort.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief Abort, ungracefully
4 @details Will abort with a straightforward %abort if the condition is true.
5
6 <h4> Related Macros </h4>
7 @li mp_abort.sas
8
9 @version 9.2
10 @author Allan Bowe
11 @cond
12**/
13
14%macro mf_abort(mac=mf_abort.sas, msg=, iftrue=%str(1=1)
15)/des='ungraceful abort' /*STORE SOURCE*/;
16
17 %if not(%eval(%unquote(&iftrue))) %then %return;
18
19 %put NOTE: /// mf_abort macro executing //;
20 %if %length(&mac)>0 %then %put NOTE- called by &mac;
21 %put NOTE - &msg;
22
23 %abort;
24
25%mend mf_abort;
26
27/** @endcond */