<?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: APM macros causing warnings on batch server processes in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/APM-macros-causing-warnings-on-batch-server-processes/m-p/100641#M876</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add:&lt;/P&gt;&lt;P&gt;- Check the current dir of the batch server it is not the home dir as normally expected&lt;/P&gt;&lt;P&gt;- the log file notation is 12hr based one , you would 24hr as normal&lt;/P&gt;&lt;P&gt;- when apm is active spaces in source names are not allowed anymore. I think this issue already exists in the batch server script. Using the foundation entry directly allows spaces when proper quoted.&lt;/P&gt;&lt;P&gt;Why this way to publish and not with TS fir a fix or kb note?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2015 19:39:50 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2015-06-09T19:39:50Z</dc:date>
    <item>
      <title>APM macros causing warnings on batch server processes</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/APM-macros-causing-warnings-on-batch-server-processes/m-p/100639#M874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Hi everyone,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;I had an issue relating to APM today which I have managed to resolve but couldn't find any information on the subject online so thought I would post my results incase someone else hits the same problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;We recently had a new installation of the EBI suite onto our server and had APM set up so we could take advantage of all the monitoring processes it does. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Aside from the ridiculous amount of notes that started turning up in everyone's log files everything was going ok until we tried scheduling some processes to run through the batch server. In our case using lsf.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;&amp;nbsp; (On another note, I surpressed the extra apm notes by editing the workspace server logconfig.apm.xml file as described at the bottom of this article &lt;A href="http://support.sas.com/rnd/emi/APM93/apm93.faq.html"&gt;http://support.sas.com/rnd/emi/APM93/apm93.faq.html&lt;/A&gt;&amp;nbsp; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Basically, every process we ran was being flagged as finishing with a non-zero exit code. Single step processes were still executing fine despite always sending failure emails, however for a more complicated flow which relies on previous step executing without error the flow wouldn't get past the first step.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Looking through the logs the exit code was caused by a warning very early in the process due to a non-existent environment variable queried by %sysget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Since we don't use %sysget in any of our own code it wasn't hard to find the reference to %sysget in the %apm_armsetup macro.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Looking at the code in this macro it was coded to handle the situation where %sysget does not return any result however it does this after the warning has already been raised.&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Luckily, once I had found the issue it was fairly simple to fix by&lt;/SPAN&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt; altering the line in the macro from&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri; font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %let serverClass=%sysget(serverClass);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;To&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;&lt;STRONG style="font-weight: bold;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %if sysfunc(sysexist(serverClass)) %then %let serverClass=%sysget(serverClass);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Which makes sure that %sysget is only run when the environment variable actually exists, preventing the Warning and allowing the batch processes to run as before.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Hopefully this will help someone else who hits this issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri;"&gt;Tim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 09:49:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/APM-macros-causing-warnings-on-batch-server-processes/m-p/100639#M874</guid>
      <dc:creator>TimCampbell</dc:creator>
      <dc:date>2013-10-02T09:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: APM macros causing warnings on batch server processes</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/APM-macros-causing-warnings-on-batch-server-processes/m-p/100640#M875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great catch Tim. Thanks very much for a brilliant write up on this issue.&lt;/P&gt;&lt;P&gt;This certainly did help another person who also hit this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 07:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/APM-macros-causing-warnings-on-batch-server-processes/m-p/100640#M875</guid>
      <dc:creator>SimonDawson</dc:creator>
      <dc:date>2015-06-09T07:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: APM macros causing warnings on batch server processes</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/APM-macros-causing-warnings-on-batch-server-processes/m-p/100641#M876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add:&lt;/P&gt;&lt;P&gt;- Check the current dir of the batch server it is not the home dir as normally expected&lt;/P&gt;&lt;P&gt;- the log file notation is 12hr based one , you would 24hr as normal&lt;/P&gt;&lt;P&gt;- when apm is active spaces in source names are not allowed anymore. I think this issue already exists in the batch server script. Using the foundation entry directly allows spaces when proper quoted.&lt;/P&gt;&lt;P&gt;Why this way to publish and not with TS fir a fix or kb note?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 19:39:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/APM-macros-causing-warnings-on-batch-server-processes/m-p/100641#M876</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-06-09T19:39:50Z</dc:date>
    </item>
  </channel>
</rss>

