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

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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