<?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: Use SAS to search for key names in other SAS Programs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95934#M20165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your guidance! It's well appreciated &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; I have seen other papers mentioning the PIPE statement too so I will research the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just looking into the systask command too, but the above way seems like the way to go!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Apr 2012 16:49:46 GMT</pubDate>
    <dc:creator>djrisks</dc:creator>
    <dc:date>2012-04-26T16:49:46Z</dc:date>
    <item>
      <title>Use SAS to search for key names in other SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95932#M20163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible for SAS to search for other SAS Programs in a given directory, and then open up the program and search for a specific name?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For example, in every SAS Program I write, I put my name in the Code Header. I would like to find all the SAS programs that include my name within a particular directory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kriss Harris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 15:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95932#M20163</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2012-04-26T15:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use SAS to search for key names in other SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95933#M20164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can probability find really good examples by searching these forums&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to learn about&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;PIPE access method to build a list of files to open and search&lt;/LI&gt;&lt;LI&gt;FILEVAR= infile statement option&lt;/LI&gt;&lt;LI&gt;END= infile statement option&lt;/LI&gt;&lt;LI&gt;DO WHILE(NOT end of file)&lt;/LI&gt;&lt;LI&gt;FILENAME= infile statement option maybe.&lt;/LI&gt;&lt;LI&gt;special variable _INFLE_&lt;/LI&gt;&lt;LI&gt;INPUT;&lt;/LI&gt;&lt;LI&gt;FIND and or FINDW or PRXfunctions(for complex finds)&lt;/LI&gt;&lt;LI&gt;RETURN statement&lt;/LI&gt;&lt;LI&gt;And a few "connecting" statements&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;It's really quite easy I do it all the time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 16:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95933#M20164</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-04-26T16:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Use SAS to search for key names in other SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95934#M20165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your guidance! It's well appreciated &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; I have seen other papers mentioning the PIPE statement too so I will research the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was just looking into the systask command too, but the above way seems like the way to go!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Kriss&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 16:49:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95934#M20165</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2012-04-26T16:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use SAS to search for key names in other SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95935#M20166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use SYSTASK to run a DIR command and use output redirection to send the output to a file and then read that file using SAS INFILE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With PIPE the file(DIR COMMAND) is executed when the file is opened with INFILE and the output is sent to SAS as if it were any other file.&amp;nbsp; The same but different.&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 16:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95935#M20166</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-04-26T16:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: Use SAS to search for key names in other SAS Programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95936#M20167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay I see now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the clarification! &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 17:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-SAS-to-search-for-key-names-in-other-SAS-Programs/m-p/95936#M20167</guid>
      <dc:creator>djrisks</dc:creator>
      <dc:date>2012-04-26T17:17:08Z</dc:date>
    </item>
  </channel>
</rss>

