mirror of
https://github.com/sasjs/core.git
synced 2025-12-10 22:14:35 +00:00
27 lines
513 B
SAS
27 lines
513 B
SAS
/**
|
|
@file
|
|
@brief Abort, ungracefully
|
|
@details Will abort with a straightforward %abort if the condition is true.
|
|
|
|
<h4> Related Macros </h4>
|
|
@li mp_abort.sas
|
|
|
|
@version 9.2
|
|
@author Allan Bowe
|
|
@cond
|
|
**/
|
|
|
|
%macro mf_abort(mac=mf_abort.sas, msg=, iftrue=%str(1=1)
|
|
)/*/STORE SOURCE*/;
|
|
|
|
%if not(%eval(%unquote(&iftrue))) %then %return;
|
|
|
|
%put NOTE: /// mf_abort macro executing //;
|
|
%if %length(&mac)>0 %then %put NOTE- called by &mac;
|
|
%put NOTE - &msg;
|
|
|
|
%abort;
|
|
|
|
%mend mf_abort;
|
|
|
|
/** @endcond */ |