<?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: Updating/Replacing a LASR table from a project in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Updating-Replacing-a-LASR-table-from-a-project/m-p/457377#M9989</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99545"&gt;@ghartge&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/inmsref/70021/HTML/default/viewer.htm#n1ov2f05f7d8cwn1d12zlbtm8bzn.htm" target="_self"&gt;SAS® LASR(TM) Analytic Server 2.8: Reference Guide -&amp;gt; REPLACE= Data Set Option&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/inmsref/70021/HTML/default/viewer.htm#n1u5nf5kx7osnen1memir8pfzomr.htm" target="_self"&gt;SAS® LASR(TM) Analytic Server 2.8: Reference Guide -&amp;gt; IMSTAT Procedure (Data and Server Management) -&amp;gt; Example 6: Appending Tables&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope that helps.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 16:03:23 GMT</pubDate>
    <dc:creator>alexal</dc:creator>
    <dc:date>2018-04-25T16:03:23Z</dc:date>
    <item>
      <title>Updating/Replacing a LASR table from a project</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Updating-Replacing-a-LASR-table-from-a-project/m-p/457375#M9988</link>
      <description>&lt;P&gt;Greetings everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK, so I have a VA report that uses a table on our LASR server and everything works fine until I need to update the table. I would&amp;nbsp;like to update&amp;nbsp;the table&amp;nbsp;from the program that creates the data when it runs every semester. I do have an "Upload to LASR" step in the Process Flow for the project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can delete the table using Management Console but I lose my&amp;nbsp;row level security. Once I delete the table I can reload it using my project. Outside of this though, I would like to be able to update/reload any table without having to manually delete it first. I am thinking this is probably pretty routine. If I autoload the table it replaces/updates the table without issue but our Autoload places tables in a specific&amp;nbsp;folder not always where we want it for organizational reasons. The attached image has autoloaded tables along with the table I am trying to update, EOT_IR_GRADE_DIST_PROVOST.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The document&amp;nbsp;attached has the images and code and I have full access&amp;nbsp;to the system as an administrator.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all as always,&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 15:56:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Updating-Replacing-a-LASR-table-from-a-project/m-p/457375#M9988</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-04-25T15:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Updating/Replacing a LASR table from a project</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Updating-Replacing-a-LASR-table-from-a-project/m-p/457377#M9989</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/99545"&gt;@ghartge&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/inmsref/70021/HTML/default/viewer.htm#n1ov2f05f7d8cwn1d12zlbtm8bzn.htm" target="_self"&gt;SAS® LASR(TM) Analytic Server 2.8: Reference Guide -&amp;gt; REPLACE= Data Set Option&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://support.sas.com/documentation/cdl/en/inmsref/70021/HTML/default/viewer.htm#n1u5nf5kx7osnen1memir8pfzomr.htm" target="_self"&gt;SAS® LASR(TM) Analytic Server 2.8: Reference Guide -&amp;gt; IMSTAT Procedure (Data and Server Management) -&amp;gt; Example 6: Appending Tables&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 16:03:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Updating-Replacing-a-LASR-table-from-a-project/m-p/457377#M9989</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-04-25T16:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Updating/Replacing a LASR table from a project</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Updating-Replacing-a-LASR-table-from-a-project/m-p/457481#M9992</link>
      <description>&lt;P&gt;Thank you alexal,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure that helps. You are correct in that I have a table that I need to&amp;nbsp;replace all rows in, but I need to keep its metadata so I can retain my row level security settings. I am using the "Upload to LASR" functionality as described&amp;nbsp;in the attachment. What I am doing is replacing all of the data in the table with new data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have also attempted to use a LIBNAME statement&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LIBNAME TMP00012 SASIOLA HOST="SERVER_NAME" PORT=10031 TAG="VAPUBLIC" SIGNER="&lt;A href="https://sasprod.sfcollege.edu:443/SASLASRAuthorization" target="_blank"&gt;https://sasprod.sfcollege.edu:443/SASLASRAuthorization&lt;/A&gt;";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Along with PROC SQL procedures to&amp;nbsp;DELETE all rows and then INSERT the new data but that does not&amp;nbsp;work either. Even&amp;nbsp;with admin permissions, it seems I cannot "UPDATE" a table on the LASR server with a LIBNAME statement and PROC SQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 19:40:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Updating-Replacing-a-LASR-table-from-a-project/m-p/457481#M9992</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-04-25T19:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: Updating/Replacing a LASR table from a project</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Updating-Replacing-a-LASR-table-from-a-project/m-p/457611#M9994</link>
      <description>&lt;P&gt;I do like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME aaa SASIOLA  TAG=aaa  PORT=000 HOST="aaa" SIGNER="http://aaa/SASLASRAuthorization" ;

