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

 

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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
  • 1914 views
  • 0 likes
  • 2 in conversation