<?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: Write file in bicket S3 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/876925#M346422</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/332963"&gt;@dipand&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your SAS administrators and enterprise IT-architecture people have probably made sure you can write to your S3-bucket without access key and without secret key.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You only need your region name and your bucket name then.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;For writing an Excel file from the file system (NFS) to your team's S3-bucket, try something like this :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc s3 REGION=...;
/* Execute the PUT statement to copy the local file licj.xlsx 
   into a file of the same name in the S3 bucket myBucket. */
   put "/u/marti/project/licj.xlsx" "/myBucket/licj.xlsx";
   list "/myBucket";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Documentation S3 Procedure :&amp;nbsp; &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1h9c1jnr8v8nwn1l6g83kyne5ds.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1h9c1jnr8v8nwn1l6g83kyne5ds.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you on AWS or are you using Dell ECS S3 (&lt;EM&gt;ECS&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;delivers rich&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;S3&lt;/EM&gt;&lt;SPAN&gt;-compatibility)?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Mon, 22 May 2023 16:34:50 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-05-22T16:34:50Z</dc:date>
    <item>
      <title>Write file to S3 bucket</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/876882#M346401</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;I have to write an excel file in a s3 bucket. From the SAS manual I read that you can use the S3 proc, specifying some parameters like :&lt;/P&gt;
&lt;P&gt;%let access_key = "XXXXXXXXXXXXXXXXXXXXXXXXXX";&lt;BR /&gt;%let secret_key = "XXXXXXXXXXXXXXXXXXXXXXX";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The administrator of bucket s3 gave me only the bucket and no other information because he thinks it is not necessary, as my SAS server is authorized both in writing and in reading.&lt;/P&gt;
&lt;P&gt;Can I do this in SAS? If so, how can I do it?&lt;BR /&gt;Thanks to those who can answer&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 09:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/876882#M346401</guid>
      <dc:creator>dipand</dc:creator>
      <dc:date>2023-05-23T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Write file in bicket S3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/876925#M346422</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/332963"&gt;@dipand&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your SAS administrators and enterprise IT-architecture people have probably made sure you can write to your S3-bucket without access key and without secret key.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You only need your region name and your bucket name then.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;For writing an Excel file from the file system (NFS) to your team's S3-bucket, try something like this :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc s3 REGION=...;
/* Execute the PUT statement to copy the local file licj.xlsx 
   into a file of the same name in the S3 bucket myBucket. */
   put "/u/marti/project/licj.xlsx" "/myBucket/licj.xlsx";
   list "/myBucket";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Documentation S3 Procedure :&amp;nbsp; &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1h9c1jnr8v8nwn1l6g83kyne5ds.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n1h9c1jnr8v8nwn1l6g83kyne5ds.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you on AWS or are you using Dell ECS S3 (&lt;EM&gt;ECS&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;delivers rich&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;S3&lt;/EM&gt;&lt;SPAN&gt;-compatibility)?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 16:34:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/876925#M346422</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-05-22T16:34:50Z</dc:date>
    </item>
    <item>
      <title>Re: Write file in bicket S3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/877001#M346453</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your answer.&lt;BR /&gt;I’m not familiar with bucket S3, I’m told it’s AWS.&lt;BR /&gt;Trying your code by entering the region I get the following error message:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="sasLogError1_1684826149219" class="sasError"&gt;ERROR: Could not put file.&lt;/DIV&gt;
&lt;DIV id="sasLogError2_1684826149219" class="sasError"&gt;ERROR: HTTP/1.1 404 Not found&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think we need to ask who runs the bucket of controls.&lt;BR /&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2023 07:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/877001#M346453</guid>
      <dc:creator>dipand</dc:creator>
      <dc:date>2023-05-23T07:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Write file in bicket S3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/896651#M354315</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/60547"&gt;@sbxkoenk&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;thanks to your advice I was able to communicate with the bucket S3.&lt;BR /&gt;Next month the SAS platform will be migrated to Azure cloud. I did some testing and the communication with the bucket is currently not working. You need to ask the colleagues who run the bucket for a &amp;lt;access id&amp;gt; and &amp;lt;secrect key&amp;gt;? &amp;nbsp;Is SAS ip server authorization also required?&lt;BR /&gt;Thank you very much&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Andrew&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 12:22:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/896651#M354315</guid>
      <dc:creator>dipand</dc:creator>
      <dc:date>2023-10-02T12:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Write file in bicket S3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/896653#M354317</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/332963"&gt;@dipand&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Next month the SAS platform will be migrated to Azure cloud. I did some testing and the communication with the bucket is currently not working. You need to ask the colleagues who run the bucket for a &amp;lt;access id&amp;gt; and &amp;lt;secrect key&amp;gt;? &amp;nbsp;Is SAS ip server authorization also required?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Microsoft Azure does not offer S3-compatible storage out-of-the-box.&lt;BR /&gt;Was your Microsoft Azure Blob storage extended with S3-compatible API, making it possible for S3-native applications to store data in Azure??&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With regard to&amp;nbsp;SAS ip server authorization ... I am sorry, that's too far out of my comfort zone. Not being a SAS administrator with installation and SAS-environment deployment expertise myself , I cannot respond to this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 12:43:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-file-to-S3-bucket/m-p/896653#M354317</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-10-02T12:43:41Z</dc:date>
    </item>
  </channel>
</rss>

