abort gracefully according to context More...
Configures an abort mechanism according to site specific policies or the particulars of an environment. For instance, can stream custom results back to the client in an STP Web App context, or completely stop in the case of a batch run.
Using SAS Abort Cancel mechanisms can cause hung sessions in some Stored Process environments. This macro takes a unique approach - we set the SAS syscc to 0, run ‘stpsrvset('program error’, 0)` (if SAS 9) and then - we open a macro but don't close it! This provides a graceful abort for SAS web services in all web enabled environments.
|mac=||to contain the name of the calling macro|
|msg=||message to be returned|
|iftrue=||supply a condition under which the macro should be executed.|
Definition in file mp_abort.sas.