BookmarkSubscribeRSS Feed
Gayle
Quartz | Level 8

Hi I am receiving error: ERROR: At least one of the columns in this DBMS table has a datatype that is not supported by this engine

I am connecting to teradata here is the query below.  None of the attributes are bigint or anything they are char and int types.  I have cast the count(*) and I still receive the error

select * from connection to eabc(
select  hist_ky_add
		,cast(count(*)as int) as countuniq
from (select cast(cust_id as decimal(15,0)) as cust_id_test
	,cust_id 
	,cust_id_type 
	,cell_ky
	,rank(cust_id || cust_id_type || cast(cell_ky as varchar(16))asc)as hist_ky_add
from &crnttblname) a
group by 1
having count(*) > 1
);

Can you see what is wrong?  Any suggestions?

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

2 comments:
1. You can cast the other variables in turn to see which one causes the message. Or remove them from the query to perform the same test.
2. I am unsure SAS can read decimal variables. Why not an integer instead?

Gayle
Quartz | Level 8
thank you I had cast all of the variables before and gotten the same error , I may try that again. However, i did use this option:
OPTIONS SET=TRUNCATE_BIGINT YES ; and that got rid of the error

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2023 views
  • 2 likes
  • 2 in conversation