ARM Macros |
Category: | ARM Macro |
Syntax |
%ARMINIT (APPNAME='application-name' <, option-1 <, ...option-n>>); |
is the application name. The value is a SAS character variable or quoted literal.
Restriction: | The application name has a 127-character limit. |
is the application ID. The value must be a numeric variable.
is the application user ID. The value is a SAS character variable or quoted literal.
Restriction: | The application user ID has a 127-character limit. |
is optional and denotes whether to generate an ARM_GETID function call after ARM_INIT. 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 %ARMINIT 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 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 transaction ID.
Restriction: | Use TXNIDVAR= only when you use GETID=YES. |
is a transaction detail. The value is a SAS character variable or quoted literal.
Restriction: | The transaction detail has a 127-character limit. Use TXNDET= only when you use GETID=YES. |
is the transaction name. The value is a SAS character variable or quoted literal value.
Requirement: | TXNNAME= is required only when you use GETID=YES. |
Details |
A %ARMINIT macro call names the application and the users of the application. Additionally, it initializes the ARM interface if a previous %ARMINIT macro has not been issued. Typically, it is executed when the application initializes.
Note: You must globally enable ARM macros by setting the _ARMEXEC macro variable to a value of 1. For more information, see Setting the _ARMEXEC Macro Variable.
Input |
None
Output |
The output is the _ARMAPID variable, which is the application ID that was returned from the ARM_INIT function call. If GETID=YES, then _ARMTXID is returned also. Any variables for APPIDVAR= and TXNIDVAR= are updated.
Examples |
%let _armexec=1; %let _armacro=1; data _null_; %arminit(appname='General Ledger'); run
%let _armexec=1; %let _armacro=1; data _null_; name='Order Entry Application'; %arminit(appname=application-name, appuser='sasxyz'); run;
%let _armexec=1; %let _armacro=1; data _null_; %arminit(appname='Warehouse App', getid=YES, txnname='Query 1', txndet='My long query'); run;
%let _armexec=1; %let _armacro=1; data _null_; %arminit(appname=application-name, appuser='sasxyz', appidvar=appl); put "application id is " appl; run;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.