When i'm running the below query:
data alldata (dbcreate_table_opts='primary index(Detection_Strat_ID,End_Date)');
set table1 table2;
run;
I'm having this error:
26 data alldata (dbcreate_table_opts='primary index(Detection_Strat_ID,End_Date)');
___________________
22
ERROR 22-7: Invalid option name DBCREATE_TABLE_OPTS.
May I know how to fix this? Thanks
This option cannot be used with an ordinary SAS DATA step.
It can be used with the DS2 language within SAS.
The dataset option dbcreate_table_opts is valid when SAS/ACCESS for Relational Databases is used, it is not valid for library WORK.
A search for that message led me to this accepted solution here on the communities: https://communities.sas.com/t5/SAS-Enterprise-Guide/Error-Teradata-insert-No-more-room-in-database/m...
See if it is helpful.
Combine your two sets of code.
Add the options you tried to apply to a SAS dataset to the dataset you are trying to create in your Teradata database.
If you don't tell Teradata the primary index then it will pick the first variable in the dataset. If that variable does not have evenly distributed values then you can overload one data/compute node even when the database as a whole has plenty of space.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.