<?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: file transfer from sas to aws s3 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/file-transfer-from-sas-to-aws-s3/m-p/960977#M374697</link>
    <description>&lt;P&gt;I would think that, at the least, you would have to provide AWS configuration information and credentials before being allowed to write to AWS S3. In the&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/default/lestmtsglobal/n0f5jf7bs1ng4in1e5qvmdft4jac.htm#n1lzq9abx75mi4n18696wrgoy1y1" target="_self"&gt;FILENAME S3 &lt;/A&gt;documentation,&amp;nbsp;Example #5 includes an example of using the&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_060/proc/n1volodm4xnj3xn1s99poiemcha2.htm#n1nfg3n7qjyzofn1pgb66c0tq0wg#n1nfg3n7qjyzofn1pgb66c0tq0wg" target="_self"&gt;AWSCONFIG= and&amp;nbsp;AWSCREDENTIALS=&lt;/A&gt; options (the documentation for these is in the PROC S3 documentation).&lt;/P&gt;
&lt;P&gt;The example code looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myout s3 "/my-dir/u1.txt" 
               awsconfig="/u/qz/.aws/config" 
               awscredentials="/u/qz/.aws/credentials" 
               encoding="utf-8";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Hope this helps get you started.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Mar 2025 18:29:57 GMT</pubDate>
    <dc:creator>SASJedi</dc:creator>
    <dc:date>2025-03-05T18:29:57Z</dc:date>
    <item>
      <title>file transfer from sas to aws s3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/file-transfer-from-sas-to-aws-s3/m-p/960972#M374694</link>
      <description>&lt;P&gt;Hello community, need help please.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am trying to send file from SAS 9.4 M7 linux server to aws s3 where i have bucket and folder created with below code and receives error message. I have read this article where they are asking to get client id and secrete. Is this something must to do the handshake or we have work around?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fill access to s3 bucket.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*code*/&lt;/P&gt;
&lt;P&gt;%macro mytest;&lt;/P&gt;
&lt;P&gt;%let file_path=/server/path/where/file/is/test.txt&lt;/P&gt;
&lt;P&gt;%if %sysfunc(fileexist(&amp;amp;file_path.)); %then %do;&lt;/P&gt;
&lt;P&gt;%put file &amp;amp;file_path. exist.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename s3 "s3://s3-bucket-name/folder";&lt;/P&gt;
&lt;P&gt;filename local "&amp;amp;file_path";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;infile local;&lt;/P&gt;
&lt;P&gt;file s3;&lt;/P&gt;
&lt;P&gt;input;&lt;/P&gt;
&lt;P&gt;put _infile_;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;%else %do;&lt;/P&gt;
&lt;P&gt;%put File &amp;amp;file_path. doesn't exist. ;&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;%mytest;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;====================&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Error: physical file doesn't exist, ..../sasconfig/Lev1/SASApp/s3://s3-bucket-name/folder.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 17:51:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/file-transfer-from-sas-to-aws-s3/m-p/960972#M374694</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2025-03-05T17:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: file transfer from sas to aws s3</title>
      <link>https://communities.sas.com/t5/SAS-Programming/file-transfer-from-sas-to-aws-s3/m-p/960977#M374697</link>
      <description>&lt;P&gt;I would think that, at the least, you would have to provide AWS configuration information and credentials before being allowed to write to AWS S3. In the&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/default/lestmtsglobal/n0f5jf7bs1ng4in1e5qvmdft4jac.htm#n1lzq9abx75mi4n18696wrgoy1y1" target="_self"&gt;FILENAME S3 &lt;/A&gt;documentation,&amp;nbsp;Example #5 includes an example of using the&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_060/proc/n1volodm4xnj3xn1s99poiemcha2.htm#n1nfg3n7qjyzofn1pgb66c0tq0wg#n1nfg3n7qjyzofn1pgb66c0tq0wg" target="_self"&gt;AWSCONFIG= and&amp;nbsp;AWSCREDENTIALS=&lt;/A&gt; options (the documentation for these is in the PROC S3 documentation).&lt;/P&gt;
&lt;P&gt;The example code looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename myout s3 "/my-dir/u1.txt" 
               awsconfig="/u/qz/.aws/config" 
               awscredentials="/u/qz/.aws/credentials" 
               encoding="utf-8";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; Hope this helps get you started.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 18:29:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/file-transfer-from-sas-to-aws-s3/m-p/960977#M374697</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2025-03-05T18:29:57Z</dc:date>
    </item>
  </channel>
</rss>

