<?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 Calculating the run time of running multiple programs at once in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-the-run-time-of-running-multiple-programs-at-once/m-p/379610#M91377</link>
    <description>&lt;P&gt;I want to know the run time of running several programs in my process flow. I was wandering if there was a macro or other way to determine how long it takes to run all of the selected programs and have it displayed in the last log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 23:43:56 GMT</pubDate>
    <dc:creator>BenBrady</dc:creator>
    <dc:date>2017-07-26T23:43:56Z</dc:date>
    <item>
      <title>Calculating the run time of running multiple programs at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-the-run-time-of-running-multiple-programs-at-once/m-p/379610#M91377</link>
      <description>&lt;P&gt;I want to know the run time of running several programs in my process flow. I was wandering if there was a macro or other way to determine how long it takes to run all of the selected programs and have it displayed in the last log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 23:43:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-the-run-time-of-running-multiple-programs-at-once/m-p/379610#M91377</guid>
      <dc:creator>BenBrady</dc:creator>
      <dc:date>2017-07-26T23:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the run time of running multiple programs at once</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-the-run-time-of-running-multiple-programs-at-once/m-p/379615#M91378</link>
      <description>&lt;P&gt;Assuming you want the elaps time of running (not CPU time),&lt;/P&gt;
&lt;P&gt;Add as first step before your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    tm = datetime();
   call symput('run_start', put(tm, z15.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and add as last step after your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
    start = &amp;amp;run_start;
    end = datetime();
    elaps = end - start;
    put '&amp;gt;&amp;gt;&amp;gt; Total run time = ' elaps= time9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You'll find the elaps time at the end of your log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 00:24:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-the-run-time-of-running-multiple-programs-at-once/m-p/379615#M91378</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-07-27T00:24:34Z</dc:date>
    </item>
  </channel>
</rss>

