<?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: Data does not appear in in SAS Viya in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Data-does-not-appear-in-in-SAS-Viya/m-p/737535#M9944</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/362267"&gt;@adjie&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to access an in-memory table from another SAS Viya application such as VA or Environment Manager, you need to "promote" the table so that it has "global" scope. For example, you can do this by using the DATA step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data public.pd_sampled(promote=yes);
   set public.pd_sampled;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you can use the table.promote action directly:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cas;
	action table.promote /
		caslib='public',
		table='pd_sampled';
	run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;By default, in-memory CAS tables have "session" scope, meaning that they are available only within the specific CAS session that you are working with. So to make a table available in a different CAS session (the new CAS session that is created when you use VA), you need to promote the table to be global scope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that take care of the issue?&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;-Brian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Apr 2021 10:59:56 GMT</pubDate>
    <dc:creator>BrianGaines</dc:creator>
    <dc:date>2021-04-28T10:59:56Z</dc:date>
    <item>
      <title>Data does not appear in in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Data-does-not-appear-in-in-SAS-Viya/m-p/737516#M9943</link>
      <description>&lt;P&gt;Hi, i'm trying to perform oversampling on SAS Studio. Before performing the oversampling, I have create cas session to connect with the libraries, here is the code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas casauto host="example.host" port=5570;
proc cas;
	session casauto;
	session.sessionstatus result=s;
	put s;
run;

CASLIB _ALL_ assign;
options casdatalimit=50G;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After that, i performed the oversampling and it worked just fine without any errors.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="adjie_0-1619603023241.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/58761i37A7CDB55D75BF16/image-size/medium?v=v2&amp;amp;px=400" role="button" title="adjie_0-1619603023241.png" alt="adjie_0-1619603023241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see the output table is already listed on the public library. But when I tried to look for the table from SAS VA or Environment Manager the table doesn't appear. This issue also happened before when I ran a query file, the output table is listed on the library in SAS Studio but I couldn't find the table when I tried to add the data to SAS VA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did I miss anything?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 09:51:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Data-does-not-appear-in-in-SAS-Viya/m-p/737516#M9943</guid>
      <dc:creator>adjie</dc:creator>
      <dc:date>2021-04-28T09:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Data does not appear in in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Data-does-not-appear-in-in-SAS-Viya/m-p/737535#M9944</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/362267"&gt;@adjie&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In order to access an in-memory table from another SAS Viya application such as VA or Environment Manager, you need to "promote" the table so that it has "global" scope. For example, you can do this by using the DATA step:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data public.pd_sampled(promote=yes);
   set public.pd_sampled;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you can use the table.promote action directly:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc cas;
	action table.promote /
		caslib='public',
		table='pd_sampled';
	run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;By default, in-memory CAS tables have "session" scope, meaning that they are available only within the specific CAS session that you are working with. So to make a table available in a different CAS session (the new CAS session that is created when you use VA), you need to promote the table to be global scope.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does that take care of the issue?&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;-Brian&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 10:59:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Data-does-not-appear-in-in-SAS-Viya/m-p/737535#M9944</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2021-04-28T10:59:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data does not appear in in SAS Viya</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Data-does-not-appear-in-in-SAS-Viya/m-p/738507#M9959</link>
      <description>Yes, this solves the problem. Thanks.</description>
      <pubDate>Mon, 03 May 2021 07:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Data-does-not-appear-in-in-SAS-Viya/m-p/738507#M9959</guid>
      <dc:creator>adjie</dc:creator>
      <dc:date>2021-05-03T07:39:00Z</dc:date>
    </item>
  </channel>
</rss>

