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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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