<?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 view all tables and its variable names, type and length in a library? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366877#M87306</link>
    <description>tHANKS alot. This is the code that i want. I need the data that i got from the dictionary. Now i can store it in my own dataset.</description>
    <pubDate>Wed, 14 Jun 2017 08:35:09 GMT</pubDate>
    <dc:creator>imdickson</dc:creator>
    <dc:date>2017-06-14T08:35:09Z</dc:date>
    <item>
      <title>How to view all tables and its variable names, type and length in a library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366826#M87282</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to view all tables and its variable names, type and length in a library?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The registered library name is CDSSTG. Currently it has alot of SAS Datasets in it and each of the tables has its own Columns, type and length.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried proc contents:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=CDSSTG._all_ nods; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I also tried proc datasets:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=CDSSTG;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i am not getting the full columns attributes.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/9409iA23B1785BC562085/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="proc contents.PNG" title="proc contents.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Need your guidance. Also, i would like to list the full list, not just limited to 10 rows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 03:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366826#M87282</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2017-06-14T03:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to view all tables and its variable names, type and length in a library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366827#M87283</link>
      <description>Guys, when i remove nods in proc contents, it will show the table variables(full column names, type, and length) but it is only limited to 10 tables. May i know if there is a way to show all tables instead of the first 10?</description>
      <pubDate>Wed, 14 Jun 2017 03:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366827#M87283</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2017-06-14T03:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to view all tables and its variable names, type and length in a library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366834#M87288</link>
      <description>&lt;P&gt;You need to use the&amp;nbsp;dictionary it seems.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi31/259-31.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi31/259-31.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 04:09:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366834#M87288</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-06-14T04:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to view all tables and its variable names, type and length in a library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366870#M87301</link>
      <description>Hey, in proc sql, when i put create table name as ( , it will show error.&lt;BR /&gt;&lt;BR /&gt;my current code is :&lt;BR /&gt;&lt;BR /&gt;select name,memname&lt;BR /&gt;INTO:Name1-:Name%left(&amp;amp;NObs) ,:Table&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where libname = 'CDSSTG';&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;i would like to put this data into a sas dataset. Is there a way?</description>
      <pubDate>Wed, 14 Jun 2017 07:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366870#M87301</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2017-06-14T07:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to view all tables and its variable names, type and length in a library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366873#M87303</link>
      <description>&lt;P&gt;You are mixing up usages here, clarify what you wat to do. &amp;nbsp;In the code you provide you are creating macro variables for each column. &amp;nbsp;From your original description you want dataset which holds all the metadata from that library - this already exists in the form of the SASHELP library (dictionarys is the SQL version of the same thing), so to get what you originally wanted then:&lt;/P&gt;
&lt;PRE&gt;data want;
  set sashelp.vcolumn (where=(libname="CDSSTG"));
run;&lt;/PRE&gt;
&lt;P&gt;This wil create a dataset want with all the column metadata. &amp;nbsp;If you can provide more clarified information as to what you want this can be adapted. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2017 08:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366873#M87303</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-14T08:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to view all tables and its variable names, type and length in a library?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366877#M87306</link>
      <description>tHANKS alot. This is the code that i want. I need the data that i got from the dictionary. Now i can store it in my own dataset.</description>
      <pubDate>Wed, 14 Jun 2017 08:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-view-all-tables-and-its-variable-names-type-and-length-in/m-p/366877#M87306</guid>
      <dc:creator>imdickson</dc:creator>
      <dc:date>2017-06-14T08:35:09Z</dc:date>
    </item>
  </channel>
</rss>

