BookmarkSubscribeRSS Feed
Petersi
Calcite | Level 5
Does anyone use ODBC? I am reading an Access database with PROC SQL on an ODBC connection. My problem is that SAS is treating all character columns as $255. Is there a way to re-format these columns within the SQL?
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
This Tech Support note is fixing a slightly different length issue with ODBC, but the technique may work for your MS-Access table.
http://support.sas.com/techsup/unotes/SN/017/017463.html

Otherwise, your best bet may be to contact Tech Support for more specific help on this issue.

cynthia
DouglasMartin
Calcite | Level 5
I think you just want the DBMAX_TEXT=n option on your libname statment or dataset option. Check out the documentation on it. The value you set becomes the maximum width that will be read. The maximum is 32767. HOWEVER, one thing I did notice is that my programs did get slower the higher I set it, so be careful about going overboard with it. (I don't have any examples because I switched jobs recently and no longer have a need for it). Message was edited by: Douglas Martin

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!

Discussion stats
  • 2 replies
  • 779 views
  • 0 likes
  • 3 in conversation