<?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: Stored 10 SAS Programs in data step need output result with filtered word and full path. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Stored-10-SAS-Programs-in-data-step-need-output-result-with/m-p/904698#M357420</link>
    <description>&lt;P&gt;Use the FILENAME= option of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1rill4udj0tfun1fvce3j401plo.htm" target="_blank" rel="noopener"&gt;INFILE Statement&lt;/A&gt; to retrieve the name of the file which is currently read.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Nov 2023 19:25:29 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2023-11-27T19:25:29Z</dc:date>
    <item>
      <title>Stored 10 SAS Programs in data step need output result with filtered word and full path.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stored-10-SAS-Programs-in-data-step-need-output-result-with/m-p/904650#M357403</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying reading&amp;nbsp; the total of&amp;nbsp; 10 SAS&amp;nbsp; program (.sas files) and storing entire 10&amp;nbsp; SAS program codes in the dataset using option filename statement, and finally filtering the words based some criteria and I am able to do that, i&amp;nbsp; getting output result as filter word,&amp;nbsp; but here problem is i need to get the full path name with whose filtered word condition is satisfied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code:&lt;/P&gt;&lt;P&gt;filename rd&lt;/P&gt;&lt;P&gt;('C:\Users\rakes\Documents\My SAS Files\sas_practice\program_2.sas' ,&lt;/P&gt;&lt;P&gt;'C:\Users\rakes\Documents\My SAS Files\sas_practice\program_3.sas' ,&lt;/P&gt;&lt;P&gt;'C:\Users\rakes\Documents\My SAS Files\sas_practice\program_4.sas' ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; like so on----&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data temp;&lt;BR /&gt;infile rd truncover;&lt;BR /&gt;input rec $150.;&lt;/P&gt;&lt;P&gt;if index(lowcase(rec), "metafix") ne 0 then output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result:&lt;/P&gt;&lt;P&gt;rec - column name&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;metafix&lt;/P&gt;&lt;P&gt;metafix is good&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But i need as&lt;/P&gt;&lt;P&gt;Actual result&lt;/P&gt;&lt;P&gt;-------------&lt;/P&gt;&lt;P&gt;rec,fpath -- column names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;metafix &amp;lt;filepath&amp;gt;&lt;/P&gt;&lt;P&gt;metafix is good &amp;lt;filepath&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 16:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stored-10-SAS-Programs-in-data-step-need-output-result-with/m-p/904650#M357403</guid>
      <dc:creator>u63406443</dc:creator>
      <dc:date>2023-11-27T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Stored 10 SAS Programs in data step need output result with filtered word and full path.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stored-10-SAS-Programs-in-data-step-need-output-result-with/m-p/904679#M357405</link>
      <description>&lt;P&gt;Maybe this would be helpful&lt;/P&gt;
&lt;P&gt;&lt;A href="https://gist.github.com/statgeek/26cf789d6da0ce941e447022fdccf0f4" target="_blank"&gt;https://gist.github.com/statgeek/26cf789d6da0ce941e447022fdccf0f4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 18:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stored-10-SAS-Programs-in-data-step-need-output-result-with/m-p/904679#M357405</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-11-27T18:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Stored 10 SAS Programs in data step need output result with filtered word and full path.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Stored-10-SAS-Programs-in-data-step-need-output-result-with/m-p/904698#M357420</link>
      <description>&lt;P&gt;Use the FILENAME= option of the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n1rill4udj0tfun1fvce3j401plo.htm" target="_blank" rel="noopener"&gt;INFILE Statement&lt;/A&gt; to retrieve the name of the file which is currently read.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 19:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Stored-10-SAS-Programs-in-data-step-need-output-result-with/m-p/904698#M357420</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-27T19:25:29Z</dc:date>
    </item>
  </channel>
</rss>

