BookmarkSubscribeRSS Feed
milind3889
Obsidian | Level 7

I am using below proc s3 statement.

 

proc s3 profile="sas_aws";
list  "s3://vertex-rwe/RWE_S3/Premier_20190226/Compressed_Source_Files/2018Q3";
run;

sas_aws profile is defined in AWS CLI configuration file.

region is us-east-1

 

I am getting below error after execution of below code.

 

84 proc s3 profile="sas_aws";
85 list "s3://vertex-rwe/RWE_S3/Premier_20190226/Compressed_Source_Files/2018Q3";
86 run;

ERROR: Unknown region.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE S3 used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds

 

1 REPLY 1
JBailey
Barite | Level 11

Hi @milind3889 

 

Here is a working example. 

 

 

proc s3 region=useast profile='bogus-profile';
   put "C:\temp\postgres\contacts.csv" "/sasxjb-bucket/contacts.csv";
   list "/sasxjb-bucket/";
   info "/sasxjb-bucket/";
run;

 

 

The region codes can be a little tricky. You can find them here - S3 Procedure Doc

 

Notice that the REGION= value is not enclosed in quotes.

 

To clean up, I empty the bucket and destroy the bucket (must be empty):

 

 

proc s3 region=useast profile='bogus-profile';
   delete "/sasxjb-bucket/contacts.csv";
   destroy "/sasxjb-bucket/";
run;

 

Hope this helps.

 

Best wishes,

Jeff

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1667 views
  • 0 likes
  • 2 in conversation