<?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 search for SAS files in a drive in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-search-for-SAS-files-in-a-drive/m-p/536730#M147538</link>
    <description>&lt;P&gt;thank you! that worked!!&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 14:13:43 GMT</pubDate>
    <dc:creator>malena</dc:creator>
    <dc:date>2019-02-19T14:13:43Z</dc:date>
    <item>
      <title>How to search for SAS files in a drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-search-for-SAS-files-in-a-drive/m-p/535273#M146961</link>
      <description>&lt;P&gt;I am trying to get a list of all SAS files (with path names) on a drive and I am using the code that was I found on here of someone trying to do what I need to do- but I it is not working-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename search pipe 'for /r U:\REPI\population\saspop %i in (*.sas7bdat) do @findstr /i /m "obs=max" "%i"';&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;data search_results;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; infile search length=_len;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; input @1 filepath $varying512. _len;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: The infile SEARCH is:&lt;BR /&gt;Unnamed Pipe Access Device,&lt;BR /&gt;PROCESS=for /r U:\REPI\population\saspop %i in (*.sas7bdat) do @findstr /i /m "obs=max" "%i",&lt;BR /&gt;RECFM=V,LRECL=256&lt;/P&gt;
&lt;P&gt;NOTE: 0 records were read from the infile SEARCH.&lt;BR /&gt;NOTE: The data set WORK.SEARCH_RESULTS has 0 observations and 1 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 9:31.21&lt;BR /&gt;cpu time 0.06 seconds&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-search-for-SAS-files-in-a-drive/m-p/535273#M146961</guid>
      <dc:creator>malena</dc:creator>
      <dc:date>2019-02-13T16:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for SAS files in a drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-search-for-SAS-files-in-a-drive/m-p/535288#M146968</link>
      <description>What is your OS? Did you try the PIPE command on it's own to ensure it runs? Otherwise, try the simpler approach here: &lt;A href="https://support.sas.com/kb/45/805.html" target="_blank"&gt;https://support.sas.com/kb/45/805.html&lt;/A&gt;</description>
      <pubDate>Wed, 13 Feb 2019 16:51:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-search-for-SAS-files-in-a-drive/m-p/535288#M146968</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-13T16:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to search for SAS files in a drive</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-search-for-SAS-files-in-a-drive/m-p/536730#M147538</link>
      <description>&lt;P&gt;thank you! that worked!!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 14:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-search-for-SAS-files-in-a-drive/m-p/536730#M147538</guid>
      <dc:creator>malena</dc:creator>
      <dc:date>2019-02-19T14:13:43Z</dc:date>
    </item>
  </channel>
</rss>

