<?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 Can you specify SAS invocation options for a particular stored process? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Can-you-specify-SAS-invocation-options-for-a-particular-stored/m-p/117454#M3856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If I write a stored process that uses a (non-pooled) workspace server, the server actually starts a new session to run the process, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can define SAS invocation options for the stored process (-altlog -autoexec -config etc?).&amp;nbsp; I want to define these at the stored process level (so, e.g. different stored processes might use different autoexecs), not at the server level.&amp;nbsp; I'm developing stored processes, but I don't administer the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One approach would be to use systask to kick off a new SAS session (with the desired options), as Scott Bass describes:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/34901"&gt;https://communities.sas.com/thread/34901&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But was wondering if I could define in the stored process metada (and/or as a prompt) the system options to be specified during invocation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2012 14:01:43 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2012-07-25T14:01:43Z</dc:date>
    <item>
      <title>Can you specify SAS invocation options for a particular stored process?</title>
      <link>https://communities.sas.com/t5/Developers/Can-you-specify-SAS-invocation-options-for-a-particular-stored/m-p/117454#M3856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If I write a stored process that uses a (non-pooled) workspace server, the server actually starts a new session to run the process, right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can define SAS invocation options for the stored process (-altlog -autoexec -config etc?).&amp;nbsp; I want to define these at the stored process level (so, e.g. different stored processes might use different autoexecs), not at the server level.&amp;nbsp; I'm developing stored processes, but I don't administer the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One approach would be to use systask to kick off a new SAS session (with the desired options), as Scott Bass describes:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://communities.sas.com/thread/34901"&gt;https://communities.sas.com/thread/34901&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But was wondering if I could define in the stored process metada (and/or as a prompt) the system options to be specified during invocation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;--Q.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2012 14:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Can-you-specify-SAS-invocation-options-for-a-particular-stored/m-p/117454#M3856</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-07-25T14:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can you specify SAS invocation options for a particular stored process?</title>
      <link>https://communities.sas.com/t5/Developers/Can-you-specify-SAS-invocation-options-for-a-particular-stored/m-p/117455#M3857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this link...it may give some idea...&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/32/231.html" title="http://support.sas.com/kb/32/231.html"&gt;http://support.sas.com/kb/32/231.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-top: 5px; padding-bottom: 5px; font-size: small; font-family: Arial, Helvetica, Verdana, sans-serif; color: #333333;"&gt;For &lt;STRONG&gt;individual stored processes &lt;/STRONG&gt;, add the custom SASAUTOS path by adding the path in an OPTIONS statement that is specified at the beginning of the stored process code. For example:&lt;/P&gt;&lt;P class="fusionnote" style="font-family: monospace; padding-top: 10px; padding-right: 20px; padding-bottom: 10px; padding-left: 5px; color: #333333; margin: 20px;"&gt;OPTIONS SASAUTOS=("c:\&lt;EM&gt;myautocalls&lt;/EM&gt;\dir" "SASEnvironment/sasMacro" SASAUTOS)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 09:25:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Can-you-specify-SAS-invocation-options-for-a-particular-stored/m-p/117455#M3857</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-07-26T09:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can you specify SAS invocation options for a particular stored process?</title>
      <link>https://communities.sas.com/t5/Developers/Can-you-specify-SAS-invocation-options-for-a-particular-stored/m-p/117456#M3858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SASAUTOS can be defined in the actual stored process code.&amp;nbsp; And that is what I'm doing now:&lt;/P&gt;&lt;P&gt;&amp;nbsp; options insert=(sasautos="/myautocalls/dir");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But lots of system options (ALTLOG, AUTOEXEC, CONFIG) can only be specified during invocation.&amp;nbsp; Seems that when a new SAS process is invoked to run a stored process, it would be nice to be able to define (in the metadata associated with the stored process), the system options that should be set during the invocation. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I guess we can't do that yet.&amp;nbsp; Maybe I'll propose this to the SASware ballot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Q.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2012 13:22:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Can-you-specify-SAS-invocation-options-for-a-particular-stored/m-p/117456#M3858</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2012-07-26T13:22:06Z</dc:date>
    </item>
  </channel>
</rss>

