<?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 list the earliest and latest file in a directory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833623#M329559</link>
    <description>If it's SAS data sets, it's slightly easier as you can assign a library and the information is in sashelp.vtable already for you to parse.</description>
    <pubDate>Thu, 15 Sep 2022 15:00:48 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2022-09-15T15:00:48Z</dc:date>
    <item>
      <title>how to list the earliest and latest file in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833387#M329442</link>
      <description>&lt;P&gt;hello all sas experts:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i have a folder that stored a lot of datasets from different years. the dataset are: Cinfo2004 to Cinfo2021, Ginfo2006 to Ginfo2021, Ginfo_Geocode2010 to Ginfo_Geocode2021.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to create a sas code to list all data files in the directory by providing the earliest and latest years for each type of the dataset. for example Cinfo’s earliest year is 2004 and the latest is 2021 and Ginfo's earliest year is 2006 and the latest is 2021.&lt;/P&gt;
&lt;P&gt;i know there is a way to write a sas code to pull out these information but don't know how to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 17:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833387#M329442</guid>
      <dc:creator>juliajulia</dc:creator>
      <dc:date>2022-09-14T17:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to list the earliest and latest file in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833388#M329443</link>
      <description>&lt;P&gt;Are these SAS data sets or some other file type?&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 17:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833388#M329443</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-14T17:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to list the earliest and latest file in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833390#M329444</link>
      <description>&lt;P&gt;You can read all the file names in a folder into a SAS data set.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-to-List-all-the-files-in-a-folder/td-p/674065" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/How-to-List-all-the-files-in-a-folder/td-p/674065&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;From there you can pick the ones you want.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 18:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833390#M329444</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-14T18:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to list the earliest and latest file in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833618#M329557</link>
      <description>&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 14:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833618#M329557</guid>
      <dc:creator>juliajulia</dc:creator>
      <dc:date>2022-09-15T14:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to list the earliest and latest file in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833623#M329559</link>
      <description>If it's SAS data sets, it's slightly easier as you can assign a library and the information is in sashelp.vtable already for you to parse.</description>
      <pubDate>Thu, 15 Sep 2022 15:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-list-the-earliest-and-latest-file-in-a-directory/m-p/833623#M329559</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-09-15T15:00:48Z</dc:date>
    </item>
  </channel>
</rss>

