<?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 SAS VA 7.4 LASR Server with a Program in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481736#M13729</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18432"&gt;@PaulHomes&lt;/a&gt;&amp;nbsp;- thanks for pointing out that blog post. It's very useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I actually have tried the recommended code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Keep the SAS session up until SERVERTERM received */
proc vasmp;
   serverwait  port=10013;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But what I found is the program pauses and never completes when it runs the SERVERWAIT statement and this happens regardless of whether this code runs in a batch job or not. If you kill the batch job or stop the session running the SERVERWAIT statement then the LASR server stops too. My question is, how can I keep the LASR server running without the SERVERWAIT statement continuously running?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation appears to be consistent with the behaviour I'm seeing - that SERVERWAIT suspends execution of the VASMP procedure:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=inmsref&amp;amp;docsetVersion=2.81&amp;amp;docsetTarget=p1hkpwre0o94mcn1b13ps3vi24ts.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=inmsref&amp;amp;docsetVersion=2.81&amp;amp;docsetTarget=p1hkpwre0o94mcn1b13ps3vi24ts.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jul 2018 00:28:12 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-07-27T00:28:12Z</dc:date>
    <item>
      <title>Starting a SAS VA 7.4 LASR Server with a Program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481725#M13726</link>
      <description>&lt;P&gt;My requirement is to have a SAS program that will start the SAS VA 7.4 LASR servers after a server restart. Our SAS VA LASR servers (running on Windows 2012 R2) are rebooted monthly as part of standard server maintenance. While the reboot starts all SAS services automatically, the VA LASR servers don't start automatically and I'm not aware of any configuration option to make this happen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I've been investigating a programmatic solution. I've found that the following LIBNAME statement will restart a LASR server but as soon as the LIBNAME is cleared the LASR server stops. How do I ensure that the LASR server(s) keep running?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;* STARTSERVER option starts the LASR server.;
libname VALIBLA SASIOLA startserver = (path = "\\sasservername\sas$\SAS\Config\Lev1\AppData\SASVisualAnalytics\VisualAnalyticsAdministrator\sigfiles")    
  host = "sasservername.com" port = 10011 tag = HPS  
  signer = "https://sasservername.com:443/SASLASRAuthorization"
  ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Jul 2018 23:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481725#M13726</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-26T23:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a SAS VA 7.4 LASR Server with a Program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481732#M13727</link>
      <description>&lt;P&gt;Have you seen this SAS blog post by Gilles Chrzaszcz?&amp;nbsp;&lt;A href=" https://blogs.sas.com/content/sgf/2017/04/17/how-lasr-servers-are-started-from-sas-visual-analytics-administrator/" target="_self"&gt;How LASR servers are started from SAS Visual Analytics Administrator&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Being on Windows yours is a non-distributed VA right?&amp;nbsp;There's some sample code at the end of the post which uses&amp;nbsp;proc vasmp&amp;nbsp;serverwait after the libname statement to keep the server running.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jul 2018 23:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481732#M13727</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2018-07-26T23:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a SAS VA 7.4 LASR Server with a Program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481736#M13729</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18432"&gt;@PaulHomes&lt;/a&gt;&amp;nbsp;- thanks for pointing out that blog post. It's very useful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I actually have tried the recommended code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Keep the SAS session up until SERVERTERM received */
proc vasmp;
   serverwait  port=10013;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But what I found is the program pauses and never completes when it runs the SERVERWAIT statement and this happens regardless of whether this code runs in a batch job or not. If you kill the batch job or stop the session running the SERVERWAIT statement then the LASR server stops too. My question is, how can I keep the LASR server running without the SERVERWAIT statement continuously running?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation appears to be consistent with the behaviour I'm seeing - that SERVERWAIT suspends execution of the VASMP procedure:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=inmsref&amp;amp;docsetVersion=2.81&amp;amp;docsetTarget=p1hkpwre0o94mcn1b13ps3vi24ts.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=inmsref&amp;amp;docsetVersion=2.81&amp;amp;docsetTarget=p1hkpwre0o94mcn1b13ps3vi24ts.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 00:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481736#M13729</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-27T00:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a SAS VA 7.4 LASR Server with a Program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481738#M13730</link>
      <description>&lt;P&gt;Isn't that just the way it works with non-distributed VA? The process you use to launch the server will block until someone shuts that server down.&amp;nbsp;It could be a batch program launched in the background so it doesn't lock up an interactive session (DMS, EG, etc). If that's not preferred, have you looked into the alternative autoload option?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 01:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481738#M13730</guid>
      <dc:creator>PaulHomes</dc:creator>
      <dc:date>2018-07-27T01:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Starting a SAS VA 7.4 LASR Server with a Program</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481740#M13731</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18432"&gt;@PaulHomes&lt;/a&gt;&amp;nbsp;- Yes, it appears that is by design. I guess the batch job starting the LASR server can just keep running. I just wanted to check in case there was something I had missed. ATM AUTOLOAD is disabled as we prefer to load on demand, so we will probably go with the program solution.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 01:16:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Starting-a-SAS-VA-7-4-LASR-Server-with-a-Program/m-p/481740#M13731</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-07-27T01:16:21Z</dc:date>
    </item>
  </channel>
</rss>

