BookmarkSubscribeRSS Feed
nickspencer
Obsidian | Level 7
Hello everyone,
I have my source data in oracle table. I am bringing this data to SAS and applying some logic. But some of the reference data is stored in teradata table. I am having hard time deciding how to bring in the teradata reference table to SAS since it is a huge table with about 400 million records.
I was thinking of loading this sas dataset to teradata but we do not have capability to create tables in teradata in production. I found a way to create volatile table in teradata with this sas dataset but since the dataset is also so big that it may not be efficient to create volatile table.
Please suggest me the options to join this sas dataset to this large teradata reference table. Any suggestions will be highly appreciated.

Thanks,
Nick
4 REPLIES 4
SASKiwi
PROC Star

How many rows are in your SAS table? How many columns are you joining into your SAS table from Teradata? If your SAS table is significantly smaller than the Teradata one it would make sense to load that into Teradata as a volatile table and join to your Teradata table. Where is the result table going?

nickspencer
Obsidian | Level 7
@SASKiwi my SAS table has around 100k records. Do you think it might be a good idea to load them to the teradata volatile table ?
SASKiwi
PROC Star

@nickspencer - Yes. To me it makes sense to load the smaller table to where the larger one is. Is your result table being used in SAS or somewhere else?

ChrisNZ
Tourmaline | Level 20

So you have a number of key values for which you want to retrieve data in Teradata?

How many values? And how many records do you expect back? One record per key value?

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!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 880 views
  • 0 likes
  • 3 in conversation