BookmarkSubscribeRSS Feed
iSAS
Quartz | Level 8

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

5 REPLIES 5
PaigeMiller
Diamond | Level 26

This option cannot be used with an ordinary SAS DATA step.


It can be used with the DS2 language within SAS.

--
Paige Miller
iSAS
Quartz | Level 8
Hello KurtBremser. Thank you for responding. I tried this code:

proc append
base=td.vcm (fastload=yes sessions=4)
data=alldata
force;
run;

BUt i'm receiving this error:

ERROR: Teradata connection: No more room in database BMGU_ROSA_TST. Correct error and restart as an APPEND process with option
TPT_RESTART=YES. Since no checkpoints were taken, if the previous run used FIRSTOBS=n, use the same value in the restart.

OUr teradata database has enough space though. May I know how to fix this?
Tom
Super User Tom
Super User

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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 5 replies
  • 2048 views
  • 2 likes
  • 4 in conversation