<?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 Quickly get the variable names from datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577072#M163461</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I received 30 plus SAS datasets and want to quickly retrieve all the variable names of each datasets&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a quick way to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks as always&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2019 20:09:56 GMT</pubDate>
    <dc:creator>zimcom</dc:creator>
    <dc:date>2019-07-26T20:09:56Z</dc:date>
    <item>
      <title>Quickly get the variable names from datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577072#M163461</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I received 30 plus SAS datasets and want to quickly retrieve all the variable names of each datasets&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a quick way to do this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks as always&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577072#M163461</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2019-07-26T20:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Quickly get the variable names from datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577075#M163463</link>
      <description>Sure, create a libname to the folder and use SASHELP.VCOLUMN with the lists of all variables.</description>
      <pubDate>Fri, 26 Jul 2019 20:19:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577075#M163463</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-26T20:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Quickly get the variable names from datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577078#M163465</link>
      <description>&lt;P&gt;&lt;SPAN&gt;SASHELP.VCOLUMN&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using SAS 9.4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577078#M163465</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2019-07-26T20:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Quickly get the variable names from datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577080#M163467</link>
      <description>&lt;P&gt;This will give you a little more than what you are requesting, but you will probably find it all useful:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname me 'path to folder holding your SAS data sets';

proc contents data=me._all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577080#M163467</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-07-26T20:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Quickly get the variable names from datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577081#M163468</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select *
from sashelp.vcolumn 
where libname = "LIBNAME";
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I'm assuming you do know how to create a library references. Replace the libname in quotes with the libname you use in upper case and that should work. SASHELP is a default library available and you can navigate to the data sets to see what they contain.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/219549"&gt;@zimcom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;SASHELP.VCOLUMN&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;how?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am using SAS 9.4&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:26:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577081#M163468</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-26T20:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Quickly get the variable names from datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577083#M163470</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THANK YOU BOTH, HAVE A GREAT WEEKEND!!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 20:27:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quickly-get-the-variable-names-from-datasets/m-p/577083#M163470</guid>
      <dc:creator>zimcom</dc:creator>
      <dc:date>2019-07-26T20:27:25Z</dc:date>
    </item>
  </channel>
</rss>

