BookmarkSubscribeRSS Feed
lamrant
Calcite | Level 5

Hello,

 

using SAS EG ( 9.04.01M5P091317) and trying to access our S3 buckets in our AWS developpement environment using this:

 

PROC S3 KEYID="xxxxxxx" SECRET="yyyyyyyyy" REGION= cacentral;
LIST "s3://testthamisas/test" ;
run; 

 

and having the following error:

ERROR: Unknown region.

 

when I'm viewing ths list of regions available in EG, I don't see cacentral which is the SAS region for AWS ca-central-1.

from my laptop, I'm using AWS CLI command ( aws s3 ls testthamisas ) and everything is working fine.

 

 

Any Idea what's the problem?

 

thanks in advance

 

lamrant_0-1626898784017.png

 

 

Any ideas what's the problem is 

3 REPLIES 3
Tom
Super User Tom
Super User

The picture you posted looks like some type Enterprise Guide autocomplete assistant.  It might be that your version of EG did not have that specific region in it.  But EG is just working as an editor and does not actually run the SAS code itself.  So whatever the autocomplete feature does or does not do has nothing to do with what you can or cannot do in SAS itself.

 

What is the version of SAS your EG session is using?  Check the value of the automatic macro variable SYSVLONG.

 

Are you sure the REGION= option does not want the region in quotes?  What happens if you add quotes around it?

 

lamrant
Calcite | Level 5

Hello Tom, thanks for your answer.

I already listed the version  in the previous message.

The SYSVLONG macro variable gives  9.04.01M5P091317.

 

I also used REGION = CACENTRAL  and REGION = "CACENTRAL" and i'm having the same error.

Tom
Super User Tom
Super User

You should raise a support request with SAS to help you figure this out.

 

It might be related to your AWS account settings.  There was another thread here about issues with encryption that required a newer version of SAS, 9.4m6 is that I think it was.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1386 views
  • 0 likes
  • 2 in conversation