BookmarkSubscribeRSS Feed
Pretti
Calcite | Level 5

We are using explicit SQL pass through statements to query a large table in Redshift. The Proc SQL completes without a SAS error but has only  about half the number of records we were expecting. Our DBA reviewed the Redshift database log and found the query had an out of memory error and stopped fetching additional rows from the table.

 

Since these are production Jobs we need to have the SAS Proc SQL Step fail with an error as we do not want to continue the process with an incomplete data set. Additionally, since this is a "silent" error, our users would never know there was problem.

 

Does anyone know how to pass this Redshift error down to our SAS job?

 

Thanks.

4 REPLIES 4
Tom
Super User Tom
Super User

Are you using SAS/Access to Redshift?  Or SAS/Access to ODBC?

 

You might want to raise a support ticket with SAS support.

Reeza
Super User
Agreeing with Tom, this is a question for SAS tech support for sure.
Pretti
Calcite | Level 5

I first contacted SAS support and the response was to work with our DBA to optimize our queries to get them to run with the size of our memory.  This won't work as the database is shared resource and the total amount of available memory at any given time will be unknown.  I'll continue to experiment to see if I can find a solution.

 

 

Reeza
Super User
Have you tried implicit SQL queries instead? Do those error out as indicated?

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

What is Bayesian Analysis?

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 804 views
  • 2 likes
  • 3 in conversation