Hi All,
I'm copying one table from Teradata to the same location and I get the error below:
LIBNAME TD TERADATA SERVER=*** DATABASE=***;
Data TD.test1;
set TD.log;
Run;
ERROR: Error attempting to CREATE a DBMS table. ERROR: Teradata execute: Length 0 is not allowed for a CHAR, VARCHAR, BYTE, VARBYTE
column..
ERROR: ROLLBACK issued due to errors for data set TD.TEST1.DATA.
What's the possible reason for this? Thank you!
Jade
Additionally to what @kiranv_ wrote: Don't use a SAS data step to replicate a DBMS table. Using a SAS data step will most likely result in SAS first pulling all the data from the DB into SAS and then creating the new table and re-loading the data back to the DBMS.
Best use PROC SQL or eventually PROC APPEND.
If it would be me then I'd use explicit pass-through SQL for such operations.
do you have any character column with value of '' which is allowed in SAS but not allowed in Teradata after Teradata 14
Additionally to what @kiranv_ wrote: Don't use a SAS data step to replicate a DBMS table. Using a SAS data step will most likely result in SAS first pulling all the data from the DB into SAS and then creating the new table and re-loading the data back to the DBMS.
Best use PROC SQL or eventually PROC APPEND.
If it would be me then I'd use explicit pass-through SQL for such operations.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.