Previous Page | Next Page

Using SAS 9.2 ARM Interface with Existing ARM Applications

Adding ARM to an Existing SAS Application

You have a SAS application, and you want to track the application's performance. Using the SAS logging facility and the ARM interface, you can get the performance information you want with little development time. There are two options available:

Adding performance macros results in reduced performance overhead. Use the following steps to add ARM to an application using a configuration file:

  1. Create a SAS logging facility -logconfigloc configuration file. For an example of a SAS logging facility configuration file, see XML Configuration File. For more information about the SAS logging facility, see SAS Logging: Configuration and Programming Reference.

  2. Specify ARMAGENT=LOG4SAS in a configuration file or within SAS language code.

  3. Enable the ARMSUBSYS= system option (ARMSUBSYS= can be enabled in a SAS option).

  4. Add %PERFINIT and %PERFEND macros to the beginning and end of your SAS language functions.

  5. Add %PERFSTRT and %PERFSTOP macros around key events, such as procedures or DATA step functions.

  6. Specify the SAS macro variable _armexec=1 in a SAS configuration file to enable or disable ARM.

The SAS logging facility contains transaction metrics for key events. The output destination, output format, and quantity of the information can be defined in a file appender.

Previous Page | Next Page | Top of Page