<?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: Cannot see the tables within caslib using Viya GUI in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/Cannot-see-the-tables-within-caslib-using-Viya-GUI/m-p/833286#M1495</link>
    <description>&lt;P&gt;Within a CASlib there are two areas for data:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the physical area, this is where you see files like .sashdat files or DBMS tables, this is referred to as files no matter the type of source&lt;/LI&gt;
&lt;LI&gt;the in memory area, so a file loaded in to memory, this is referred to as table&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Using the CAS libname engine you can only see the tables (data loaded into memory) but not the files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To have a look at both, you can use the code below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc casutil incaslib="Public";
list files;
list tables;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The way you loaded the data into memory created a session scope table, so it is only visible to the specific CAS session that created the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a global scope table (promoted table) use this code sample:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc casutil ;
  /* need to drop a global scoped table */
  droptable incaslib="Public" casdata="cars" quiet;
  /* now load the table, in this we use a SAS data set */
  load data=sashelp.cars outcaslib="Public" casout="cars" promote;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 14 Sep 2022 08:24:37 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2022-09-14T08:24:37Z</dc:date>
    <item>
      <title>Cannot see the tables within caslib using Viya GUI</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Cannot-see-the-tables-within-caslib-using-Viya-GUI/m-p/833263#M1494</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;&lt;SPAN&gt;I cannot see all the tables inside a caslib I already created on the Viya GUI.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I click on "Manage Environment" -&amp;gt; "Data" -&amp;gt; "Data Sources" -&amp;gt; the appropriate server name -&amp;gt; the specific caslib of interest, I can see all the unloaded tables within that caslib, as well as the caslib's attributes (e.g. name, description, server,&amp;nbsp;source type, personal, odbc dsn, schema, catalog, authetication domain).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when I try listing all the tables inside the caslib in the code editor (see codes below) or use the Viya GUI ("SAS Develop Codes" -&amp;gt; "Libraries" -&amp;gt; the caslib of interest), I see no tables listed:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;libname mycas cas caslib="CAS_LIB_OF_INTEREST";&lt;BR /&gt;proc datasets lib=mycas;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In fact, in the log, I get "WARNING: No matching members in directory."&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;Could you please let me know what's happening?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Observation 1. I will get the following, after running&amp;nbsp;&lt;EM&gt;caslib "CAS_LIB_OF_INTEREST" list;&amp;nbsp;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class=""&gt;NOTE: Session = MYSESSION Name =&amp;nbsp;&lt;SPAN&gt;CAS_LIB_OF_INTEREST&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Type = odbc&lt;/DIV&gt;&lt;DIV class=""&gt;Description =&lt;/DIV&gt;&lt;DIV class=""&gt;Path =&lt;/DIV&gt;&lt;DIV class=""&gt;Definition = authenticationDomain = 'NZAuth'&lt;/DIV&gt;&lt;DIV class=""&gt;Subdirs = No&lt;/DIV&gt;&lt;DIV class=""&gt;Local = No&lt;/DIV&gt;&lt;DIV class=""&gt;Active = No&lt;/DIV&gt;&lt;DIV class=""&gt;Personal = No&lt;/DIV&gt;&lt;DIV class=""&gt;Definition = catalog = '*'&lt;/DIV&gt;&lt;DIV class=""&gt;Definition = odbc_dsn = 'ODBC_DSN_OF_INTEREST'&lt;/DIV&gt;&lt;DIV class=""&gt;Definition = schema = 'SCHEMA_OF_INTEREST'&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;STRONG&gt;Observation 2. I also loaded the tables in memory:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;proc casutil;&lt;BR /&gt;load casdata="TABLE_OF_INTEREST" incaslib="SOME_CASLIB"&lt;BR /&gt;outcaslib ="myCaslib" casout ="TABLE_OF_INTEREST" replace;&lt;BR /&gt;quit;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;NOTE: Cloud Analytic Services made the external data from TABLE_OF_INTEREST available as table&lt;/DIV&gt;&lt;DIV class=""&gt;TABLE_OF_INTEREST in caslib myCaslib.&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: The Cloud Analytic Services server processed the request in 16.096784 seconds.&lt;/DIV&gt;&lt;DIV class=""&gt;86 quit;&lt;/DIV&gt;&lt;DIV class=""&gt;NOTE: PROCEDURE CASUTIL used (Total process time):&lt;/DIV&gt;&lt;DIV class=""&gt;real time 16.43 seconds&lt;/DIV&gt;&lt;DIV class=""&gt;cpu time 2.37 seconds&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Sep 2022 01:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Cannot-see-the-tables-within-caslib-using-Viya-GUI/m-p/833263#M1494</guid>
      <dc:creator>marathon2</dc:creator>
      <dc:date>2022-09-14T01:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot see the tables within caslib using Viya GUI</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Cannot-see-the-tables-within-caslib-using-Viya-GUI/m-p/833286#M1495</link>
      <description>&lt;P&gt;Within a CASlib there are two areas for data:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the physical area, this is where you see files like .sashdat files or DBMS tables, this is referred to as files no matter the type of source&lt;/LI&gt;
