<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Track Processing time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Track-Processing-time/m-p/810789#M319755</link>
    <description>&lt;P&gt;At the beginning of your code, do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let start_time = %sysfunc(datetime());&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;At the end, do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put Duration = %sysfunc(putn(%sysevalf(%sysfunc(datetime()) - &amp;amp;start_time),time8.));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 30 Apr 2022 10:51:29 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-04-30T10:51:29Z</dc:date>
    <item>
      <title>Track Processing time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Track-Processing-time/m-p/810788#M319754</link>
      <description>&lt;P&gt;hi i have a huge complex macro program with SAS needs to run for many hours. I want when it finishes to know the total run time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I mean the time total time from the time i click run till the time i get the final results for all process flows, programs etc..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want this information to be tracked in the log&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%macro dealnum;

/*** lots of macros/data steps ***/

%mends;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Apr 2022 10:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Track-Processing-time/m-p/810788#M319754</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-04-30T10:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: Track Processing time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Track-Processing-time/m-p/810789#M319755</link>
      <description>&lt;P&gt;At the beginning of your code, do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let start_time = %sysfunc(datetime());&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;At the end, do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put Duration = %sysfunc(putn(%sysevalf(%sysfunc(datetime()) - &amp;amp;start_time),time8.));
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Apr 2022 10:51:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Track-Processing-time/m-p/810789#M319755</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-30T10:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: Track Processing time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Track-Processing-time/m-p/810827#M319766</link>
      <description>&lt;P&gt;The easiest thing to do is to save the whole program as a file and run it as a separate job from the interactive (or pseudo interactive if you are using a front end processor like Enterprise Guide or SAS/Studio).&amp;nbsp; Then the whole log will reflect the run time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise just remember when you started and when you end subtract.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro dealnum;
%local startdt ;
%let startdt=%sysfunc(datetime());

/*** lots of macros/data steps ***/


%put NOTE: Run time %sysfunc(putn(%sysfunc(datetime())-&amp;amp;startdt,time16.3));
%mends;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Apr 2022 17:08:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Track-Processing-time/m-p/810827#M319766</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-04-30T17:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Track Processing time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Track-Processing-time/m-p/810835#M319771</link>
      <description>thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Sat, 30 Apr 2022 18:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Track-Processing-time/m-p/810835#M319771</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-04-30T18:43:44Z</dc:date>
    </item>
  </channel>
</rss>

