Problem Note 35927: An error occurs when you append a SASĀ® data set to Sybase table that has a VARCHAR column with a length greater than 255
With releases prior to SAS® 9.1.3 SP4, the following error message is generated when you append a SAS data set to a Sybase table with a column of type VARCHAR and the column is greater than 255 characters in length:
ERROR: Error trying to read from a DBMS table. At least one column must be selected.
NOTE: Statements not processed because of errors noted above.
NOTE: The following 1 column(s) in MYSYBASE.testvarchar have been
automatically dropped because they have a datatype that is not
supported by this engine:
var1
The problem occurs because the data buffer is not cleared. The data that is appended retains the data from the previous line if that line is longer than the current line. SAS also changes the length of the character variable to 1024 if the variable is greater than 255 in length.
In SAS® 9.1.3 SP4 and SAS® 9.2, you will receive garbage data because VARCHAR columns allow lengths greater than 255 and you will not receive the above error.
Select the Hot Fix tab in this note to access the hot fix for this issue.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to Sybase | Linux for x64 | 9.2 TS2M0 | 9.2 TS2M2 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Windows Vista | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
Tru64 UNIX | 9.1 TS1M3 SP4 | 9.2 TS2M2 |
*
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.
ERROR: Error trying to read from a DBMS table. At least one column must be selected.
NOTE: Statements not processed because of errors noted above.
NOTE: The following 1 column(s) in MYSYBASE.testvarchar have been
automatically dropped because they have a datatype that is not
supported by this engine:
var1
Type: | Problem Note |
Priority: | alert |
Topic: | Data Management ==> Data Sources ==> External Databases ==> Sybase
|
Date Modified: | 2009-09-09 12:47:30 |
Date Created: | 2009-05-14 13:35:06 |