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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 3640 views
  • 0 likes
  • 3 in conversation