<?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: Viewing properties of multiple datasets in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Viewing-properties-of-multiple-datasets/m-p/182841#M46539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at SASHELP.VTABLE or PROC DATASETS if all the files are in a specific library. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming your datasets start with YEAR. Note the where condition comparisons are case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table row_counts as&lt;/P&gt;&lt;P&gt;select libname, name, nobs &lt;/P&gt;&lt;P&gt;from sashelp.vtable&lt;/P&gt;&lt;P&gt;where libname='WORK' and upcase(memname) like 'YEAR%';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Jan 2015 17:07:13 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-01-14T17:07:13Z</dc:date>
    <item>
      <title>Viewing properties of multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Viewing-properties-of-multiple-datasets/m-p/182840#M46538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 5 years' worth of datasets where I need to get the number of records (rows) for each dataset and put it in an Excel sheet .&amp;nbsp; Is there a quick way or a script that can pull this information?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, I have to do a right click on each dataset, view properties, copy and paste the information into Excel.&amp;nbsp; I could write a sas script and type in all the datasets' name but that would take equally long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 16:47:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Viewing-properties-of-multiple-datasets/m-p/182840#M46538</guid>
      <dc:creator>emveee</dc:creator>
      <dc:date>2015-01-14T16:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing properties of multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Viewing-properties-of-multiple-datasets/m-p/182841#M46539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at SASHELP.VTABLE or PROC DATASETS if all the files are in a specific library. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming your datasets start with YEAR. Note the where condition comparisons are case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table row_counts as&lt;/P&gt;&lt;P&gt;select libname, name, nobs &lt;/P&gt;&lt;P&gt;from sashelp.vtable&lt;/P&gt;&lt;P&gt;where libname='WORK' and upcase(memname) like 'YEAR%';&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 17:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Viewing-properties-of-multiple-datasets/m-p/182841#M46539</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-01-14T17:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: Viewing properties of multiple datasets</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Viewing-properties-of-multiple-datasets/m-p/182842#M46540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Genius!&amp;nbsp; I made some minor modifications but it worked really well!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jan 2015 17:18:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Viewing-properties-of-multiple-datasets/m-p/182842#M46540</guid>
      <dc:creator>emveee</dc:creator>
      <dc:date>2015-01-14T17:18:38Z</dc:date>
    </item>
  </channel>
</rss>

