BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
lukesirakos
Fluorite | Level 6

I have been loading SAS datasets to tables in Teradata using fastload (an example of code is below) and yesterday I tried to load a table but it gave me an error that I ran out of space. I deleted a big table and tried again and I keep getting an error that says:

 

"ERROR: Fastload failed the end loading statement: Operation not allowed: [Table Name] is being Loaded."

 

Where I put [Table Name] it is a table name that isn't exactly the table I am trying to load. Let's say my table name is ThisIsMyTableName, in the error message it is saying ThisIsMyTableNa_SE2_1831116450 is being loaded.

 

I am guessing when I tried to load the data the first time it created some temporary tables and now it is stuck trying to load those? Any ideas on how I can fix this issue and load the data?  Below is an example of the datastep code I am using to load the data:

 

data MyDB.ThisIsMyTableName (FASTLOAD=YES TPT=YES DBCOMMIT=0);

set work.ThisIsMyTableName;

run;

1 ACCEPTED SOLUTION

Accepted Solutions
lukesirakos
Fluorite | Level 6

Issue ended up being Teradata was using the first column in my dataset as the primary index and it was not a field that should be used as such. Changed the order of the columns and it worked fine.

View solution in original post

3 REPLIES 3
LinusH
Tourmaline | Level 20
I'm leaning towards your guess that that there are some leftovers in TD. Since the error message is generated by TD you should talk to your TD DBA.
Data never sleeps
lukesirakos
Fluorite | Level 6

Issue ended up being Teradata was using the first column in my dataset as the primary index and it was not a field that should be used as such. Changed the order of the columns and it worked fine.

kiranv_
Rhodochrosite | Level 12

you need not change the order of columns. All you need to do is to use option dbcreate_table_opts as shown below

 

data tdtable.employee_scoring (dbcreate_table_opts= 'primary index(employee_number)');

set work.employee_scoring(keep= Job_type employee_number Sal, Sal_rating);

run;

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 3028 views
  • 1 like
  • 3 in conversation