/* Remove existing table from LASR if loaded already */

%macro deletedsifexists(lib,name);

   %if %sysfunc(exist(&amp;amp;lib..&amp;amp;name.)) %then %do;
         proc datasets library=&amp;amp;lib. nolist;
         delete &amp;amp;name.;
   quit;

%end;
%mend deletedsifexists;

%deletedsifexists(MEBELA, im_medbedom);&lt;BR /&gt;&lt;BR /&gt;proc copy in=fromLIB OUT=aaa;&lt;BR /&gt; select myTable;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;%macro registertable( REPOSITORY=Foundation, REPOSID=, LIBRARY=, TABLE=, FOLDER=, TABLEID=, PREFIX= );&lt;BR /&gt;&lt;BR /&gt;/* Mask special characters */&lt;BR /&gt;&lt;BR /&gt; %let REPOSITORY=%superq(REPOSITORY);&lt;BR /&gt; %let LIBRARY =%superq(LIBRARY);&lt;BR /&gt; %let FOLDER =%superq(FOLDER);&lt;BR /&gt; %let TABLE =%superq(TABLE);&lt;BR /&gt;&lt;BR /&gt; %let REPOSARG=%str(REPNAME="&amp;amp;REPOSITORY.");&lt;BR /&gt; %if ("&amp;amp;REPOSID." ne "") %THEN %LET REPOSARG=%str(REPID="&amp;amp;REPOSID.");&lt;BR /&gt;&lt;BR /&gt; %if ("&amp;amp;TABLEID." ne "") %THEN %LET SELECTOBJ=%str(&amp;amp;TABLEID.);&lt;BR /&gt; %else %LET SELECTOBJ=&amp;amp;TABLE.;&lt;BR /&gt;&lt;BR /&gt; %if ("&amp;amp;FOLDER." ne "") %THEN&lt;BR /&gt; %PUT INFO: Registering &amp;amp;FOLDER./&amp;amp;SELECTOBJ. to &amp;amp;LIBRARY. library.;&lt;BR /&gt; %else&lt;BR /&gt; %PUT INFO: Registering &amp;amp;SELECTOBJ. to &amp;amp;LIBRARY. library.;&lt;BR /&gt;&lt;BR /&gt; proc metalib;&lt;BR /&gt; omr (&lt;BR /&gt; library="&amp;amp;LIBRARY." &lt;BR /&gt; %str(&amp;amp;REPOSARG.) &lt;BR /&gt; ); &lt;BR /&gt; %if ("&amp;amp;TABLEID." eq "") %THEN %DO;&lt;BR /&gt; %if ("&amp;amp;FOLDER." ne "") %THEN %DO;&lt;BR /&gt; folder="&amp;amp;FOLDER.";&lt;BR /&gt; %end;&lt;BR /&gt; %end;&lt;BR /&gt; %if ("&amp;amp;PREFIX." ne "") %THEN %DO;&lt;BR /&gt; prefix="&amp;amp;PREFIX.";&lt;BR /&gt; %end;&lt;BR /&gt; select ("&amp;amp;SELECTOBJ."); &lt;BR /&gt; run; &lt;BR /&gt; quit;&lt;BR /&gt;&lt;BR /&gt;%mend;&lt;BR /&gt;&lt;BR /&gt;/* Synchronize table registration */&lt;BR /&gt;%registerTable(&lt;BR /&gt; LIBRARY=%nrstr(/Path/to/LASRLib)&lt;BR /&gt; , REPOSITORY=%nrstr(Foundation)&lt;BR /&gt; , TABLE=%nrstr(myTable)&lt;BR /&gt; , FOLDER=%nrstr(/Path/to/metadataFolder)&lt;BR /&gt; );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Works great and the RLS is still there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you stlll have problems with RLS, you can add them using scripts after your reload:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=n1sjpmdvbsgp7bn1vpx0hsvsizcz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=sv" target="_blank"&gt;http://documentation.sas.com/?docsetId=bisecag&amp;amp;docsetTarget=n1sjpmdvbsgp7bn1vpx0hsvsizcz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=sv&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 06:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Updating-Replacing-a-LASR-table-from-a-project/m-p/457611#M9994</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-04-26T06:24:25Z</dc:date>
    </item>
  </channel>
</rss>