&lt;LI&gt;the in memory area, so a file loaded in to memory, this is referred to as table&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Using the CAS libname engine you can only see the tables (data loaded into memory) but not the files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To have a look at both, you can use the code below:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc casutil incaslib="Public";
list files;
list tables;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The way you loaded the data into memory created a session scope table, so it is only visible to the specific CAS session that created the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a global scope table (promoted table) use this code sample:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc casutil ;
  /* need to drop a global scoped table */
  droptable incaslib="Public" casdata="cars" quiet;
  /* now load the table, in this we use a SAS data set */
  load data=sashelp.cars outcaslib="Public" casout="cars" promote;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Sep 2022 08:24:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Cannot-see-the-tables-within-caslib-using-Viya-GUI/m-p/833286#M1495</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2022-09-14T08:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot see the tables within caslib using Viya GUI</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Cannot-see-the-tables-within-caslib-using-Viya-GUI/m-p/833348#M1496</link>
      <description>&lt;P&gt;Thank you! I am trying to promote the table. However, I got an error saying I can't promote the table because I am working in a local session. So I added an extra argument in red, which gave me an error (&lt;SPAN&gt;ERROR: The CASLIB statement = parameter is invalid or missing. Correct the statement parameter&lt;/SPAN&gt;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;%LET caslib_path = "/disk/path...";&lt;BR /&gt;caslib myCaslib datasource=(srctype="path") path=&amp;amp;caslib_path sessref=mySession LIBREF= myCaslib &lt;FONT color="#FF0000"&gt;local= No;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;However, running the above codes gave me an error:&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;/*4. load data into memory*/&lt;BR /&gt;proc casutil;&lt;BR /&gt;load casdata="TABLE_OF_INTEREST" incaslib= "MyCaslib"&lt;BR /&gt;outcaslib = "OUT_CASLIB_NAME" casout ="TABLE_OF_INTEREST"&amp;nbsp; promote;&lt;BR /&gt;run;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;*errors are as below;&lt;/P&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;ERROR: You cannot promote an output table to a session-local caslib.&lt;/DIV&gt;&lt;DIV class="lia-indent-padding-left-60px"&gt;ERROR: The action stopped due to errors.&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Sep 2022 14:33:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Cannot-see-the-tables-within-caslib-using-Viya-GUI/m-p/833348#M1496</guid>
      <dc:creator>marathon2</dc:creator>
      <dc:date>2022-09-14T14:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot see the tables within caslib using Viya GUI</title>
      <link>https://communities.sas.com/t5/SAS-Viya/Cannot-see-the-tables-within-caslib-using-Viya-GUI/m-p/833350#M1497</link>
      <description>In your first post you mentioned that you already created the caslib, there is not need to create the caslib again using the CASLIB statement. The CASLIB statement has the options SESSION (default) to create a session caslib or GLOBAL to create a global scope caslib. To promote a table the target caslib has to have a global scope.&lt;BR /&gt;&lt;BR /&gt;Please note, by default only SASAdministrators can create global scoped caslibs.&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Sep 2022 14:52:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/Cannot-see-the-tables-within-caslib-using-Viya-GUI/m-p/833350#M1497</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2022-09-14T14:52:48Z</dc:date>
    </item>
  </channel>
</rss>

