<?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 capturing run time in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/capturing-run-time/m-p/31579#M7518</link>
    <description>Hi, is there a simple script/tool to capture how long a job runs? Example. If I kick off a job that is running a query, can I log the exact length of time from starting the job to when it completes? Thanks&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: btjans

Message was edited by: btjans</description>
    <pubDate>Wed, 16 Jul 2008 15:49:40 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-07-16T15:49:40Z</dc:date>
    <item>
      <title>capturing run time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/capturing-run-time/m-p/31579#M7518</link>
      <description>Hi, is there a simple script/tool to capture how long a job runs? Example. If I kick off a job that is running a query, can I log the exact length of time from starting the job to when it completes? Thanks&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: btjans

Message was edited by: btjans</description>
      <pubDate>Wed, 16 Jul 2008 15:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/capturing-run-time/m-p/31579#M7518</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-16T15:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: capturing run time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/capturing-run-time/m-p/31580#M7519</link>
      <description>Hi.&lt;BR /&gt;
The usual answer to that is to store beginning and ending time (in seconds) in macro-variables, then substract.[pre]&lt;BR /&gt;
%LET begin = %SYSFUNC(TIME()) ;&lt;BR /&gt;
/* the job */&lt;BR /&gt;
%LET end = %SYSFUNC(TIME()) ;&lt;BR /&gt;
%PUT it took %SYSFUNC(ROUND(&amp;amp;end - &amp;amp;begin, 0.01)) seconds to complete the job ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier</description>
      <pubDate>Wed, 16 Jul 2008 17:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/capturing-run-time/m-p/31580#M7519</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-07-16T17:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: capturing run time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/capturing-run-time/m-p/31581#M7520</link>
      <description>Thank You , Olivier. We will give it a shot..

Message was edited by: btjans</description>
      <pubDate>Wed, 16 Jul 2008 18:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/capturing-run-time/m-p/31581#M7520</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-16T18:05:15Z</dc:date>
    </item>
  </channel>
</rss>

