BookmarkSubscribeRSS Feed
surajdvpatil
Calcite | Level 5

 

How to create teradata error tables in taradata work database

Problem Description:
   I have a problem to create the error tables in work database.

There are two database,
1)PSDWRPTBLDB- this is database name of teradata. here table structure already created. I don't have create and drop table access
on this database, i have only access to insert the records.
2)PSDWTPTBLDB- this is the database name where i can create and drop table also i can insert the records in table.

i want to insert the records into PSDWRPTBLDB.CLASS table using fastload or bulkload facilities of SAS(teradata).

i have tried the following script but there is error that user don't have create table access. please advise me on the exact issue.
please provide me the solution for the same. 

libname rptbl teradata user=xxx password=xxx schema = PSDWRPTBLDB;
libname tptbl teradata user=xxx password=xxx schema = PSDWTPTBLDB;
proc append base=rptbldb.class
(TPT=YES FASTLOAD=YES
TPT_BUFFER_SIZE=64
TPT_ERROR_TABLE_1 = 'TPTBL.LOADTEST_ET'
TPT_ERROR_TABLE_2 = 'TPTBL.LOADTEST_UV'
TPT_LOG_TABLE = 'TPTBL.LOADTEST_RS') 
data=sashelp.class
;
run;

 

1 REPLY 1
jakarman
Barite | Level 11

You are wanting to fasltoad (that is I assume create data level access) at the base dataset you don not have create rights for.

Was your intention multiload?  First solve that create error message.

 

---->-- ja karman --<-----

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
  • 1 reply
  • 842 views
  • 0 likes
  • 2 in conversation