<?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 Time SAS program execution in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Time-SAS-program-execution/m-p/354206#M82827</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing to program to retrieve data from databases (MS SQL, MS Access, etc) using Proc SQL in Base SAS. Since I&amp;nbsp;do not know if the SQL statement may take too long and ends up freezing SAS, I would like to time the excution, i.e have a piece of code directly within the program that tracks how long the query has been running and if it runs for too long (say more than a few minutes) then terminates the execution. Could you please give me some advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vi&lt;/P&gt;</description>
    <pubDate>Thu, 27 Apr 2017 17:24:54 GMT</pubDate>
    <dc:creator>VNguyen</dc:creator>
    <dc:date>2017-04-27T17:24:54Z</dc:date>
    <item>
      <title>Time SAS program execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-SAS-program-execution/m-p/354206#M82827</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am writing to program to retrieve data from databases (MS SQL, MS Access, etc) using Proc SQL in Base SAS. Since I&amp;nbsp;do not know if the SQL statement may take too long and ends up freezing SAS, I would like to time the excution, i.e have a piece of code directly within the program that tracks how long the query has been running and if it runs for too long (say more than a few minutes) then terminates the execution. Could you please give me some advice?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Vi&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 17:24:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-SAS-program-execution/m-p/354206#M82827</guid>
      <dc:creator>VNguyen</dc:creator>
      <dc:date>2017-04-27T17:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Time SAS program execution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Time-SAS-program-execution/m-p/354226#M82834</link>
      <description>&lt;P&gt;I don't think you can do this from within one SAS program (although I'd love to been shown otherwise!). &amp;nbsp;I have some code that I created that outputs data (timestamp + descriptive text basically) to a text file (using FILENAME, FPUT, FAPPEND, etc) so I can monitor the process of an ongoing job, and you could probably combine something like that with a shell script that monitors that text file and kills the SAS job if it's not seeing progress.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 18:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Time-SAS-program-execution/m-p/354226#M82834</guid>
      <dc:creator>Sven111</dc:creator>
      <dc:date>2017-04-27T18:33:44Z</dc:date>
    </item>
  </channel>
</rss>

