<?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 Capture cpu time and elapsed time in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Capture-cpu-time-and-elapsed-time/m-p/23545#M5211</link>
    <description>I need to calculate the ratio between the cpu time and the elapsed time for different job&lt;BR /&gt;
&lt;BR /&gt;
I search a lot but I don't found how I can store this variable in a database&lt;BR /&gt;
&lt;BR /&gt;
I want a database like that&lt;BR /&gt;
&lt;BR /&gt;
User&lt;BR /&gt;
Job&lt;BR /&gt;
Production date &lt;BR /&gt;
Production hour    &lt;BR /&gt;
cpu time      &lt;BR /&gt;
elapsed time &lt;BR /&gt;
&lt;BR /&gt;
Thank you for your answer</description>
    <pubDate>Thu, 05 Jun 2008 20:23:55 GMT</pubDate>
    <dc:creator>JOBOJO</dc:creator>
    <dc:date>2008-06-05T20:23:55Z</dc:date>
    <item>
      <title>Capture cpu time and elapsed time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-cpu-time-and-elapsed-time/m-p/23545#M5211</link>
      <description>I need to calculate the ratio between the cpu time and the elapsed time for different job&lt;BR /&gt;
&lt;BR /&gt;
I search a lot but I don't found how I can store this variable in a database&lt;BR /&gt;
&lt;BR /&gt;
I want a database like that&lt;BR /&gt;
&lt;BR /&gt;
User&lt;BR /&gt;
Job&lt;BR /&gt;
Production date &lt;BR /&gt;
Production hour    &lt;BR /&gt;
cpu time      &lt;BR /&gt;
elapsed time &lt;BR /&gt;
&lt;BR /&gt;
Thank you for your answer</description>
      <pubDate>Thu, 05 Jun 2008 20:23:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-cpu-time-and-elapsed-time/m-p/23545#M5211</guid>
      <dc:creator>JOBOJO</dc:creator>
      <dc:date>2008-06-05T20:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Capture cpu time and elapsed time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-cpu-time-and-elapsed-time/m-p/23546#M5212</link>
      <description>see the documentation on ARM&lt;BR /&gt;
   (application response measurement)</description>
      <pubDate>Mon, 09 Jun 2008 12:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-cpu-time-and-elapsed-time/m-p/23546#M5212</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-09T12:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Capture cpu time and elapsed time</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Capture-cpu-time-and-elapsed-time/m-p/23547#M5213</link>
      <description>I think my brute force approach would be to modify the programs use %let macro variables to capture the userID and production date and time.  jobName would have to be hardcoded.  Use proc printto to redirect the log to an external file.  When the job finishes turn off proc printto and have it run a data step (but I'd put it in a macro) that reads in the external log file with each line as a single long character variable.  Be sure to use the end= data set option so you know when you've reached the last record.  Either substring or index each line looking for the phrases 'real time' and 'cpu time' and parse them when found to get the values.  Sum those values and carry the values forward using a Retain statement.  When you've reached the last line in the log file then calculate the ratio and write the macro variable values, the totals, and the ratio as a record to your database.</description>
      <pubDate>Mon, 30 Jun 2008 21:37:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Capture-cpu-time-and-elapsed-time/m-p/23547#M5213</guid>
      <dc:creator>bentleyj</dc:creator>
      <dc:date>2008-06-30T21:37:32Z</dc:date>
    </item>
  </channel>
</rss>

