<?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: How Do I Programatically Unload and Load a LASR Table? in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/326613#M6189</link>
    <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your replies. I found the solution through going to VA &amp;gt; Administrator. Click on File &amp;gt; Preference. Under SAS Visual Analytics Administrator &amp;gt; Manage Environment, tick the checkbox beside Record Actions as SAS Statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, perform whatever you need in the GUI and the code will be saved in /tmp. You may manually change the code as needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Be careful on using this option. You may not want your /tmp folder to be flooded by sas files. You may want to uncheck this preference after getting what you need.&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jan 2017 01:08:45 GMT</pubDate>
    <dc:creator>kikorugeria</dc:creator>
    <dc:date>2017-01-23T01:08:45Z</dc:date>
    <item>
      <title>How Do I Programatically Unload and Load a LASR Table?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/325886#M6167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create a SAS code that will unload a LASR table and reload it after. This is for updating the contents of the table. I have the hostname, port, user and password of both the physical and meta server. (Not sure if necessary. Maybe to setup the library where the table is located.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So my desired output would be an unloaded/loaded LASR table when the code is run. Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Versions: SAS 9.4, SAS VA 7.3&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 06:06:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/325886#M6167</guid>
      <dc:creator>kikorugeria</dc:creator>
      <dc:date>2017-01-19T06:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Programatically Unload and Load a LASR Table?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/325922#M6170</link>
      <description>&lt;P&gt;I am providing here few basic snippet that can be used to built a macro as per your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To unload/delete the lasr table, PROC IMSTAT can be used in below way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC IMSTAT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table &amp;lt;libref&amp;gt;.&amp;lt;lasr table&amp;gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; droptable;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; run;&lt;/P&gt;
&lt;P&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And to load it back use, PROC LASR.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC LASR add&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; data = &amp;lt;libref&amp;gt;.&amp;lt;lasr table&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; port = &amp;lt;lasr port&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; noclass;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; performance host = "&amp;lt;lasr server host&amp;gt;";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/325922#M6170</guid>
      <dc:creator>ranjan7k</dc:creator>
      <dc:date>2017-01-19T10:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Programatically Unload and Load a LASR Table?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/325923#M6171</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are on a non-distributed environment, it might be as simple as running a DATASETS procedure then a DATA STEP.&lt;BR /&gt;Please have a look at &lt;A href="http://support.sas.com/documentation/cdl/en/inmsref/70021/HTML/default/viewer.htm#p1qf09ffb3hr02n1bt8gqqjs67gs.htm" target="_self"&gt;Loading and Unloading Tables for Non-Distributed Servers&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're talking about unloading and loading a table from/to memory, the LASR procedure should help you:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/inmsref/67213/HTML/default/viewer.htm#p1med8qs7yeafjn15d3jiwr4fbrs.htm" target="_self"&gt;Example 6: Unload a Table from Memory&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &lt;A href="http://support.sas.com/documentation/cdl/en/inmsref/67213/HTML/default/viewer.htm#n1ef7wukhmr1iun1cki8f31t3cgl.htm" target="_self"&gt;Example 4: Load a Table from Teradata to Memory&lt;/A&gt;&amp;nbsp;(you can obviousy take out the Teradata part)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition, paper &lt;A href="https://support.sas.com/resources/papers/proceedings15/SAS1905-2015.pdf" target="_self"&gt;Tips and Techniques for Efficiently Updating and Loading Data into&amp;nbsp;SAS® Visual Analytics&lt;/A&gt;&amp;nbsp;should provide additional guidances.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Damo&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 10:19:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/325923#M6171</guid>
      <dc:creator>Damo</dc:creator>
      <dc:date>2017-01-19T10:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Programatically Unload and Load a LASR Table?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/326155#M6184</link>
      <description>&lt;P&gt;Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/82833"&gt;@ranjan7k&lt;/a&gt;, Thanks for the reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution you sent is maybe for tables directly loaded to the public LASR server. My table is from MySQL registered through SAS Management Console. This may be the reason why it doesen't work. Please see the following logs:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasNote focus-line"&gt;NOTE: The DROP and KEEP statements are not supported in procedure steps in this release of the SAS System. Therefore, these&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;statements are ignored.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: You are trying to access a table in the TABLE statement that is not stored in the LASR Analytic Server. The IMSTAT procedure does not process data from non-LASR sources.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE IMSTAT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.08 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;</description>
      <pubDate>Fri, 20 Jan 2017 01:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/326155#M6184</guid>
      <dc:creator>kikorugeria</dc:creator>
      <dc:date>2017-01-20T01:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Programatically Unload and Load a LASR Table?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/326181#M6185</link>
      <description>&lt;P&gt;It should not really matter what the source is as once registered to Metadata all are accessesd via a libref. As you asked for program to unload and load a LASR table, my assumption was whatever source you are loading from (be it SAS, Oracle, MySql), it is first loaded into LASR server and loaded tables registered in Metadata with the LASR library. If that would have been the case, the script need only the libref i.e., the LASR library to load and unload. In my case, LASR tables were registered in Metadata.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Will check if some other solution can come up for your requirement.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2017 05:40:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/326181#M6185</guid>
      <dc:creator>ranjan7k</dc:creator>
      <dc:date>2017-01-20T05:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Programatically Unload and Load a LASR Table?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/326468#M6188</link>
      <description>&lt;P&gt;It appears you are trying to run PROC IMSTAT statements against a non-LASR library - IMSTAT is only for use on LASR libraries. Please post your log to clarify what you are doing. The default LIBREF for the Public LASR library is LASRLIB. You can also define your own LIBNAME pointing at a LASR library.&lt;/P&gt;</description>
      <pubDate>Sat, 21 Jan 2017 03:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/326468#M6188</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-01-21T03:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I Programatically Unload and Load a LASR Table?</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/326613#M6189</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your replies. I found the solution through going to VA &amp;gt; Administrator. Click on File &amp;gt; Preference. Under SAS Visual Analytics Administrator &amp;gt; Manage Environment, tick the checkbox beside Record Actions as SAS Statements.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, perform whatever you need in the GUI and the code will be saved in /tmp. You may manually change the code as needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE: Be careful on using this option. You may not want your /tmp folder to be flooded by sas files. You may want to uncheck this preference after getting what you need.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 01:08:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/How-Do-I-Programatically-Unload-and-Load-a-LASR-Table/m-p/326613#M6189</guid>
      <dc:creator>kikorugeria</dc:creator>
      <dc:date>2017-01-23T01:08:45Z</dc:date>
    </item>
  </channel>
</rss>

