<?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: Is there a way to count how many excel files in a file directory in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-count-how-many-excel-files-in-a-file-directory/m-p/882649#M39160</link>
    <description>&lt;P&gt;There are plenty of discussions here in the SAS Communities which provide instructions on how to read the names of files in a folder. Do a search for this. Use the code provided, then count how many of those files names end with .xlsx (or whatever other filetype you want).&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jun 2023 14:38:43 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-06-27T14:38:43Z</dc:date>
    <item>
      <title>Is there a way to count how many excel files in a file directory</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-count-how-many-excel-files-in-a-file-directory/m-p/882648#M39159</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m trying to set up an output check that counts how many Excel files it has outputted at that particular time. The filename will always have DPSCAIS append, DPSCAIS_interactive, and DPSCAIS_summary. The only differences are the dates and the name at the start. My question &amp;nbsp;is there a way to count how many of these files are outputted in that folder with the file name mentioned? It should always be three files outputted, if it doesn’t have that file name then flag as fail in the output file check.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;say the the folder is “ukfh\file\data\outbox”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1EF5A09A-C676-410F-823C-33E8C59920EC.jpeg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85418iCA6E12ABA9FDEE1F/image-size/large?v=v2&amp;amp;px=999" role="button" title="1EF5A09A-C676-410F-823C-33E8C59920EC.jpeg" alt="1EF5A09A-C676-410F-823C-33E8C59920EC.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 14:29:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-count-how-many-excel-files-in-a-file-directory/m-p/882648#M39159</guid>
      <dc:creator>Coding4you</dc:creator>
      <dc:date>2023-06-27T14:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to count how many excel files in a file directory</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-count-how-many-excel-files-in-a-file-directory/m-p/882649#M39160</link>
      <description>&lt;P&gt;There are plenty of discussions here in the SAS Communities which provide instructions on how to read the names of files in a folder. Do a search for this. Use the code provided, then count how many of those files names end with .xlsx (or whatever other filetype you want).&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 14:38:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-count-how-many-excel-files-in-a-file-directory/m-p/882649#M39160</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-27T14:38:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to count how many excel files in a file directory</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-count-how-many-excel-files-in-a-file-directory/m-p/882726#M39162</link>
      <description>&lt;P&gt;If these are being produced by a SAS program, I would just check that it ran successfully and then assume that the Excel files were correctly produced. I've usually found that this is a sufficient check.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Even better, schedule this program as a batch job and get it to email you if there is an error of any type, including not producing Excel files. No need to look any further if there is no email. You can assume everything is OK.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 01:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-count-how-many-excel-files-in-a-file-directory/m-p/882726#M39162</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-06-28T01:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to count how many excel files in a file directory</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-count-how-many-excel-files-in-a-file-directory/m-p/883092#M39180</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="B2CAF120-7E70-443A-BE24-303919F63505.jpeg" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/85487iF0883CEF11DDD3A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="B2CAF120-7E70-443A-BE24-303919F63505.jpeg" alt="B2CAF120-7E70-443A-BE24-303919F63505.jpeg" /&gt;&lt;/span&gt;Thank you. I managed to get the file to read in. Is there a way to do a loop to check the correct files because the output name will always be different and not dps_bcs ft. The code will not work, but I was thinking something along those line.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 13:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Is-there-a-way-to-count-how-many-excel-files-in-a-file-directory/m-p/883092#M39180</guid>
      <dc:creator>Coding4you</dc:creator>
      <dc:date>2023-06-30T13:29:34Z</dc:date>
    </item>
  </channel>
</rss>

