BookmarkSubscribeRSS Feed
Helannivas
Quartz | Level 8

Hi,

 

I have a sql server database that has a table with a column of datatype as 'BIT'. The value are 0 and 1 in the table.When I read the data from the SAS Dataflux, the zeros are treated as False and ones as True.  But in the final target database . we have the datatype as "Numeric" for that column.

 

My SAS Dataflux job throws an error for the above issue. Anyone has a solution for the issue? Pls. help

1 REPLY 1
LinusH
Tourmaline | Level 20

I haven't use df in "real life", so this might out of bounds.

 

But, what stops you for storing the boolean value in the target database?

Otherwise, just to a conditional assignment, if true then 1 else 0 type of thing.

Data never sleeps

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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