Specifies the start of a unique transaction and returns a handle that is passed to the %ARMUPDT and %ARMSTOP macros.
Category: | ARM Macro |
is the application ID to use on the ARM_GETID function call. The value must be a numeric variable or constant.
Restriction | Use APPID= only when you use GETID=YES. See the %ARMINIT macro for information about GETID=YES. |
Note | Use APPIDVAR= instead of APPID= in new applications. APPID= is obsolete. |
is the application ID. The value must be a numeric variable.
Restriction | Use APPIDVAR= only when you use GETID=YES. See the %ARMINIT macro for information about GETID=YES. |
defines the type of parent and child transactions.
Default | 0 |
Requirement | Use CORR= only when you use correlators. |
is optional and denotes whether to generate an ARM_GETID function call before ARM_START. If the value is YES, you can define the user metrics.
Default | NO |
Requirement | TXNNAME= is required when you use GETID=YES. |
is a variable that specifies the execution level. The value must be a numeric constant or variable.
enables the %ARMSTRT macro to be issued in open code. You set the value to YES if the macro can be issued in open code and NO if it can be issued only in a DATA step.
Default | NO |
is the value of the user-defined metric. The value must be a SAS character variable or a quoted literal. The value can be up to eight characters in length.
Requirement | The value of the user-defined metric must correspond to the user metric defined in the %ARMGTID macro. |
is a numeric variable that contains the value of the parent transaction start handle. Use PARNTVAR= only when you define a child transaction and only when the CORR= option has a value of 2 or 3.
is used only in SCL programs and specifies whether the macro is in an SCL environment. Set the value to YES if the macro is in an SCL environment and NO if it is not.
Default | NO |
is a numeric variable that contains the value of the start handle. SHDLVAR= is required when you use correlators to define parent and child transactions.
is a transaction detail. The value is a SAS character variable or quoted literal.
Restriction | The transaction detail has a 127-character limit. |
Requirement | Use TXNDET= only when you use GETID=YES. |
is the transaction ID to use in the ARM_START function call. The value must be a numeric variable or constant.
Note | Use TXNIDVAR= instead of TXNID= in new applications. TXNID= is obsolete. |
is a numeric variable that contains the value of the transaction ID when GETID=NO. It contains the value of the TXNID when GETID=YES.
is the transaction name. The value is a SAS character variable or quoted literal.
Restriction | The transaction name has a 127-character limit. |
Requirement | TXNNAME= is required only when you use GETID=YES. |
%armstrt(txnidvar=txnid,corr=1,shdlvar=HDL100); %armstrt(txnidvar=txnid,corr=0,shdlvar=HDL200<,...user metrics>); %armstrt(txnidvar=txnid,corr=2,shldvar=HDL110,parntvar=HDL100); %armstrt(txnidvar=txnid,corr=3,shldvar=HDL120,parntvar=HDL100);
%let _armexec=1; %let _armacro=1; data _null_; %arminit (appname='Forecast'); %armgtid (txnname='Txn 1A', txndet='Forecasting Txn Class'); %armstrt; run;
%let _armexec=1; %let _armacro=1; data _null_; %arminit(appname=application-name, appuser='sasxyz'); %armgtid(txnname='txn OE', txndet= 'Order Entry txn class' txnidvar=txnnum); data _null_; %armstrt(txnidvar=txnname); run;
%let _armexec=1; %let _armacro=1; data _null_; %arminit(appname='Forecast', appidvar=savapp); run; data _null_; %armstrt(getid=YES, txnname='Txn 1A', txndet='Forecasting Txn Class', appidvar=savapp); run;