DATA Step, Macro, Functions and more

How to create teradata error tables in taradata work database

Reply
New Contributor
Posts: 4

How to create teradata error tables in taradata work database

 

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;

 

Valued Guide
Posts: 3,208

Re: How to create teradata error tables in taradata work database

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 --<-----
Ask a Question
Discussion stats
  • 1 reply
  • 135 views
  • 0 likes
  • 2 in conversation