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

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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
  • 839 views
  • 0 likes
  • 2 in conversation