<?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 When SAS Stored Process last accessed in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742270#M22186</link>
    <description>&lt;P&gt;How can I create a list of our current SAS Stored Process that will indicate when each were last accessed and all the tables that are being used for each of the stored processes?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get a listing of the stored processes that list name, description, location, creation and modified date, but I need to know when last accessed. We are wanting to do some cleanup, but not sure which ones to keep and which are no longer in use.&amp;nbsp; Here's a sample of what I'm looking for...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class=" lia-align-center" style="width: 678px;" width="678"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;Name&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;Description&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;Location&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;Created&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;Modified&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;Last Accessed&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Tables Used&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="84px"&gt;SP 01&lt;/TD&gt;
&lt;TD width="92px" height="84px"&gt;Description 1&lt;/TD&gt;
&lt;TD width="125px" height="84px"&gt;/location of Stored Procedure&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="67px" height="84px"&gt;Table 01&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Table 02&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Table 03&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="84px"&gt;SP 02&lt;/TD&gt;
&lt;TD width="92px" height="84px"&gt;Description 2&lt;/TD&gt;
&lt;TD width="125px" height="84px"&gt;/location of Stored Procedure&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="67px" height="84px"&gt;Table 01&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Table 02&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Table 04&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Tue, 18 May 2021 20:09:47 GMT</pubDate>
    <dc:creator>LisaSAS</dc:creator>
    <dc:date>2021-05-18T20:09:47Z</dc:date>
    <item>
      <title>When SAS Stored Process last accessed</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742270#M22186</link>
      <description>&lt;P&gt;How can I create a list of our current SAS Stored Process that will indicate when each were last accessed and all the tables that are being used for each of the stored processes?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can get a listing of the stored processes that list name, description, location, creation and modified date, but I need to know when last accessed. We are wanting to do some cleanup, but not sure which ones to keep and which are no longer in use.&amp;nbsp; Here's a sample of what I'm looking for...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class=" lia-align-center" style="width: 678px;" width="678"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;Name&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;Description&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;Location&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;Created&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;Modified&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;Last Accessed&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Tables Used&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="84px"&gt;SP 01&lt;/TD&gt;
&lt;TD width="92px" height="84px"&gt;Description 1&lt;/TD&gt;
&lt;TD width="125px" height="84px"&gt;/location of Stored Procedure&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="67px" height="84px"&gt;Table 01&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Table 02&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Table 03&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="84px"&gt;SP 02&lt;/TD&gt;
&lt;TD width="92px" height="84px"&gt;Description 2&lt;/TD&gt;
&lt;TD width="125px" height="84px"&gt;/location of Stored Procedure&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="113px" height="84px"&gt;MM/DD/YYYY&lt;/TD&gt;
&lt;TD width="67px" height="84px"&gt;Table 01&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Table 02&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="54px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="92px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="125px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="113px" height="57px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="67px" height="57px"&gt;Table 04&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 18 May 2021 20:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742270#M22186</guid>
      <dc:creator>LisaSAS</dc:creator>
      <dc:date>2021-05-18T20:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: When Stored Procedures last accessed</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742271#M22187</link>
      <description>&lt;P&gt;Which version of SAS are you using ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you explored the SAS Environment Manager.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings15/SAS1520-2015.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings15/SAS1520-2015.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 20:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742271#M22187</guid>
      <dc:creator>r_behata</dc:creator>
      <dc:date>2021-05-18T20:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: When Stored Procedures last accessed</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742272#M22188</link>
      <description>&lt;P&gt;Are you referring to SAS Stored Processes? Stored Procedures are a relational database feature for advanced SQL processing.&lt;/P&gt;</description>
      <pubDate>Tue, 18 May 2021 20:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742272#M22188</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2021-05-18T20:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: When Stored Procedures last accessed</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742279#M22190</link>
      <description>SAS Stored Process - I went ahead and changed the original post.  Sorry, SQL on my mind.</description>
      <pubDate>Tue, 18 May 2021 20:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742279#M22190</guid>
      <dc:creator>LisaSAS</dc:creator>
      <dc:date>2021-05-18T20:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: When Stored Procedures last accessed</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742816#M22196</link>
      <description>&lt;P&gt;There are multiple approaches to handle this issue&lt;/P&gt;
&lt;P&gt;1. It is possible to run a code before the stored process, Using this feature write a code that updates a sas dataset with STP name and date and time of execution.&lt;/P&gt;
&lt;P&gt;2.Use the stored process log. Write a shell script to extract the date and time of execution of the stored process&lt;/P&gt;</description>
      <pubDate>Fri, 21 May 2021 02:48:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/742816#M22196</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2021-05-21T02:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: When SAS Stored Process last accessed</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/745705#M22298</link>
      <description>You can log events as part of the stpinit program&lt;BR /&gt;&lt;BR /&gt;More info: &lt;A href="https://rawsas.com/event-logging-of-stored-process-server-sessions/" target="_blank"&gt;https://rawsas.com/event-logging-of-stored-process-server-sessions/&lt;/A&gt;</description>
      <pubDate>Fri, 04 Jun 2021 08:09:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/When-SAS-Stored-Process-last-accessed/m-p/745705#M22298</guid>
      <dc:creator>AllanBowe</dc:creator>
      <dc:date>2021-06-04T08:09:34Z</dc:date>
    </item>
  </channel>
</rss>

