BookmarkSubscribeRSS Feed
MarcTC
Obsidian | Level 7
A user can get real time & cpu time info for a proc/data step in the SAS log. But if a program contain many proc/data steps, reading the log to obtain the execution time info become a horrible task. I wonder if there is any way to automatically record the execution time into a SAS dataset with the following layout:

step real_time cpu_time
DATA 1.32 0.88
PROCEDURE 0.44 0.10
PROCEDURE 2.18 0.45
.....
5 REPLIES 5
Ksharp
Super User
You can use proc printto to redirect log into a txt file, then write some code to get information needed.


Ksharp
Ksharp
Super User
You can use proc printto to redirect log into a txt file, then write some code to get information needed.


Ksharp
chang_y_chung_hotmail_com
Obsidian | Level 7
Instead of parsing the log file, I would recommend using the Application Response
Measurement (ARM) API. This sas-l posting with links may help.
The reference manual is here.
MarcTC
Obsidian | Level 7
Thanks Ksharp & Guru Chung for your input!
polingjw
Quartz | Level 8
This paper might be of interest to you.

http://www2.sas.com/proceedings/sugi30/219-30.pdf

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 2535 views
  • 0 likes
  • 4 in conversation