<?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: Unable to replace a table in the LASR server using &amp;quot;Upload to LASR&amp;quot; code in EG 7.13/VA in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/427592#M27544</link>
    <description>&lt;P&gt;To replace a LASR server table you first delete it, then upload the new table, then register the table in metadata. Are you able to provide the source code from the task you are using to confirm what it is doing? There are no obvious problems in the LOG notes that I can see.&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jan 2018 02:30:11 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2018-01-15T02:30:11Z</dc:date>
    <item>
      <title>Unable to replace a table in the LASR server using "Upload to LASR" code in EG 7.13/VA 7.3</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/427334#M27532</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I produced a table using EG and uploaded it to a specific folder on the LASR server using the "Upload to LASR" menu item when right-clicking the&amp;nbsp;table in EG. This works fine and the process also places the code and a link in the process flow window&amp;nbsp;in my project that accomplishes this task. (Please see image)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the project again at a later time the tables on the LASR server are not updated/replaced.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I delete the tables on the LASR server they will be added back when the code is run again. On occasion&amp;nbsp;one of the three will update without it being&amp;nbsp;deleted first, but nothing consistent.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the results of the log when I run the "upload to LASR" module from my&amp;nbsp;Process Flow window by right-clicking and selecting "Run". I get the same results when I run the entire process as well. (emphasis in red is mine);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 The SAS System 10:47 Friday, January 12, 2018&lt;/P&gt;&lt;P&gt;NOTE: Writing TAGSETS.SASREPORT13(EGSR) Body file: EGSR&lt;BR /&gt;NOTE: Libref TMP00023 was successfully assigned as follows:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Engine:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SASIOLA&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;Physical Name: SAS LASR Analytic Server engine on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;local host, port 10031&lt;/P&gt;&lt;P&gt;NOTE: Deleting TMP00023.R570_7_6_2017_FB_TRUSTEE (memtype=DATA).&lt;BR /&gt;NOTE: The table VAPUBLIC.R570_7_6_2017_FB_TRUSTEE has been removed from the SAS LASR Analytic Server.&lt;BR /&gt;NOTE: PROCEDURE DATASETS used (Total process time):&lt;BR /&gt;real time 0.45 seconds&lt;BR /&gt;cpu&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;time 0.05 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: There were 202497 observations read from the data set WORK.R570_7_6_2017_FB_TRUSTEE.&lt;BR /&gt;NOTE: The data set TMP00023.R570_7_6_2017_FB_TRUSTEE has 202497 observations and 35 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 1.21 seconds&lt;BR /&gt;cpu&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;time 0.17 seconds&lt;/P&gt;&lt;P&gt;INFO: Registering /Public - No Logon/Fact_Book/Fact_Book_Data/ to /Shared Data/SAS Visual Analytics/Public/Visual Analytics Public&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;LASR library.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;NOTE: A total of 1 tables were analyzed for library "Visual Analytics Public LASR".&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;NOTE: Metadata for 0 tables was updated.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;NOTE: Metadata for 0 tables was added.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;NOTE: Metadata for 1 tables matched the data sources.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;NOTE: 0 tables listed in the SELECT or EXCLUDE statement&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;were&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;not found in either the metadata or the data source.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;NOTE: 0 other tables were not processed due to error or UPDATE_RULE.&lt;/FONT&gt;&lt;BR /&gt;NOTE: PROCEDURE METALIB used (Total process time):&lt;BR /&gt;real time 1.40 seconds&lt;BR /&gt;cpu&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;time 0.19 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: The data set WORK.UPLOAD_LASR_SMP_REPORT has 5 observations and 2 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;NOTE: There were 5 observations read from the data set WORK.UPLOAD_LASR_SMP_REPORT.&lt;BR /&gt;NOTE: PROCEDURE REPORT used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;time 0.01 seconds&lt;/P&gt;&lt;P&gt;NOTE: Libref TMP00023 has been&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;deassigned.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jan 2018 19:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/427334#M27532</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-01-12T19:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace a table in the LASR server using "Upload to LASR" code in EG 7.13/VA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/427592#M27544</link>
      <description>&lt;P&gt;To replace a LASR server table you first delete it, then upload the new table, then register the table in metadata. Are you able to provide the source code from the task you are using to confirm what it is doing? There are no obvious problems in the LOG notes that I can see.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 02:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/427592#M27544</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-01-15T02:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace a table in the LASR server using "Upload to LASR" code in EG 7.13/VA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428004#M27559</link>
      <description>&lt;P&gt;Thanks, SASkiwi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to programmatically&amp;nbsp;(from the Process Flow) update a table or as you mentioned, delete it, and then reload it without any manual interaction. I would like this to be scheduled and run.&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>Tue, 16 Jan 2018 14:01:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428004#M27559</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-01-16T14:01:22Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace a table in the LASR server using "Upload to LASR" code in EG 7.13/VA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428493#M27621</link>
      <description>&lt;P&gt;i use two macro's (one called from within another) to check&lt;BR /&gt;1. that the data set exists that i am going to upload to LASR&lt;BR /&gt;&amp;nbsp; if it doesnt (fails to be created), then i email myself&lt;BR /&gt;2. if it does exist, drop the current table in LASR&lt;BR /&gt;3. load the data from work to LASR&lt;BR /&gt;&lt;BR /&gt;here is the code i use.&amp;nbsp; the macro call at the bottom gets it all rolling:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;LIBNAME LASRLIB META Library="Visual Analytics Public LASR" METAOUT=DATA;&lt;/P&gt;&lt;P&gt;/* Remove existing table from LASR if loaded already */&lt;BR /&gt;%macro deletedsifexists(lib,name);&lt;BR /&gt;%if %sysfunc(exist(&amp;amp;lib..&amp;amp;name.)) %then %do;&lt;BR /&gt;%put DeletDSifExistsMacro;&lt;BR /&gt;proc datasets library=&amp;amp;lib. nolist;&lt;BR /&gt;delete &amp;amp;name.;&lt;BR /&gt;quit;&lt;BR /&gt;%end;&lt;BR /&gt;%mend deletedsifexists;&lt;/P&gt;&lt;P&gt;/*Macro to check to see if expected dataset exists and if so, then do stuff*/&lt;BR /&gt;%macro CheckResult(Slib,Sname,Tlib,Tname,email);&lt;BR /&gt;%PUT Source Data &amp;amp;Slib..&amp;amp;Sname.;&lt;BR /&gt;%PUT Target Data &amp;amp;Tlib..&amp;amp;Tname ;&lt;BR /&gt;%if %sysfunc(exist(&amp;amp;Slib..&amp;amp;Sname.)) %then %do;&lt;BR /&gt;%put CheckResultMacro;&lt;BR /&gt;%deletedsifexists(&amp;amp;Tlib, &amp;amp;Tname);&lt;/P&gt;&lt;P&gt;/* Loading through the SASIOLA Engine */&lt;BR /&gt;data &amp;amp;Tlib..&amp;amp;Tname ( );&lt;BR /&gt;set &amp;amp;Slib..&amp;amp;Sname ( );&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%else %do;&lt;BR /&gt;%put Expected dataset does not exists (&amp;amp;Slib..&amp;amp;Sname.), need to email someone;&lt;BR /&gt;filename mailbox email&lt;BR /&gt;TO=(&amp;amp;email)&lt;BR /&gt;FROM=('NoReply &amp;lt;NOREPLY@CompanyName.com&amp;gt;')&lt;BR /&gt;SENDER = ('NoReply &amp;lt;NOREPLY@CompanyName.com&amp;gt;')&lt;BR /&gt;IMPORTANCE='HIGH'&lt;BR /&gt;replyto='NOREPLY@CompanyName.com'&lt;BR /&gt;Subject='SAS VA Dataset Loading Failed';&lt;BR /&gt;&lt;BR /&gt;DATA _NULL_;&lt;BR /&gt;FILE Mailbox;&lt;BR /&gt;PUT "Greetings,";&lt;BR /&gt;PUT " This is a message from a SAS.";&lt;BR /&gt;PUT "Expected dataset does not exists (&amp;amp;Slib..&amp;amp;Sname.)";&lt;BR /&gt;PUT "may need to do something";&lt;BR /&gt;RUN;&lt;BR /&gt;%end;&lt;BR /&gt;%mend CheckResult;&lt;/P&gt;&lt;P&gt;/*SourceLib, SourceTab, TargetLib, TargeTab, email addresses*/&lt;BR /&gt;%CheckResult(work, TableNameInWork, LASRLIB, TableNameInLASR, 'person@CompanyName.com' );&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 17:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428493#M27621</guid>
      <dc:creator>utrocketeng</dc:creator>
      <dc:date>2018-01-17T17:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace a table in the LASR server using "Upload to LASR" code in EG 7.13/VA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428563#M27630</link>
      <description>&lt;P&gt;My approach is to use SAS code for this. The steps are:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library = lasrlib nolist;
  delete MyLASRTable;
