Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mf_abort.sas File Reference

Abort, ungracefully. More...

Go to the source code of this file.

Detailed Description

Will abort with a straightforward abort if the condition is true.

Not advised in SASjs web services: abort gives the program no opportunity to capture the failure and return it to the client, so the caller sees a failed request with no message. Use mp_abort.sas in that context - it writes the standard SASjs abort JSON (message, calling macro, SYSCC and a log extract) to _webout before ending the step.

Parameters
[in]mac=(mf_abort.sas) Name of calling macro (is printed to the log)
[in]msg=( ) Additional string to print to the log
[in]iftrue=(str(1=1)) Conditional logic under which to perform the abort

Related Macros

Version
9.2
Author
Allan Bowe

Definition in file mf_abort.sas.