Hello Experts,
I have a cloud based SAS 9.4M4 environment and have deployed SAS on RHEL OS.
We are trying to connect to S3 bucket from SAS using Proc S3.
AWS CLI has been installed and tested from the server and it is working absolutely fine however while trying to use the Proc S3 code I get the below error message.
This error arises whether I use any of the functions i.e. LIST, PUT or GET etc.
ERROR: Could not list bucket contents.
ERROR: Encryption run-time execution error
Thanks in advance for your help.
Regards,
Ankit
Basis investigation found that S3 uses AES encryption which is only supported from SAS 9.4M6. Got it vetted from SAS Technical Support as well.
Given that we are using SAS 9.4M4 there are possible 2 options only:
1. Use AWS CLI for data upload and download from S3 and then leverage it in SAS.
2. Upgrade to SAS 9.4M6
Hope this helps anyone else facing similar issue.
Below is the sample code
proc s3 KEYID="key-id" SECRET="secret-access" REGION=USEAST;
LIST "/s3_bucket_name/test.txt";
run;
The S3 bucket is hosted in US-EAST-1 region.
use this in list
LIST "/s3_bucket_name"
Its the same thing, whether you mention a file or just the bucket.
Additionally, we have tried the PUT and GET options as well same error message is being received.
Basis investigation found that S3 uses AES encryption which is only supported from SAS 9.4M6. Got it vetted from SAS Technical Support as well.
Given that we are using SAS 9.4M4 there are possible 2 options only:
1. Use AWS CLI for data upload and download from S3 and then leverage it in SAS.
2. Upgrade to SAS 9.4M6
Hope this helps anyone else facing similar issue.
You will need to install the CLI on the SAS compute node and then initialize the AWS config post which using the normal PUT and GET statements of AWS you can upload and download the objects from the bucket/s.
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!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.