Sample 34301: Parse SAS Logs to Extract Performance and Timing Information
Overview
Getting performance information from a SAS log can be a time-consuming manual process.
You would like to easily get the various types of run information available into SAS data sets for further analysis and comparison.
- Be able to read SAS logs from various SAS releases
- Be able to obtain resource utilization information in SAS data sets
- Compare performance information from various SAS runs, across releases or across operating environments
Download the macro code. Place the macro code in either an AUTOCALL library or use %INCLUDE to directly include in your SAS session.
Get complete information on how to use %LOGPARSE and the supplemental macros from the README.TXT in the download.
The README file contains:
- Descriptions of the macro parameters and their use
- How to use the members of the zip file
- Example code that shows how to parse SAS logs
- How to store the results of the LOGPARSE macro
Highlights of the paper include:
- How to instrument your SAS code with %PASSINFO macro to obtain detailed information on the environment that your SAS program is running in.
- How to get the name of the z/OS machine your program is running on.
Additional Information
While this paper describes an earlier version of %LOGPARSE, the background information is valid.
Paper 219-30 Programmatically Measure SASĀ® Application Performance On Any Computer Platform With the New LOGPARSE SAS Macro by Michael A. Raithel, Westat, Rockville MD
Download the ZIP file, extract the contents to a SAS AUTOCALL location on your system or SAS program files.
LOGPARSE ZIP file
Here is a method to extract performance data from SAS logs. The SAS logs read must run without errors and have the FULLSTIMER option turned on. You can read logs from any release from SAS 6 and later and from any platform that SAS runs on.
| Type: | Sample |
| Topic: | Common Programming Tasks ==> Improving Performance Common Programming Tasks Query and Reporting SAS Reference ==> Macro
|
| Date Modified: | 2009-10-06 09:53:10 |
| Date Created: | 2008-12-22 18:40:59 |
Operating System and Release Information
| SAS System | Base SAS | Microsoft Windows XP Professional | 8.2 TS2M0 | |
| Microsoft Windows Server 2003 Standard Edition | 8.2 TS2M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 8.2 TS2M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 8.2 TS2M0 | |
| Microsoft Windows NT Workstation | 8.2 TS2M0 | |
| Microsoft Windows 2000 Professional | 8.2 TS2M0 | |
| Microsoft Windows 2000 Server | 8.2 TS2M0 | |
| Microsoft Windows 2000 Datacenter Server | 8.2 TS2M0 | |
| Microsoft Windows 2000 Advanced Server | 8.2 TS2M0 | |
| Microsoft Windows 95/98 | 8.2 TS2M0 | |
| OS/2 | 8.2 TS2M0 | |
| OpenVMS VAX | 8.2 TS2M0 | |
| z/OS | 8.2 TS2M0 | |
| Windows Millennium Edition (Me) | 8.2 TS2M0 | |
| 64-bit Enabled AIX | 8.2 TS2M0 | |
| 64-bit Enabled HP-UX | 8.2 TS2M0 | |
| 64-bit Enabled Solaris | 8.2 TS2M0 | |
| ABI+ for Intel Architecture | 8.2 TS2M0 | |
| AIX | 8.2 TS2M0 | |
| HP-UX | 8.2 TS2M0 | |
| IRIX | 8.2 TS2M0 | |
| Linux | 8.2 TS2M0 | |
| OpenVMS Alpha | 8.2 TS2M0 | |
| Solaris | 8.2 TS2M0 | |
| Tru64 UNIX | 8.2 TS2M0 | |