<?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: BatchServer and autoexec in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651517#M19024</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;. There is any way to unable the &lt;SPAN&gt;METAAUTORESOURCES for specific process? Something like "-NOMETAAUTORESOURCES" to add in some config fiel or options&amp;nbsp;METAAUTORESOURCES = NO...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 28 May 2020 19:07:37 GMT</pubDate>
    <dc:creator>MariaD</dc:creator>
    <dc:date>2020-05-28T19:07:37Z</dc:date>
    <item>
      <title>BatchServer and autoexec</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651503#M19021</link>
      <description>&lt;P&gt;Hi folks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are making some test using the following command line to execute on batch.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/sas/config/Lev1/SASMain/BatchServer/sasbatch.sh -log /path/log.#Y_#m_#d.log -batch -noterminal -logparm "rollover=session" -xcmd -sysin /path/program.sas &amp;amp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The test SAS program only copy a SASHELP.CLASS table. After reviewing the generated log, we identified some libname definitions on it. We reviewed the autoexec included on BatchServer folder and the autoexec is empty. We reviewed the autoexec included on /home/user folder and is empty too. How could I identify which autoexec used?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 18:25:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651503#M19021</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-05-28T18:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: BatchServer and autoexec</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651505#M19022</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36451"&gt;@MariaD&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any pre-assigned libraries associated to the SASMain application server context? These would be loaded during startup by way of the METAAUTORESOURCES option in SASMain/sasv9.cfg. The autoexec files sourced are those for the context and the Batch Server specifically. i.e. SASMain/appserver_autoexec(_usermods).sas and SASMain/BatchServer/autoexec(_usermods).sas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can identify these by following the autoexec option. sasbatch.sh sources BatchServer/sasv9.cfg which contains the autoexec option pointing to BatchServer/autoexec.sas. That file sources autoexec_usermods.sas and ../appserver_autoexec.sas, which sources ../appserver_autoexec_usermods.sas.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 18:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651505#M19022</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2020-05-28T18:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: BatchServer and autoexec</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651510#M19023</link>
      <description>&lt;P&gt;These are pre-signed libraries. It is an option of the libraries registered in metadata.&lt;BR /&gt;To find out more, please consult:&amp;nbsp;&lt;A href="https://documentation.sas.com/?docsetId=bidsag&amp;amp;docsetTarget=p0u8xcdo2ll3kmn1oqfz2s0ybooq.htm&amp;amp;docsetVersion=9.4"&gt;https://documentation.sas.com/?docsetId=bidsag&amp;amp;docsetTarget=p0u8xcdo2ll3kmn1oqfz2s0ybooq.htm&amp;amp;docsetVersion=9.4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 18:42:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651510#M19023</guid>
      <dc:creator>dcmacedo</dc:creator>
      <dc:date>2020-05-28T18:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: BatchServer and autoexec</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651517#M19024</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;. There is any way to unable the &lt;SPAN&gt;METAAUTORESOURCES for specific process? Something like "-NOMETAAUTORESOURCES" to add in some config fiel or options&amp;nbsp;METAAUTORESOURCES = NO...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 19:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651517#M19024</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-05-28T19:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: BatchServer and autoexec</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651533#M19026</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36451"&gt;@MariaD&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/78975"&gt;@gwootton&lt;/a&gt;&amp;nbsp;. There is any way to unable the &lt;SPAN&gt;METAAUTORESOURCES for specific process? Something like "-NOMETAAUTORESOURCES" to add in some config fiel or options&amp;nbsp;METAAUTORESOURCES = NO...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Don't do that. There is a REASON why the application-server based context is also valid in the subservers, one of them being the batch server. After all, you expect that programs that work in the workspace server will also work in batch.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 19:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651533#M19026</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-28T19:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: BatchServer and autoexec</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651537#M19027</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36451"&gt;@MariaD&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you wanted to prevent it from assigning the libraries for a particular execution you could add an invalid option like -metaautoresources "foo" to the command line. This would produce the message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NOTE: No preassigned object definitions were found on the metadata server.&lt;/PRE&gt;
&lt;P&gt;As &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&amp;nbsp;pointed out, the pre-assigned libraries are supposed to be assigned for any server started from that context so it may not be desirable to prevent these from assigning all the time by modifying the configuration file.&lt;/P&gt;
&lt;P&gt;If you don't want them to be assigned ever for any server session, you can remove the pre-assignment from the libraries in SAS Management Console. If you do not want them to assign for particular users, you can deny ReadMetadata permission to the library for those users. This could be helpful if you are running your batch jobs as a particular user.&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 19:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651537#M19027</guid>
      <dc:creator>gwootton</dc:creator>
      <dc:date>2020-05-28T19:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: BatchServer and autoexec</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651543#M19028</link>
      <description>&lt;P&gt;Thanks folks! Yes, for some executions, because we have a lot of external libname that takes time, we preferer to exclude it. Regards,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 20:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/BatchServer-and-autoexec/m-p/651543#M19028</guid>
      <dc:creator>MariaD</dc:creator>
      <dc:date>2020-05-28T20:12:13Z</dc:date>
    </item>
  </channel>
</rss>

