<?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 Get all the list file names in a S3 bucket in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Get-all-the-list-file-names-in-a-S3-bucket/m-p/754800#M238113</link>
    <description>&lt;P&gt;Hey folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a S3 bucket that contains multiple csv files named with certain prefix and suffix, something like blabla_yymmdd.csv&lt;/P&gt;&lt;P&gt;I am wondering if we can get all the file names using proc s3 or any other alternatives?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jul 2021 18:36:36 GMT</pubDate>
    <dc:creator>lpy0521</dc:creator>
    <dc:date>2021-07-17T18:36:36Z</dc:date>
    <item>
      <title>Get all the list file names in a S3 bucket</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-all-the-list-file-names-in-a-S3-bucket/m-p/754800#M238113</link>
      <description>&lt;P&gt;Hey folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a S3 bucket that contains multiple csv files named with certain prefix and suffix, something like blabla_yymmdd.csv&lt;/P&gt;&lt;P&gt;I am wondering if we can get all the file names using proc s3 or any other alternatives?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 18:36:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-all-the-list-file-names-in-a-S3-bucket/m-p/754800#M238113</guid>
      <dc:creator>lpy0521</dc:creator>
      <dc:date>2021-07-17T18:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get all the list file names in a S3 bucket</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Get-all-the-list-file-names-in-a-S3-bucket/m-p/754805#M238114</link>
      <description>&lt;P&gt;You can use the LIST statement to get a list of the files with a particular prefix.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But unless they have updated PROC S3 in the last few years the only way I found to capture that into data was to redirect the SAS LOG to a file and read it back in.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename list temp;
options nonotes nosource;
proc printto log=list new; run;
proc s3 config="&amp;amp;config";
list  "/&amp;amp;bucket/team_rwa/sas_download";
run;
proc printto log=log; run;
options notes source;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can run a data step to read the new LIST file and parse out the filename size and datetime stamp.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Jul 2021 01:05:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Get-all-the-list-file-names-in-a-S3-bucket/m-p/754805#M238114</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-18T01:05:22Z</dc:date>
    </item>
  </channel>
</rss>

