teradata in SAS

New Contributor
Posts: 2

teradata in SAS


I am in the process of moving many of my SQL codes from SQL to SAS.  The platform is Teradata and i've been using SQL assistant to run all my code.  When I run proc SQL in SAS it takes forever to run code that takes seconds in SQL assistant.  Is there an issue with moving teradara to a SAS dataset? does anybody know of a way to speed this up?  They're pretty simple queries that join 3 tables together

Thanks in Anticipation!

Posts: 1,310

Re: teradata in SAS

You've opened a fairly enormous topic here.

Teradata is a product that is highly optimized for the types of operations that are required for tabulation, reporting, and analytics. Native SAS datasets don't apply the same optimizations right out of the box.

You can probably improve your native SAS dataset performance by creating indexes on the approriate variables, but the downside is increased effort and disk space.

SAS does have a product called SPDS, which is designed to improve processing speed on large datasets. However, it may be an additional expense, and it is a LOT of work to set up.

Finally, I suggest that you post some specific examples, and the folks who follow this discussion will probably have suggestions.


Super Contributor
Posts: 644

Re: teradata in SAS

Assuming you have SAS/Access to Teradata, and want to retain your data in Teradata tables: have you investigated using SQL Passthrough for your existing code? 




Minimal changes (if any) to your existing SQL code

SAS can be used to initiate the SQL code and also provide downstream analysis

No need to create indexes etc in SAS

I have not tried this with Teradata (and note the restriction on DATABASE) but I have done the equivalent in Oracle with success.

Richard in Oz

New Contributor
Posts: 2

Re: teradata in SAS

Posted in reply to RichardinOz

Sorry for the delay in responding.

Thanks Richard, this is perfect and my queries are running so much faster now!

Thank you so much for taking the time to help solve my issue

Ask a Question
Discussion stats
  • 3 replies
  • 1 like
  • 3 in conversation