Im trying to select 1 row from teradata just to view the column names. The problem is I get the following error:
ERROR: At least one of the columns in this DBMS table has a datatype that is not supported by this engine.
proc sql;
connect to teradata as tera (authdomain="TeradataAuth" tdpid=aprod mode=Teradata);
create table work.test as
select * from connection to tera (
select top 1 *
from tera_table.hello
);
disconnect from tera;
quit;
How can i achieve my purpose?
Try the DBC tables:
http://teradata.iexpertify.com/2011/09/dbc-tables-or-system-tables-on-teradata.html
To achieve the outcome you requested on my own system, I created a libref for the Teradata database connection and then executed a 'PROC CONTENTS' datastep:
LIBNAME Tera TERADATA AUTHDOMAIN="TeradataAuth" TDPID=APROD MODE=Teradata;
PROC CONTENTS DATA=Tera.Hello; RUN;This is what I mocked up from the information provided in your post.
Hope this helps.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.