BookmarkSubscribeRSS Feed
Jeg123
Calcite | Level 5

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?

2 REPLIES 2
tsap
Pyrite | Level 9

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.

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 4396 views
  • 0 likes
  • 3 in conversation