<?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: filename in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/filename/m-p/196794#M36939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the general form.&amp;nbsp; Fill in the rest of the data step for how you want and to actually read the log files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length filename $200 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; infile 'c:\temp\*.log' filename=filename .... ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input @;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if scan(filename,-1,'\')='temp.log' then delete ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Jun 2015 01:28:38 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2015-06-01T01:28:38Z</dc:date>
    <item>
      <title>filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/filename/m-p/196793#M36938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to read all log files in a directory but to avoid one log file (test.log)&lt;/P&gt;&lt;P&gt;How can I achive this?&lt;/P&gt;&lt;P&gt;I'm trying to do this by filename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename &lt;EM&gt;filename ("c:\temp\*.log")&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 00:00:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/filename/m-p/196793#M36938</guid>
      <dc:creator>SASSLICK001</dc:creator>
      <dc:date>2015-06-01T00:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/filename/m-p/196794#M36939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the general form.&amp;nbsp; Fill in the rest of the data step for how you want and to actually read the log files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length filename $200 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; infile 'c:\temp\*.log' filename=filename .... ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; input @;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if scan(filename,-1,'\')='temp.log' then delete ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; ....&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 01:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/filename/m-p/196794#M36939</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-06-01T01:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/filename/m-p/196795#M36940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;infile &lt;/SPAN&gt;dummy &lt;STRONG&gt;filevar&lt;/STRONG&gt;=fname end=last;&lt;/P&gt;&lt;P&gt;do until(last);&lt;/P&gt;&lt;P&gt;input .;&lt;/P&gt;&lt;P&gt;output;&lt;/P&gt;&lt;P&gt;end;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jun 2015 13:26:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/filename/m-p/196795#M36940</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-06-01T13:26:12Z</dc:date>
    </item>
  </channel>
</rss>

