Problem Note 70729: The first column in a result set might be blank when you select a DB2 TIMESTAMP(12) column
Starting in SAS® 9.4M8 (TS1M8), the first column in a result set might be blank under these conditions:
- The program reads data from DB2.
- The data contains a DB2 TIMESTAMP(12) column.
This issue typically surfaces when you run the SQL procedure. However, it can occur when you run any procedure or the DATA step, or when you view the table directly.
To check the data type from SAS, run the CONTENTS procedure against the DB2 table. If you are affected, the TIMESTAMP(12) column shows with a SAS format of DATETIME31.12.
Alternatively, you can run the following code to identify all TIMESTAMP(12) columns in your DB2 library:
PROC SQL ;
CONNECT TO DB2 (db2-connection-options) ;
SELECT * FROM CONNECTION TO DB2
(
SELECT tabschema, tabname, colname, typename, length, scale
FROM syscat.columns
WHERE typename = 'TIMESTAMP' AND scale=12
) ;
DISCONNECT FROM DB2 ;
QUIT ;
The only workaround is to ensure that the DB2 TIMESTAMP(12) column is selected before any other columns are selected. This workaround might be possible only if you use certain procedures such as SQL and PRINT.
Click 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 DB2 | Microsoft Windows 8 Enterprise 32-bit | 9.45 | | 9.4 TS1M8 | |
Microsoft® Windows® for x64 | 9.45 | | 9.4 TS1M8 | |
z/OS | 9.45 | | 9.4 TS1M8 | |
z/OS 64-bit | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows 8 Enterprise x64 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows 8 Pro 32-bit | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows 8 Pro x64 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows 8.1 Enterprise x64 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows 8.1 Pro 32-bit | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows 8.1 Pro x64 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows 10 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows 11 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2008 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2008 R2 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2008 for x64 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2012 Datacenter | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2012 R2 Std | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2012 Std | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2016 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2019 | 9.45 | | 9.4 TS1M8 | |
Microsoft Windows Server 2022 | 9.45 | | 9.4 TS1M8 | |
Windows 7 Enterprise 32 bit | 9.45 | | 9.4 TS1M8 | |
Windows 7 Enterprise x64 | 9.45 | | 9.4 TS1M8 | |
Windows 7 Home Premium 32 bit | 9.45 | | 9.4 TS1M8 | |
Windows 7 Home Premium x64 | 9.45 | | 9.4 TS1M8 | |
Windows 7 Professional 32 bit | 9.45 | | 9.4 TS1M8 | |
Windows 7 Professional x64 | 9.45 | | 9.4 TS1M8 | |
Windows 7 Ultimate 32 bit | 9.45 | | 9.4 TS1M8 | |
Windows 7 Ultimate x64 | 9.45 | | 9.4 TS1M8 | |
64-bit Enabled AIX | 9.45 | | 9.4 TS1M8 | |
64-bit Enabled Solaris | 9.45 | | 9.4 TS1M8 | |
Linux for x64 | 9.45 | | 9.4 TS1M8 | |
Solaris for x64 | 9.45 | | 9.4 TS1M8 | |
SAS System | SAS/ACCESS Interface to DB2 (on SAS Viya) | Linux for x64 | | | Viya platform | |
*
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.
When a DB2 TIMESTAMP(12) column is retrieved, the resulting table or output might show the first column as blank.
Type: | Problem Note |
Priority: | high |
Topic: | Data Management ==> Data Sources ==> External Databases ==> DB2
|
Date Modified: | 2024-04-02 13:08:02 |
Date Created: | 2024-03-27 06:09:33 |