<?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 do I subset a library so that it no longer contains views and just tables? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926822#M364749</link>
    <description>&lt;P&gt;I would like dbms_memtype not the memtype data. I would just like the library changed to just include those tables. Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2024 16:40:32 GMT</pubDate>
    <dc:creator>kyle234</dc:creator>
    <dc:date>2024-05-02T16:40:32Z</dc:date>
    <item>
      <title>How do I subset a library so that it no longer contains views and just tables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926805#M364736</link>
      <description>&lt;P&gt;I have a library and I want just the tables and not the views in the library. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 15:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926805#M364736</guid>
      <dc:creator>kyle234</dc:creator>
      <dc:date>2024-05-02T15:22:37Z</dc:date>
    </item>
    <item>
      <title>How do I create a new library from a library on a where statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926780#M364780</link>
      <description>&lt;P&gt;I have a library that I want to subset to only include tables that are dbms_memtype='table'. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 13:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926780#M364780</guid>
      <dc:creator>kyle234</dc:creator>
      <dc:date>2024-05-02T13:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subset a library so that it no longer contains views and just tables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926807#M364737</link>
      <description>&lt;P&gt;I've never done it, but &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/p1arud59qlaom1n15ol8c9h2u5uj.htm" target="_self"&gt;documentation&lt;/A&gt; from PROC DATASETS appears you can set MEMTYPE to view. I don't have time to test it either, so someone else may know better.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next question would be what you want to do with it. Delete? Move?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 15:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926807#M364737</guid>
      <dc:creator>maguiremq</dc:creator>
      <dc:date>2024-05-02T15:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subset a library so that it no longer contains views and just tables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926817#M364745</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/464755"&gt;@kyle234&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a library and I want just the tables and not the views in the library. Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean by "want"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to make a list of the table names?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to delete the views?&lt;/P&gt;
&lt;P&gt;Do you want the views to somehow disappear from the GUI list of tables but not actually be deleted?&amp;nbsp; Why?&amp;nbsp; What GUI tool are you using? SAS/Studio? Something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the libref pointing at actual SAS datasets and SAS views?&amp;nbsp; You can check DICTIONARY.MEMBERS to tell what type of file each member in the library is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or is the libref pointing at an external database like Oracle?&amp;nbsp; If the later then how you can tell if a "table" in the library is actually a view would probably depend on what database you are using.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 16:19:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926817#M364745</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-05-02T16:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subset a library so that it no longer contains views and just tables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926819#M364746</link>
      <description>&lt;P&gt;There is a library is SAS currently with table want the library to only have view tables. Not sure if that means copy into new library. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 16:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926819#M364746</guid>
      <dc:creator>kyle234</dc:creator>
      <dc:date>2024-05-02T16:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subset a library so that it no longer contains views and just tables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926820#M364747</link>
      <description>As far as I know you cannot limit a library to just views or tables. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 02 May 2024 16:38:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926820#M364747</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2024-05-02T16:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subset a library so that it no longer contains views and just tables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926822#M364749</link>
      <description>&lt;P&gt;I would like dbms_memtype not the memtype data. I would just like the library changed to just include those tables. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 16:40:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926822#M364749</guid>
      <dc:creator>kyle234</dc:creator>
      <dc:date>2024-05-02T16:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subset a library so that it no longer contains views and just tables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926829#M364754</link>
      <description>&lt;P&gt;A SAS libref points to a location that stores stuff (tables, views, catalogs, etc.)&amp;nbsp; That location could be a folder on Windows, a directory on linux, a database schema, or many other types of locations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if your libref is pointing to, say, a&amp;nbsp; directory, and you have both tables and views in that directory, then the library will have tables and views in it.&amp;nbsp; If you don't want views to be in the library, you would need to move them from that location.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, your goal isn't really clear to me.&amp;nbsp; It might help if you describe your current situation.&amp;nbsp; What OS are you using? Where are the tables and views stored? How did you create the libref that points to the library (can you show the LIBNAME statement)? Why don't you want the views to be in the library?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2024 17:55:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926829#M364754</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2024-05-02T17:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subset a library so that it no longer contains views and just tables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926830#M364755</link>
      <description>Workaround, create a new library that has only views that points to only tables in the library. Run it every x hours to have it updated (data will not update, only view definitions).</description>
      <pubDate>Thu, 02 May 2024 18:01:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926830#M364755</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2024-05-02T18:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I subset a library so that it no longer contains views and just tables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926832#M364756</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/464755"&gt;@kyle234&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I would like dbms_memtype not the memtype data. I would just like the library changed to just include those tables. Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What is the DBMS?&amp;nbsp; You might try adding the DB_OBJECTS=TABLES option to your LIBNAME statement that defines the "library".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE class="xis-tgroup" cellspacing="0"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-first"&gt;
&lt;DIV class="xis-paraTableFirst"&gt;&lt;A tabindex="0" href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p0nlg0qncay8qjn18g56mpw2bkzi.htm" target="_blank"&gt;DB_OBJECTS= LIBNAME Option&lt;/A&gt;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD class="xis-first"&gt;
&lt;DIV class="xis-syntaxSimple"&gt;&lt;SPAN class="xis-keyword"&gt;DB_OBJECTS=&lt;/SPAN&gt;&lt;SPAN class="xis-argRequired"&gt;TABLES | VIEWS | SYNONYMS | PUBLIC_SYNONYMS | ALL&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="xis-paraTable"&gt;Specifies which database objects to return with PROC DATASETS or in SAS Explorer.&lt;/DIV&gt;
&lt;DIV class="xis-paraTable"&gt;Product: SAS/ACCESS for Relational Databases&lt;/DIV&gt;
&lt;DIV class="xis-paraTable"&gt;Document:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="xis-bookTitle"&gt;SAS/ACCESS for Relational Databases: Reference&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 02 May 2024 18:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926832#M364756</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-05-02T18:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a new library from a library on a where statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926869#M364781</link>
      <description>proc copy in=in out=out memtype=data;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;could only copy sas datasets from IN libname to OUT libname.</description>
      <pubDate>Fri, 03 May 2024 05:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-subset-a-library-so-that-it-no-longer-contains-views/m-p/926869#M364781</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-05-03T05:21:06Z</dc:date>
    </item>
  </channel>
</rss>

