SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 14234: "Error: The expression is invalid because its type is incorrect. Try setting the type to Numeric" when concatenating two character columns with SAS/ACCESS Interface to ODBC

DetailsHotfixAboutRate It
It is possible to receive the following error message when concatenating
two character columns with the ODBC engine.

  ERROR:  The expression is invalid because its type is incorrect. Try
          setting the type to Numeric.

The concatenation operator can vary from database to database. As an
example, currently the ODBC engine uses the syntax of: column || column.
MySQL doesn't recognize the symbol "||" as the concatenation symbol but
considers it to be a logical OR.  The concatenation syntax that it
expects is: CONCAT(column, column, ... column ).

A fix for SAS 9.1.3 (9.1 TS1M3) for this issue is available at:

http://www.sas.com/techsup/download/hotfix/e9_sbcs_prod_list.html#014234

For customers running SAS with Asian Language Support (DBCS), this
fix should be downloaded from:

http://www.sas.com/techsup/download/hotfix/e9_dbcs_prod_list.html#014234


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to ODBCMicrosoft Windows XP Professional9.1 TS1M39.1 TS1M3 SP2
Microsoft Windows Server 2003 Standard Edition9.1 TS1M39.1 TS1M3 SP2
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M39.1 TS1M3 SP2
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M39.1 TS1M3 SP2
Microsoft Windows 2000 Server9.1 TS1M39.1 TS1M3 SP2
Microsoft Windows 2000 Advanced Server9.1 TS1M39.1 TS1M3 SP2
Microsoft Windows 2000 Datacenter Server9.1 TS1M39.1 TS1M3 SP2
Microsoft Windows 2000 Professional9.1 TS1M39.1 TS1M3 SP2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.