BookmarkSubscribeRSS Feed
kilasue
Calcite | Level 5

I have a data source whose driver is MariaDB. And the columns are double. But after connecting using libname odbc, they becomes dollar.2 format.

Data in data source:

 2018-09-25_22-26-44.jpg

Compare:

2018-09-25_22-41-41.jpg

The problem is that when I tried to append an SAS dataset into the data source. SAS told me that data types are different:

 

WARNING: Variable code has format 'DOLLAR.'n on the BASE data set and format 'BEST12.'n on the DATA data set. 'DOLLAR.'n used.

 

Here base data is the data source. And an error also occurred because one of my column has large values:

 

CLI execute error: [ma-3.0.3][10.3.9-MariaDB]Out of range value for column 'TCAP' at row 1

 

1 REPLY 1

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 connect to databases in SAS Viya

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.

Discussion stats
  • 1 reply
  • 1059 views
  • 0 likes
  • 2 in conversation