run;
quit;

data lasrlib.MyLASRTable;
  set MySASTable;
run;

 proc metalib;
   omr (library = "LASRLIB");
   folder       = "MyLASRFolder";
   select       = ("MyLASRTable");
 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 19:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428563#M27630</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-01-17T19:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace a table in the LASR server using "Upload to LASR" code in EG 7.13/VA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428565#M27631</link>
      <description>&lt;P&gt;My approach is to use SAS code for this. The steps are:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets library = lasrlib nolist;
  delete MyLASRTable;
run;
quit;

data lasrlib.MyLASRTable;
  set MySASTable;
run;

 proc metalib;
   omr (library = "LASRLIB");
   folder       = "MyLASRFolder";
   select       = ("MyLASRTable");
 run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 19:32:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428565#M27631</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-01-17T19:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace a table in the LASR server using "Upload to LASR" code in EG 7.13/VA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428781#M27661</link>
      <description>&lt;P&gt;Thank you for the reply utrocketengineer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I do like&amp;nbsp;the functionality of what you are doing with the MACRO code. I wish I were more versed in MACRO coding. I have just haven't got there yet. I do understand what you are doing though and it makes sense. I will test it out here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;The simplicity of the previous contributor is also something I thought we should&amp;nbsp;be able to do and although it does lack some functionality compared to your example, it is efficient and effective.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;You have set the challenge for me though and I will endeavor to persevere!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 13:39:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428781#M27661</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-01-18T13:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace a table in the LASR server using "Upload to LASR" code in EG 7.13/VA</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428782#M27662</link>
      <description>&lt;P&gt;Thank you SASKiwi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried your code and was able to delete the table and load it back. The only issue I have is with this section;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt; &lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; metalib&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   omr &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;library &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"LASRLIB"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   folder       &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;"MyLASRFolder"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
   &lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt;       &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"MyLASRTable"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
 &lt;SPAN class="token procnames"&gt;run;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I receive&amp;nbsp;this error;&lt;/P&gt;&lt;P&gt;ERROR: No metadata objects found matching the specified URI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The question I guess is what folder do I list for "MyLASRFolder" I understand that "MyLASRServer" isn't what I should use, I did replace that with a folder on our LASR server. Actually, the table&amp;nbsp;I am working&amp;nbsp;with is in the folder&amp;nbsp;titled "Visual Analytics&amp;nbsp;Public LASR" which I used in your code example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc metalib;&lt;BR /&gt;omr (library = "LASRLIB");&lt;BR /&gt;&amp;nbsp;folder = "Visual Analytics Public LASR";&lt;BR /&gt;select = ("EOT_Data");&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank&amp;nbsp;you or the help. I really like&amp;nbsp;the simplicity of your code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 13:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Unable-to-replace-a-table-in-the-LASR-server-using-quot-Upload/m-p/428782#M27662</guid>
      <dc:creator>ghartge</dc:creator>
      <dc:date>2018-01-18T13:46:53Z</dc:date>
    </item>
  </channel>
</rss>

