<?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 How do I run some code each time a stored process runs? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/How-do-I-run-some-code-each-time-a-stored-process-runs/m-p/63126#M3203</link>
    <description>I know I can set some code to run in autoexec.sas when my stored process server starts, but I was wondering if there is a way to set some code to run *every time* a stored process runs. I want to run some code which looks at a userid and allocates a macro library for that person in front of the other standard ones. This needs to run each time a stored process runs, since every stored process might be run by a different person.&lt;BR /&gt;
&lt;BR /&gt;
I thought there might be a place (somewhere) where I could define a file to run before each stored process? Is there? If there is not a nice way to do it, then I would have to resort to putting a bit of code into every stored process I create (which would be very annoying).&lt;BR /&gt;
&lt;BR /&gt;
thanks for any help&lt;BR /&gt;
&lt;BR /&gt;
Phil</description>
    <pubDate>Wed, 26 Nov 2008 14:47:17 GMT</pubDate>
    <dc:creator>PhilMason</dc:creator>
    <dc:date>2008-11-26T14:47:17Z</dc:date>
    <item>
      <title>How do I run some code each time a stored process runs?</title>
      <link>https://communities.sas.com/t5/Developers/How-do-I-run-some-code-each-time-a-stored-process-runs/m-p/63126#M3203</link>
      <description>I know I can set some code to run in autoexec.sas when my stored process server starts, but I was wondering if there is a way to set some code to run *every time* a stored process runs. I want to run some code which looks at a userid and allocates a macro library for that person in front of the other standard ones. This needs to run each time a stored process runs, since every stored process might be run by a different person.&lt;BR /&gt;
&lt;BR /&gt;
I thought there might be a place (somewhere) where I could define a file to run before each stored process? Is there? If there is not a nice way to do it, then I would have to resort to putting a bit of code into every stored process I create (which would be very annoying).&lt;BR /&gt;
&lt;BR /&gt;
thanks for any help&lt;BR /&gt;
&lt;BR /&gt;
Phil</description>
      <pubDate>Wed, 26 Nov 2008 14:47:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-do-I-run-some-code-each-time-a-stored-process-runs/m-p/63126#M3203</guid>
      <dc:creator>PhilMason</dc:creator>
      <dc:date>2008-11-26T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I run some code each time a stored process runs?</title>
      <link>https://communities.sas.com/t5/Developers/How-do-I-run-some-code-each-time-a-stored-process-runs/m-p/63127#M3204</link>
      <description>This feature has been added in 9.2, and is similar to the Request INIT program of the SAS/IntrNet Application Dispatcher.  See:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/dispatch.hlp/appreq.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/dispatch.hlp/appreq.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Vince&lt;BR /&gt;
SAS R&amp;amp;D</description>
      <pubDate>Wed, 26 Nov 2008 15:05:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-do-I-run-some-code-each-time-a-stored-process-runs/m-p/63127#M3204</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2008-11-26T15:05:29Z</dc:date>
    </item>
  </channel>
</rss>

