<?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 to promote remote LASR table  to  global level-scope CAS table? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/472901#M98</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Here is the result. I found the scope status showed "global" on the table which was promoted in sas environment manager. I'm curious about why table called&amp;nbsp; "VA_SAMPLE_TELCO03"&amp;nbsp; (which was&amp;nbsp; loaded in LASR Server) didn't show in the scope status result and I want to promote that table thru SAS code. The reason I want to using sas code to promote LASR table is that I would like to scheduled it thru crontab job on viya server to keep the data up-to-date.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Roy.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21372iB1ED514040A2243E/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jun 2018 08:37:04 GMT</pubDate>
    <dc:creator>ROY30426</dc:creator>
    <dc:date>2018-06-25T08:37:04Z</dc:date>
    <item>
      <title>How to promote remote LASR table  to  global level-scope CAS table?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/471968#M94</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;After reading this &lt;A href="https://blogs.sas.com/content/sgf/2017/10/26/tip-and-tricks-to-promote-cas-tables-from-session-scope-to-global-scope/" target="_self"&gt;blog&lt;/A&gt;, I have successfully promote my data from the disk or other Database . I have configured the connection between Viya and remote LASR server on SAS Environment Manager and It works fine if I promote the LASR table using&amp;nbsp;&lt;SPAN&gt;SAS Environment Manager . Now i'm trying to promote LASR table to CAS library with sas code and schedule it to update data daily.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anyone know how to do promote remote LASR table to CAS using sas code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Roy&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="未命名.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21306i14E2C27FEBA8E013/image-size/large?v=v2&amp;amp;px=999" role="button" title="未命名.png" alt="未命名.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 02:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/471968#M94</guid>
      <dc:creator>ROY30426</dc:creator>
      <dc:date>2018-06-21T02:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to promote remote LASR table  to  global level-scope CAS table?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/472046#M95</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/86820"&gt;@ROY30426&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=caspg&amp;amp;docsetTarget=cas-table-promote.htm&amp;amp;locale=en" target="_self"&gt;SAS® 9.4 and SAS® Viya® 3.3 Programming Documentation SAS Viya System Programming Guide -&amp;gt; promote Action&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:20:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/472046#M95</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-06-21T11:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to promote remote LASR table  to  global level-scope CAS table?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/472430#M96</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the code you mentioned before , but still failed to promote the table to global level. Below is the issue I'm trying to solve.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This is the CAS library connect to remote LASR server.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21330i8FFAB27ADE5956B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I want to promote LASR table :VA_SAMPLE_TELCO03(I can promote other LASR table using SAS environment manager on browser, but i want to promote it using sas code. )&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21331iB9A8289C4805CDEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;There is the error message when I using promote action.&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas mySession2 sessopts=(caslib=casuser timeout=1800 locale="en_US");
cas; 
caslib _all_ assign;

proc cas;
table.promote  /
caslib="valasr2"
drop=TRUE 
name="VA_SAMPLE_TELCO03"
target="lasr_test2"
targetLib="public"
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;DIV class="sasNote"&gt;NOTE: Active Session now MYSESSION2.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: There is no session-scope table VA_SAMPLE_TELCO03 in caslib valasr2 of Cloud Analytic Services.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: The action stopped due to errors.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;88 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;101&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Jun 2018 10:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/472430#M96</guid>
      <dc:creator>ROY30426</dc:creator>
      <dc:date>2018-06-22T10:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to promote remote LASR table  to  global level-scope CAS table?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/472454#M97</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/86820"&gt;@ROY30426&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to review an output from the following piece of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=valasr2._all_ nods; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jun 2018 12:33:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/472454#M97</guid>
      <dc:creator>alexal</dc:creator>
      <dc:date>2018-06-22T12:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to promote remote LASR table  to  global level-scope CAS table?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/472901#M98</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/41748"&gt;@alexal&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Here is the result. I found the scope status showed "global" on the table which was promoted in sas environment manager. I'm curious about why table called&amp;nbsp; "VA_SAMPLE_TELCO03"&amp;nbsp; (which was&amp;nbsp; loaded in LASR Server) didn't show in the scope status result and I want to promote that table thru SAS code. The reason I want to using sas code to promote LASR table is that I would like to scheduled it thru crontab job on viya server to keep the data up-to-date.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Roy.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/21372iB1ED514040A2243E/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jun 2018 08:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/472901#M98</guid>
      <dc:creator>ROY30426</dc:creator>
      <dc:date>2018-06-25T08:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to promote remote LASR table  to  global level-scope CAS table?</title>
      <link>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/473803#M99</link>
      <description>&lt;P&gt;If you are OK using PROC CAS and CASL, then check the output of the table.fileInfo action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc cas;
  table.fileInfo / caslib="valasr2";
quit;&lt;/PRE&gt;
&lt;P&gt;That should list the tables that are in-memory on your LASR server.&amp;nbsp; Those are the candidates to transfer into CAS with the table.loadTable action.&amp;nbsp; This might do it, assuming you find VA_SAMPLE_TELCO03 in the results of the fileInfo action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc cas;
  table.loadTable /
    file="VA_SAMPLE_TELCO03"
    caslib="valasr2"
    /* I assume you want to rename the table to LASR_TEST2... */
    casOut={name="lasr_test2" caslib="public"};
run;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 16:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/How-to-promote-remote-LASR-table-to-global-level-scope-CAS-table/m-p/473803#M99</guid>
      <dc:creator>MikeMcKiernan</dc:creator>
      <dc:date>2018-06-27T16:13:34Z</dc:date>
    </item>
  </channel>
</rss>

