<?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 Re: Autocall Library and Stored Process Server in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91608#M3591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have thought that in a standard installation ./opt/biserver/Lev1/SASApp/sasv9_usermods.cfg will be used by all servers under SASApp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not the case then you start best with the .cfg which is called by the Stored Process Server and then look there what other .cfg are included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the autocall macro library available for all servers then adding it to ./opt/biserver/Lev1/SASApp/sasv9_usermods.cfg should be sufficient. I wouldn't define it again in all the server .cfg's as this makes maintenance more complicated and also adds the same path twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly is not working? Are you sure that you're using the Stored Process Server under ./opt/biserver/Lev1/SASApp/StoredProcessServer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Jun 2012 15:39:51 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2012-06-25T15:39:51Z</dc:date>
    <item>
      <title>Autocall Library and Stored Process Server</title>
      <link>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91607#M3590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello --&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've set up an autocall macro library on our SAS server (UNIX, SAS EG 4.3) by adding the following option to the config file: -SET SASAUTOS ("***macro path****")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works just as intended, all of the macros in the "macro path" folder are available to the session.&amp;nbsp; However, I'm running into problems when running stored processes which reference those same shared macros.&amp;nbsp; I know the sasutos option should be in the usermods file, but I've inserted the sasautos option in all of the following files but I've still had no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./opt/biserver/Lev1/SASMeta/sasv9_usermods.cfg&lt;BR /&gt; ./opt/biserver/Lev1/SASMeta/WorkspaceServer/sasv9_usermods.cfg&lt;BR /&gt; ./opt/biserver/Lev1/SASMeta/MetadataServer/sasv9_usermods.cfg&lt;BR /&gt; ./opt/biserver/Lev1/SASMeta/BatchServer/sasv9_usermods.cfg&lt;BR /&gt; ./opt/biserver/Lev1/SASApp/sasv9_usermods.cfg&lt;BR /&gt; ./opt/biserver/Lev1/SASApp/StoredProcessServer/sasv9_usermods.cfg&lt;BR /&gt; ./opt/biserver/Lev1/SASApp/WorkspaceServer/sasv9_usermods.cfg&lt;BR /&gt; ./opt/biserver/Lev1/SASApp/PooledWorkspaceServer/sasv9_usermods.cfg&lt;/P&gt;&lt;P style="margin-left: 0.5in;"&gt;&lt;/P&gt;&lt;P&gt;I was doing some reading and came across this note: &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; which references multiple config files being referenced by the stored process server:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Store the .sas files for the user-created AUTOCALL macros in a directory other than the ones listed above, which must be concatenated into the SASAUTOS system option search path. The default SASAUTOS directory search path is determined when SAS initializes by reading the SAS configuration file(s) associated with the installation.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Multiple SAS configuration files are read by default when a stored process is executed through a workspace server or stored process server. For example, in a Windows environment the SAS configuration files read by default will be similar to this:&lt;/P&gt;&lt;PRE class="jive-pre"&gt;&amp;lt;BIConfigDir&amp;gt;\Lev1\SASMain\StoredProcessServer\sasv9_StorProcSrv.cfg &amp;lt;BIConfigDir&amp;gt;\Lev1\SASMain\sasv9.cfg !sasroot\sasv9.cfg !sasroot\nls\en\SASV9.CFG &lt;/PRE&gt;&lt;P&gt;Any ideas on what config files on UNIX I need to modify to make my autocall library available to the stored process server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 13:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91607#M3590</guid>
      <dc:creator>mdavidson</dc:creator>
      <dc:date>2012-06-25T13:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall Library and Stored Process Server</title>
      <link>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91608#M3591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would have thought that in a standard installation ./opt/biserver/Lev1/SASApp/sasv9_usermods.cfg will be used by all servers under SASApp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not the case then you start best with the .cfg which is called by the Stored Process Server and then look there what other .cfg are included.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the autocall macro library available for all servers then adding it to ./opt/biserver/Lev1/SASApp/sasv9_usermods.cfg should be sufficient. I wouldn't define it again in all the server .cfg's as this makes maintenance more complicated and also adds the same path twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What exactly is not working? Are you sure that you're using the Stored Process Server under ./opt/biserver/Lev1/SASApp/StoredProcessServer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 15:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91608#M3591</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-06-25T15:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall Library and Stored Process Server</title>
      <link>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91609#M3592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Here's what is not working.&amp;nbsp; When I open EG and run one of the autocall macros I don't have any problems.&amp;nbsp; When I run that same macro via stored process, the macro fails (&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;ERROR 180-322: Statement is not valid or it is used out of proper order. ) So for some reason the stored process server is not referencing the autocall library.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I first modified the ./opt/biserver/Lev1/SASApp/sasv9_usermods.cfg file and still ran into the same problem.&amp;nbsp; Then I even went one step furthur and modified the &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;/opt/SAS/SASFoundation/9.2/nls/en/sasv9.cfg file, and I still have the same problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Here's what my sasv9.cfg file looks like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;[root@sas02 en]# more sasv9.cfg &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; This config file contains the default SAS configuration option settings&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; which are defined during the SAS Foundation Installation process. This file&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; gets recreated during SAS Installation Upgrade process therefore user&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; specified settings added to this file will be lost during an upgrade. With&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; this in mind, we strongly discourage editing this file, as the edits will&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; be lost on upgrade. A new configuration file named sasv9_local.cfg has&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; been created in the !SASROOT directory to store user specified settings.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; Settings in this file will remain in place during upgrades to this SAS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; Installation and will override the default options values when the same&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; options are contained in both places.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;/*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; Default options:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;-insert sashelp !SASROOT/nls/en/sascfg&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;-insert helploc !SASROOT/X11/native_help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;-SET SASAUTOS ("***macro path***")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;--&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;And I checked, yes the stored process is running via SASApp - Logical Stored Process Server.&amp;nbsp; I'm going to have to get with my UNIX admin and open up the config file located in ./opt/biserver/Lev1/SASApp/StoredProcessServer&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2012 17:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91609#M3592</guid>
      <dc:creator>mdavidson</dc:creator>
      <dc:date>2012-06-25T17:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall Library and Stored Process Server</title>
      <link>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91610#M3593</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried adding the -sasautos ("E:\path\ucmacros" "SASEnvironment/sasMacro" SASAUTOS) in the &lt;/P&gt;&lt;P&gt;configuration directory &lt;STRONG&gt;E:\SAS\Config\Lev1\SASApp\sasv9_usermods.cfg(it worked properly in SAS stored process web application).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After adding the path I restart sas object spawner services.Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 04:53:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91610#M3593</guid>
      <dc:creator>shivas</dc:creator>
      <dc:date>2012-06-26T04:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall Library and Stored Process Server</title>
      <link>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91611#M3594</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'd probabely add on top of ./opt/biserver/Lev1/SASApp/StoredProcessServer/sasv9.cfg an insert for&amp;nbsp; ./opt/biserver/Lev1/SASApp/StoredProcessServer/sasv9_usermods.cfg&lt;/P&gt;&lt;P&gt;... and then on top of&amp;nbsp; ./opt/biserver/Lev1/SASApp/StoredProcessServer/sasv9_usermods.cfg an insert for&amp;nbsp; ./opt/biserver/Lev1/SASApp/sasv9.cfg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;./opt/biserver/Lev1/SASApp/sasv9.cfg should already have an insert for ./opt/biserver/Lev1/SASApp/sasv9_usermods.cfg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You then could add your SASAUTOS extension to&amp;nbsp; ./opt/biserver/Lev1/SASApp/sasv9_usermods.cfg so that this code is in one central place and gets active for all servers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make also sure that the folder containing the macros can be read by SASSRV (or whatever user the stored processes server uses to execute programs).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 09:00:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91611#M3594</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-06-26T09:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall Library and Stored Process Server</title>
      <link>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91612#M3595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is an option that you can set in the metadata to specify the name of a program to run before each stored process. You can also define a program to run after the completion of each stored process. You can also define such programs at the session level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have 9.2 anymore, but here is how you do it in 9.3. And I believe it is the same in 9.2. Note that this was a new feature added in 9.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Login to SAS Management Console&lt;/LI&gt;&lt;LI&gt;On the Plug-Ins tab, expand Server Manager&lt;/LI&gt;&lt;LI&gt;Expand the name of your App Server (e.g., SASApp)&lt;/LI&gt;&lt;LI&gt;Right click on the appropriate logical stored process server&lt;/LI&gt;&lt;LI&gt;Go to the &lt;STRONG&gt;Options&lt;/STRONG&gt; tab&lt;/LI&gt;&lt;LI&gt;Click the &lt;STRONG&gt;Set Server Properties&lt;/STRONG&gt; button&lt;/LI&gt;&lt;LI&gt;Select the &lt;STRONG&gt;Request&lt;/STRONG&gt; tab&lt;/LI&gt;&lt;LI&gt;Define the path for the programs to run before (and/or) after each stored process&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use this almost all the time to set autocall libraries, issue libnames based on the user, etc. All the macro vars that are available to your stored process are available to the program that is run before the stored process, as is the user id (i.e., &amp;amp;_metauser). So you can even do user specific things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note however that what you put here run before EVERY stored process. So don't overload it.&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2012 23:18:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91612#M3595</guid>
      <dc:creator>DonH</dc:creator>
      <dc:date>2012-07-27T23:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall Library and Stored Process Server</title>
      <link>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91613#M3596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Don.&amp;nbsp; That's a goood tip, I was not aware of that option.&amp;nbsp; What does your initilization program look like?&amp;nbsp; Something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename mymac "***path***";&lt;/P&gt;&lt;P&gt;%include mymac ('*.sas');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 14:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91613#M3596</guid>
      <dc:creator>mdavidson</dc:creator>
      <dc:date>2012-08-28T14:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Autocall Library and Stored Process Server</title>
      <link>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91614#M3597</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since I work for multiple clients, I don't have a single standard. I try to minimize what it does and typically limit it to defining librefs, filenames, updating the fmtsearch or sasautos option.&lt;/P&gt;&lt;P&gt;It looks like you are trying to define macros. If so, I would use the SAS autocall facility to define the path to my macros. And I would use the insert or append options so as to make sure to not remove anything defined in the autoexec for the stored process server itself. Here is a link that talks about the insert and append options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Dynamically_Insert_and_Append_SAS_Format_and_Macro_Libraries_within_a_SAS_Program"&gt;http://www.sascommunity.org/wiki/Dynamically_Insert_and_Append_SAS_Format_and_Macro_Libraries_within_a_SAS_Program&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2012 16:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Autocall-Library-and-Stored-Process-Server/m-p/91614#M3597</guid>
      <dc:creator>DonH</dc:creator>
      <dc:date>2012-08-28T16:59:40Z</dc:date>
    </item>
  </channel>
</rss>

