Date: Mon, 27 Oct 2008 22:18:35 +1100
Reply-To: Scott Bass <sas_l_739.at.yahoo.dot.com.dot.au@PESTO.CC.UGA.EDU>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Scott Bass <sas_l_739.at.yahoo.dot.com.dot.au@PESTO.CC.UGA.EDU>
Subject: Re: Record start and end time for entire program in log
I'm doing this from memory...if it doesn't work exactly as typed, well, you
can always read the doc ;-)
"sas 9 bi user" <sas9bi@GMAIL.COM> wrote in message
> All -
> I have a long program that takes some time to run.
> How do I create a macro variable that prints in the log the time the
> started, ended, and outputs how long the process took in hours, mins,
> Say the below took 5 hours to run, please let me know how I could add some
> macro vars to calculate the total running time of all 3 processes below.
> /* 1st step*/
> data b;
> set a;
> s = 1;
> /* 2nd step*/
> proc sort data=b;
> by id;
> /* 3rd step*/
> proc print data=b;
> So I would like to know how long it took for step 1, 2 and 3 to run.
> How do I put macro variables to output that after step 3 is done and have
> show in the log?