SUPPORT / SAMPLES & SAS NOTES
 

Support

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

DetailsHotfixAboutRate It

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

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/ACCESS Interface to SybaseLinux for x649.2 TS2M09.2 TS2M2
Microsoft Windows 2000 Advanced Server9.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows Server 2003 Standard Edition9.1 TS1M3 SP49.2 TS2M2
Microsoft Windows XP Professional9.1 TS1M3 SP49.2 TS2M2
Windows Vista9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled AIX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled HP-UX9.1 TS1M3 SP49.2 TS2M2
64-bit Enabled Solaris9.1 TS1M3 SP49.2 TS2M2
HP-UX IPF9.1 TS1M3 SP49.2 TS2M2
Linux9.1 TS1M3 SP49.2 TS2M2
Linux on Itanium9.1 TS1M3 SP49.2 TS2M2
Solaris for x649.1 TS1M3 SP49.2 TS2M2
Tru64 UNIX9.1 TS1M3 SP49.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.