Date: Wed, 24 Aug 2011 20:04:54 +0000
Reply-To: Michael Raithel <michaelraithel@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Michael Raithel <michaelraithel@WESTAT.COM>
Subject: Re: step stats
Content-Type: text/plain; charset="us-ascii"
Mark posted the following:
> Hi All,
> A person could certainly use PRINTTO and redirect the log out
> and read it back in, to parse the datastep or proc stimer stats
> for "real time" or "cpu time" for each step back into the SAS
> program for use.
> However, are there any system variables or undocumented
> variables that make stimer values available within a program
> that could be used in subsequent steps?
Mark, unfortunately, the answer is: nope:-( The closest that one can come to a SAS-variable-oriented solution is to use the LOGPARSE SAS macros:
Programmatically Measure SAS Application Performance on Any Computer Platform with the New LOGPARSE SAS Macro.
One would think that, since SAS has this information available at the end of each DATA step/PROC step, SAS could save it into system variables--kind of like how SAS saves _ERROR_ and such like. You would think...
Mark, best of luck in all your SAS endeavors!
I hope that this suggestion proves helpful now, and in the future!
Of course, all of these opinions and insights are my own, and do not reflect those of my organization or my associates. All SAS code and/or methodologies specified in this posting are for illustrative purposes only and no warranty is stated or implied as to their accuracy or applicability. People deciding to use information in this posting do so at their own risk.
Michael A. Raithel
"The man who wrote the book on performance"
SAS Press Author Page: http://support.sas.com/publishing/authors/raithel.html
Author: Tuning SAS Applications in the MVS Environment
Author: Tuning SAS Applications in the OS/390 and z/OS Environments, Second Edition
Author: The Complete Guide to SAS Indexes
If an elderly but distinguished scientist says that something
is possible, he is almost certainly right; but if he says that
it is impossible, he is very probably wrong. - Arthur C. Clarke