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

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
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
  • 1931 views
  • 0 likes
  • 4 in conversation