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
In-Reply-To: <0F548D585A011E4484D77C7B095EC53F0774C1@TAC-CMS001.prod.ds.russell.com>
Content-Type: text/plain; charset="us-ascii"
Dear SAS-L-ers,
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.
http://www2.sas.com/proceedings/sugi30/219-30.pdf
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"
E-mail: MichaelRaithel@westat.com
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
http://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=58172
Author: The Complete Guide to SAS Indexes
http://www.sas.com/apps/pubscat/bookdetails.jsp?catid=1&pc=60409
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
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
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++