<?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: Starting a LASR Server in VA using a program. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Starting-a-LASR-Server-in-VA-using-a-program/m-p/351485#M81802</link>
    <description>&lt;P&gt;Why do you need to restart your LASR server each day? What is happening to stop it in the first place?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IMO it would be best practice for&amp;nbsp;any stopping and starting of VA services including LASR servers to be handled by server-based scripts and scheduling, not from scheduling on a PC from EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 03:40:46 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2017-04-20T03:40:46Z</dc:date>
    <item>
      <title>Starting a LASR Server in VA using a program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Starting-a-LASR-Server-in-VA-using-a-program/m-p/351453#M81797</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am trying to write a program in SAS Ent. Guide (EG)&amp;nbsp;to start our LASR server so that i can schedule it to run each morning. I have the program written and it works when run in EG but only when i select the SASAppVA&amp;nbsp; as the selected server. (we have 2 servers (SASApp and SASAppVA).&lt;/P&gt;&lt;P&gt;When i run it using the SASAppVA as the selected server, it runs and starts the LASR server. However if i save and schedule the program to run i get the following error in the log.-&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;ERROR: You cannot combine the STARTSERVER or SERVEROPTS= syntax with the specification of a host other than the local machine.&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff00ff"&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&lt;FONT color="#000000"&gt;I am thinking this is because the program automatically runs on the SASApp server wher it is saved.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff00ff"&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&lt;FONT color="#000000"&gt;I have read numerous old posts about this but cannot find anything recent.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff00ff"&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&lt;FONT color="#000000"&gt;My question is:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff00ff"&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&lt;FONT color="#000000"&gt;Is there a command line&amp;nbsp;I can add to my program so that it executes the program on the SASAppVA server.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff00ff"&gt;&lt;SPAN style="background: white; color: red; font-family: &amp;quot;Courier New&amp;quot;;"&gt;&lt;FONT size="3"&gt;&lt;FONT color="#000000"&gt;My current code is:&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;libname&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; CPRULASR &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;SASIOLA&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;startserver &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;host&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"sasvisualanalytics.XXX.XXX.XXX.au"&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;port&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;10035&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;signer=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"sasanalytics.&lt;FONT color="#800080" face="Courier New"&gt;XXX.XXX.XXX&lt;/FONT&gt;.au:80/SASLASRAuthorization";&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;Also is there any way of checking if the relevent port is is in use prior to the startserver command in the program.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;This way, if the server is already up then the code can exit rather than continue.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;Thanks All,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Courier New" size="3"&gt;David&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 20:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Starting-a-LASR-Server-in-VA-using-a-program/m-p/351453#M81797</guid>
      <dc:creator>David99</dc:creator>
      <dc:date>2017-04-19T20:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a LASR Server in VA using a program.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Starting-a-LASR-Server-in-VA-using-a-program/m-p/351485#M81802</link>
      <description>&lt;P&gt;Why do you need to restart your LASR server each day? What is happening to stop it in the first place?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IMO it would be best practice for&amp;nbsp;any stopping and starting of VA services including LASR servers to be handled by server-based scripts and scheduling, not from scheduling on a PC from EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Apr 2017 03:40:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Starting-a-LASR-Server-in-VA-using-a-program/m-p/351485#M81802</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-04-20T03:40:46Z</dc:date>
    </item>
  </channel>
</rss>

