Problem Note 18400: Different column Format is given when using ORDER BY and a date literal
within a SELECT statement using the Sybase engine
A different column format is given when using an ORDER BY clause and a
date literal within a SELECT statement with SAS/ACCESS® Interface to
Sybase. When using a datetime, date or time literal with PROC SQL,
implicit SQL Pass-Through is used and is not using the CONVERT function
before sending the value to the database, therefore giving a different
format.
An example of this is included below:
libname tgm_data sybase user=newuser pw=newpwd;
%let datum='24Apr2006'd;
proc sql;
create table x as
select &datum as zeit_dat,
* from tgm_data.class
order by sex;
create table z as
select &datum as zeit_dat,
* from tgm_data.class;
quit;
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 | Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Linux on Itanium | 9.1 TS1M3 SP4 | |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
Tru64 UNIX | 9.1 TS1M3 SP4 | 9.2 TS1M0 |
*
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.
Type: | Problem Note |
Priority: | high |
Topic: | SAS Reference ==> Procedures ==> ACCESS
|
Date Modified: | 2006-09-04 15:07:18 |
Date Created: | 2006-08-31 11:47:53 |