SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 70729: The first column in a result set might be blank when you select a DB2 TIMESTAMP(12) column

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to DB2Microsoft Windows 8 Enterprise 32-bit9.459.4 TS1M8
Microsoft® Windows® for x649.459.4 TS1M8
z/OS9.459.4 TS1M8
z/OS 64-bit9.459.4 TS1M8
Microsoft Windows 8 Enterprise x649.459.4 TS1M8
Microsoft Windows 8 Pro 32-bit9.459.4 TS1M8
Microsoft Windows 8 Pro x649.459.4 TS1M8
Microsoft Windows 8.1 Enterprise 32-bit9.459.4 TS1M8
Microsoft Windows 8.1 Enterprise x649.459.4 TS1M8
Microsoft Windows 8.1 Pro 32-bit9.459.4 TS1M8
Microsoft Windows 8.1 Pro x649.459.4 TS1M8
Microsoft Windows 109.459.4 TS1M8
Microsoft Windows 119.459.4 TS1M8
Microsoft Windows Server 20089.459.4 TS1M8
Microsoft Windows Server 2008 R29.459.4 TS1M8
Microsoft Windows Server 2008 for x649.459.4 TS1M8
Microsoft Windows Server 2012 Datacenter9.459.4 TS1M8
Microsoft Windows Server 2012 R2 Datacenter9.459.4 TS1M8
Microsoft Windows Server 2012 R2 Std9.459.4 TS1M8
Microsoft Windows Server 2012 Std9.459.4 TS1M8
Microsoft Windows Server 20169.459.4 TS1M8
Microsoft Windows Server 20199.459.4 TS1M8
Microsoft Windows Server 20229.459.4 TS1M8
Windows 7 Enterprise 32 bit9.459.4 TS1M8
Windows 7 Enterprise x649.459.4 TS1M8
Windows 7 Home Premium 32 bit9.459.4 TS1M8
Windows 7 Home Premium x649.459.4 TS1M8
Windows 7 Professional 32 bit9.459.4 TS1M8
Windows 7 Professional x649.459.4 TS1M8
Windows 7 Ultimate 32 bit9.459.4 TS1M8
Windows 7 Ultimate x649.459.4 TS1M8
64-bit Enabled AIX9.459.4 TS1M8
64-bit Enabled Solaris9.459.4 TS1M8
Linux for x649.459.4 TS1M8
Solaris for x649.459.4 TS1M8
SAS SystemSAS/ACCESS Interface to DB2 (on SAS Viya)Linux for x64Viya 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.