<?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 retrieve these information of a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353835#M82645</link>
    <description>&lt;P&gt;Thank you, Reeza. &amp;nbsp;You have added to my knowledge today.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Apr 2017 18:18:03 GMT</pubDate>
    <dc:creator>thomp7050</dc:creator>
    <dc:date>2017-04-26T18:18:03Z</dc:date>
    <item>
      <title>How to retrieve these information of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353780#M82606</link>
      <description>&lt;P&gt;Hi everyone, I'm using SAS 9.3.&lt;/P&gt;&lt;P&gt;Does anyone have&amp;nbsp;suggestions&amp;nbsp;to retrieve "label", "size in byte", "observations (total rows)" and "created date" of a dataset, and also print it out?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:23:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353780#M82606</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2017-04-26T16:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve these information of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353782#M82607</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE COLNAMES AS SELECT * 
FROM DICTIONARY.COLUMNS 
LEFT JOIN DICTIONARY.TABLES TABLES ON TABLES.MEMNAME = COLUMNS.MEMNAME
WHERE TABLES.MEMNAME = 'FLARM';
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;To get the total number of answers, you may want to create a looping macro to select count(case when col1 is not null then 1 else 0 end) for each of the variables, depending on their data type, and update your columns table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 16:25:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353782#M82607</guid>
      <dc:creator>thomp7050</dc:creator>
      <dc:date>2017-04-26T16:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve these information of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353834#M82644</link>
      <description>&lt;P&gt;To add to&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138866"&gt;@thomp7050&lt;/a&gt;&amp;nbsp;correct answer, use SASHELP.Vtable for information on a dataset and SASHELP.vcolumn for information on variables within a specific dataset. These are also known as dictionary.table and dictionary.column but you can't navigate to those, so I use the SASHELP convention to denote this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 18:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353834#M82644</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-26T18:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve these information of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353835#M82645</link>
      <description>&lt;P&gt;Thank you, Reeza. &amp;nbsp;You have added to my knowledge today.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 18:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353835#M82645</guid>
      <dc:creator>thomp7050</dc:creator>
      <dc:date>2017-04-26T18:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve these information of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353953#M82691</link>
      <description>&lt;P&gt;Thanks for your suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'd like to print the label on dataset (shown as below), not column label.&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/8572iCB6FD99483F04F0C/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="未命名.png" title="未命名.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to create another dataset to save "label on dataset as above", file size, created date, and observations?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 01:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353953#M82691</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2017-04-27T01:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve these information of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353968#M82700</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you look at SAS.VTABLE? The field called memlabel holds the label. This works for my example below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test (label='mydata');
set sashelp.class;
run;


PROC SQL;
CREATE TABLE info AS 
SELECT * 
FROM SASHELP.VTABLE
WHERE libname='WORK' and MEMNAME = 'TEST';
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Apr 2017 03:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/353968#M82700</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-04-27T03:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to retrieve these information of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/354790#M83039</link>
      <description>Many thanks for your resolution.&lt;BR /&gt;I am not good at proc SQL, actually.&lt;BR /&gt;&lt;BR /&gt;JC</description>
      <pubDate>Sun, 30 Apr 2017 06:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-retrieve-these-information-of-a-dataset/m-p/354790#M83039</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2017-04-30T06:38:43Z</dc:date>
    </item>
  </channel>
</rss>

