<?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: Adding and registering table to LASR in SAS VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-and-registering-table-to-LASR-in-SAS-VA/m-p/423675#M9037</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much. This was very helpful.&lt;/P&gt;&lt;P&gt;Just an fyi, if TABLE name needs to be in a macro, it is better to use %str&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Synchronize table registration */&lt;BR /&gt;%registerTable(&lt;BR /&gt;LIBRARY=%nrstr(/Shared Data/SAS Visual Analytics/Public/Visual Analytics Public LASR)&lt;BR /&gt;, REPOSITORY=%nrstr(Foundation)&lt;BR /&gt;, TABLE=%str(&amp;amp;Original_Table)&lt;BR /&gt;);&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2017 04:09:55 GMT</pubDate>
    <dc:creator>GAIA</dc:creator>
    <dc:date>2017-12-27T04:09:55Z</dc:date>
    <item>
      <title>Adding and registering table to LASR in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-and-registering-table-to-LASR-in-SAS-VA/m-p/423566#M9034</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm using LIBNAME statement and datstep to load a Table to the LASR Server. The environment is distributed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is executing successfully (verified in the log), but I'm unable to see the table under "SAS Public LASR Server Library"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for all your help.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 11:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-and-registering-table-to-LASR-in-SAS-VA/m-p/423566#M9034</guid>
      <dc:creator>GAIA</dc:creator>
      <dc:date>2017-12-26T11:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and registering table to LASR in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-and-registering-table-to-LASR-in-SAS-VA/m-p/423584#M9035</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183939"&gt;@GAIA&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's correct, you have to use &lt;A href="http://go.documentation.sas.com/?docsetId=lrmeta&amp;amp;docsetTarget=p1cqb9ofazns8pn1by7t2smnimsf.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;proc metalib&lt;/A&gt; in order to register LASR table on the metadata server. Please see an example below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Register Table Macro */
%macro registertable( REPOSITORY=Foundation, REPOSID=, LIBRARY=, TABLE=, FOLDER=, TABLEID=, PREFIX= );

/* Mask special characters */

   %let REPOSITORY=%superq(REPOSITORY);
   %let LIBRARY   =%superq(LIBRARY);
   %let FOLDER    =%superq(FOLDER);
   %let TABLE     =%superq(TABLE);

   %let REPOSARG=%str(REPNAME="&amp;amp;REPOSITORY.");
   %if ("&amp;amp;REPOSID." ne "") %THEN %LET REPOSARG=%str(REPID="&amp;amp;REPOSID.");

   %if ("&amp;amp;TABLEID." ne "") %THEN %LET SELECTOBJ=%str(&amp;amp;TABLEID.);
   %else                         %LET SELECTOBJ=&amp;amp;TABLE.;

   %if ("&amp;amp;FOLDER." ne "") %THEN
      %PUT INFO: Registering &amp;amp;FOLDER./&amp;amp;SELECTOBJ. to &amp;amp;LIBRARY. library.;
   %else
      %PUT INFO: Registering &amp;amp;SELECTOBJ. to &amp;amp;LIBRARY. library.;

   proc metalib;
      omr (
         library="&amp;amp;LIBRARY." 
         %str(&amp;amp;REPOSARG.) 
          ); 
      %if ("&amp;amp;TABLEID." eq "") %THEN %DO;
         %if ("&amp;amp;FOLDER." ne "") %THEN %DO;
            folder="&amp;amp;FOLDER.";
         %end;
      %end;
      %if ("&amp;amp;PREFIX." ne "") %THEN %DO;
         prefix="&amp;amp;PREFIX.";
      %end;
      select ("&amp;amp;SELECTOBJ."); 
   run; 
   quit;

%mend;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to use this macro?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Synchronize table registration */
%registerTable(
     LIBRARY=%nrstr(/Shared Data/SAS Visual Analytics/Public/Visual Analytics Public LASR)
   , REPOSITORY=%nrstr(Foundation)
   , TABLE=%nrstr(&amp;lt;REPLACE_WITH_TABLE_NAME&amp;gt;)
   , FOLDER=%nrstr(/Shared Data/SAS Visual Analytics/Public/LASR)
   );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Dec 2017 13:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-and-registering-table-to-LASR-in-SAS-VA/m-p/423584#M9035</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2017-12-26T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and registering table to LASR in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-and-registering-table-to-LASR-in-SAS-VA/m-p/423675#M9037</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much. This was very helpful.&lt;/P&gt;&lt;P&gt;Just an fyi, if TABLE name needs to be in a macro, it is better to use %str&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you once again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Synchronize table registration */&lt;BR /&gt;%registerTable(&lt;BR /&gt;LIBRARY=%nrstr(/Shared Data/SAS Visual Analytics/Public/Visual Analytics Public LASR)&lt;BR /&gt;, REPOSITORY=%nrstr(Foundation)&lt;BR /&gt;, TABLE=%str(&amp;amp;Original_Table)&lt;BR /&gt;);&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2017 04:09:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-and-registering-table-to-LASR-in-SAS-VA/m-p/423675#M9037</guid>
      <dc:creator>GAIA</dc:creator>
      <dc:date>2017-12-27T04:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding and registering table to LASR in SAS VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-and-registering-table-to-LASR-in-SAS-VA/m-p/424567#M9052</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/183939"&gt;@GAIA&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are welcome. Do not forget to mark this question as resolved.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 14:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Adding-and-registering-table-to-LASR-in-SAS-VA/m-p/424567#M9052</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-01-03T14:23:51Z</dc:date>
    </item>
  </channel>
</rss>

