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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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
  • 1397 views
  • 0 likes
  • 4 in conversation