<?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: how to connect to AWS with SAS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924701#M44626</link>
    <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Have a look at this &lt;A href="https://www.sas.com/en_us/webinars/ate-viya-architecture-data-movement.html" target="_blank"&gt;https://www.sas.com/en_us/webinars/ate-viya-architecture-data-movement.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 14:13:00 GMT</pubDate>
    <dc:creator>Sajid01</dc:creator>
    <dc:date>2024-04-17T14:13:00Z</dc:date>
    <item>
      <title>how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924691#M44623</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are starting a new project and I will need to read a csv file on Amazon Web Services.&amp;nbsp; I do not have a lot of information up to now but I wonder if it could be possible to get a SAS snippet showing how to connect on AWS and how to read a csv file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 13:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924691#M44623</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-04-17T13:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924699#M44624</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It sounds like you need PROC S3, this reads / lists / creates files in S3 buckets. It has a variety of statements so check in support.sas.com for more details, but you will need something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;/* read data in and import excel file*/&lt;BR /&gt;filename _s3file temp;&lt;BR /&gt;%let _locals3file = %sysfunc(pathname(_s3file));&lt;BR /&gt;/* connect to S3 */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc s3 config="/home/sas/Documents/tks3.conf";&lt;BR /&gt;get "/XXXXsasdata/fakenames100.csv" "&amp;amp;_locals3file"; /* XXXXsasdata&amp;nbsp; is your bucket name */&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* this bit hopefully works - i was using xlsx spreadsheet so haven't tested with csv */&lt;BR /&gt;proc import datafile =_s3file replace&lt;BR /&gt;dbms=csv&lt;BR /&gt;out=work.fake1;&lt;BR /&gt;getnames=yes;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you will also need a file called&amp;nbsp;tks3.conf (or you can put the details in code, but this contains something like the following)&lt;/P&gt;
&lt;P&gt;ssl=yes&lt;BR /&gt;keyID=XXXXXXXX&lt;BR /&gt;secret=YYYYYYYYYYYYYYYYYYYYYYYY&lt;BR /&gt;region=euireland&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know how you get on - good luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Colin&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 14:10:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924699#M44624</guid>
      <dc:creator>colingray83</dc:creator>
      <dc:date>2024-04-17T14:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924701#M44626</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Have a look at this &lt;A href="https://www.sas.com/en_us/webinars/ate-viya-architecture-data-movement.html" target="_blank"&gt;https://www.sas.com/en_us/webinars/ate-viya-architecture-data-movement.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 14:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924701#M44626</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2024-04-17T14:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924740#M44630</link>
      <description>This more related to SAS Viya.  I don't see nothing related to proc s3</description>
      <pubDate>Wed, 17 Apr 2024 18:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924740#M44630</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-04-17T18:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924742#M44631</link>
      <description>&lt;P&gt;As I can see from your SAS code, we cannot read the file directly, we need to import it to read it.&lt;/P&gt;
&lt;P&gt;Is that correct ?&lt;/P&gt;
&lt;P&gt;Also, is there some options we can use to help in troubleshoothing proc s3? Ex: could not list bucket contents and so on&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 19:00:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924742#M44631</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-04-17T19:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924781#M44634</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;As I can see from your SAS code, we cannot read the file directly, we need to import it to read it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Depending on your SAS version you can use &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/n0f5jf7bs1ng4in1e5qvmdft4jac.htm" target="_self"&gt;FILENAME Statement: S3 Access Method&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;To read the file "directly" refer to: Example 1: Reading a File by Using the S3 Access Method&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 03:30:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924781#M44634</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-04-18T03:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924792#M44636</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Not sure there is a debug option, though the following will list files to the log,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc s3 config="c:/temp/aws/tks3.conf";&lt;BR /&gt;list "XXXsasdata"; /* will list files to the log */&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've also used with Viya a libname statement that points directly to the folder and you can then read directly in the usual way. I'm not sure how AWS transfer charges apply, so i always disconnect afterwards !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;caslib mys3 datasource=(srctype="s3"&lt;BR /&gt;accesskeyid="AAAAAAAAAAAA"&lt;BR /&gt;secretaccesskey="BBBBBBBBBBBBBBBB"&lt;BR /&gt;region="EU_Ireland"&lt;BR /&gt;bucket="XXXXsasdata"&lt;BR /&gt;/* objectpath="/asr/projB" */&lt;BR /&gt;usessl=true);&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 08:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/924792#M44636</guid>
      <dc:creator>colingray83</dc:creator>
      <dc:date>2024-04-18T08:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925001#M44647</link>
      <description>&lt;P&gt;Up to now, I have made some tests but it is like SAS EG is running, running and nothing appends.&lt;/P&gt;
&lt;P&gt;Is there some options we can use to check if the connection is granted and to check the grant for my key and secret&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any sample test we can do ?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 13:26:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925001#M44647</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-04-19T13:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925110#M44653</link>
      <description>&lt;P&gt;I think the best option is to create a ticket with SAS Tech Support.&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2024 23:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925110#M44653</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2024-04-20T23:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925574#M44679</link>
      <description>How do we create a ticket with sas tech support&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Apr 2024 14:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925574#M44679</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-04-24T14:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925678#M44688</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/76331"&gt;@alepage&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How do we create a ticket with sas tech support&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;A href="https://www.sas.com/en_us/contact/technical-support.html" target="_self"&gt;Contact SAS Technical Support&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 01:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925678#M44688</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-04-25T01:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to connect to AWS with SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925715#M44692</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;It might be that your organisation doesn't permit connections out to s3, as if its timing out, this sounds like it might be a connection issue. You could try using curl from a command line prompt to your s3 bucket, this would at least check if your getting a connection.&lt;/P&gt;
&lt;P&gt;Have a look at this website and check it meets your requirements&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.googlinux.com/retrieving-s3-objects-using-curl/" target="_blank"&gt;https://www.googlinux.com/retrieving-s3-objects-using-curl/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Colin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 09:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-connect-to-AWS-with-SAS/m-p/925715#M44692</guid>
      <dc:creator>colingray83</dc:creator>
      <dc:date>2024-04-25T09:09:48Z</dc:date>
    </item>
  </channel>
</rss>

