Stops a previous transaction
| Type: | ARM macro |
|
|
Syntax |
| %ARMSTOP<(options)> |
|
|
| Description |
%ARMSTOP signals the end of a transaction that was started using an %ARMSTRT macro call.
|
|
| Input |
The input is a start handle that is generated from a previous %ARMSTRT call. If the SHDLVAR= option is supplied, the specified value is used as the start handle. Otherwise, the value of the global macro variable _ARMSHDL is used.
|
|
| Output |
The _ARMRC variable, which contains the error status code, is the output.
data _null_; %armstop; /* status will default to zero*/ run;
data _null_; rc = 2; %armstop(status=rc); run;
data _null_; %arminit(appname=aname, appuser='sasxyz'); %armgtid(txnname='txn OE', txndet='Order Entry txn class'); %armstrt(shdlvar=sh1); run; data _null_; %armstop(shdlvar=sh1); run;