<?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 Searching SAS files (including key words) in Windows 7 in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17904#M3463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is only necessary if you wanted to perform the search through sas and have the results returned in a data set.&amp;nbsp; Also there is a typo in my code len=_len should read length=_len.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Sep 2011 19:38:04 GMT</pubDate>
    <dc:creator>FriedEgg</dc:creator>
    <dc:date>2011-09-27T19:38:04Z</dc:date>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17896#M3455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to search my network drive for SAS programs that have a key word I'm looking for.&amp;nbsp; When I was running XP, i could do a search such as *.*sas and it would prompt me for any word I wanted to include in the contents of the file.&amp;nbsp; If I typed "PROC IMPORT" (without the double quotes) I would get all SAS programs that had PROC IMPORT in the program.&amp;nbsp; I have no such luck in Windows 7.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 16:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17896#M3455</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2011-09-27T16:34:22Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17897#M3456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, the same problem existed in XP, but you apparently had SAS identified as a valid search extension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still on XP and had to look up how to correct the matter.&amp;nbsp; For anyone interested, you can find the solutions (I chose the one at the bottom of the page that didn't require playing with the registry:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.dslreports.com/faq/9500"&gt;http://www.dslreports.com/faq/9500&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, while I haven't had much experience with Windows 7, I think that you may be able to find the solution at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://helpdeskgeek.com/windows-7/windows-7-file-search-indexing-options/"&gt;http://helpdeskgeek.com/windows-7/windows-7-file-search-indexing-options/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let the forum know if that corrected the situation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 17:34:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17897#M3456</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-27T17:34:52Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17898#M3457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default, the Windows 7 search will not examine the contents of the file and the indexing that Art is referring to only works on the file name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a better link on how to search file contents with Windows 7:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://lifehacker.com/5666506/set-windows-7-search-to-always-index-file-contents"&gt;http://lifehacker.com/5666506/set-windows-7-search-to-always-index-file-contents&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 17:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17898#M3457</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2011-09-27T17:57:33Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17899#M3458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I'm trying the step in the first post but in the 2nd post I can't find "enabling universal content search" in the Search tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 18:07:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17899#M3458</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2011-09-27T18:07:25Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17900#M3459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would think that my translate to the "always search file names and contents (this might take several minutes)" option on the search options menu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 18:13:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17900#M3459</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-27T18:13:16Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17901#M3460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I ran into a similar problem and my solution was to build a SAS macro that would search within sas programs to find the string. &lt;/P&gt;&lt;P&gt; Here is a link to the macro that my colleague and I wrote.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.torsas.ca/attachments/File/09162011/macro-that-hunts.txt"&gt;http://www.torsas.ca/attachments/File/09162011/macro-that-hunts.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be able to put in the drive/directory you want to search, the file type (in this case .sas) and the string you want to look for.&amp;nbsp; Keep the proc printto statements as we found the macro ran a lot faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps and is what you are looking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 18:37:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17901#M3460</guid>
      <dc:creator>PLee</dc:creator>
      <dc:date>2011-09-27T18:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17902#M3461</link>
      <description>&lt;P&gt;In command prompt:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Search the H drive for all files with extension of sas for string obs=max&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;for /r H: %i in (*.sas) do @findstr /i /m "obs=max" "%i"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In sas your could execute this in a filename pipe and then collect all the relevant filenames inside a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename search pipe 'for /r H: %i in (*.sas) do @findstr /i /m "obs=max" "%i"';
&amp;nbsp;
data search_results;
&amp;nbsp; infile search length=_len;
&amp;nbsp; input @1 filepath $varying512. _len;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 24 May 2017 17:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17902#M3461</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2017-05-24T17:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17903#M3462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; This is excellent!&amp;nbsp; When I searched the H drive it worked great.&amp;nbsp; I'm not sure what to do with the part that starts with "filename search pipe......"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 19:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17903#M3462</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2011-09-27T19:30:04Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17904#M3463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is only necessary if you wanted to perform the search through sas and have the results returned in a data set.&amp;nbsp; Also there is a typo in my code len=_len should read length=_len.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 19:38:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17904#M3463</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-09-27T19:38:04Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17905#M3464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Holy s**t!!&amp;nbsp; This is incredible.&amp;nbsp; Once I corrected your typo, off she flew.&amp;nbsp; I can play Traffic Rush the rest of the day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 19:55:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17905#M3464</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2011-09-27T19:55:40Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17906#M3465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gregg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a complaint to raise!&amp;nbsp; How could FriedEgg provide such an incredible finding, but you credit yourself for having provided the answer?&amp;nbsp; Am I missing something here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Sep 2011 20:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17906#M3465</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-27T20:19:45Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17907#M3466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Apparently I don't know all the intricasies of this site but I take no credit for the solution.&amp;nbsp; Fried Egg is the top dog on this topic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 12:17:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17907#M3466</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2011-09-28T12:17:53Z</dc:date>
    </item>
    <item>
      <title>Searching SAS files (including key words) in Windows 7</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17908#M3467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gregg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Understood.&amp;nbsp; It is a fairly new model for the site and there aren't a lot of initricasies.&amp;nbsp; Simply bring up his post and click on the "correct" button or, if that is no longer available, the "helpful" button.&amp;nbsp; Except for the handful of &lt;BR /&gt;SAS employees that are here, the majority of respondents are just other users like you and me.&amp;nbsp; The formal recognition they get is through obtaining approval ratings from their peers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Sep 2011 12:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Searching-SAS-files-including-key-words-in-Windows-7/m-p/17908#M3467</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-28T12:39:57Z</dc:date>
    </item>
  </channel>
</rss>

