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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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