In a SELECT statement the parameter AT LOCAL is supported, for example:
DCOLLID ,-- =' ' --CHAR(18)
DNAME ,-- =' ' --CHAR(8)
TIMESTMP ,-- =' '--TIMESTMP
KOMMENTAR -- =' '--CHAR(50)
WHERE TIMESTMP AT LOCAL < '2019-09-26-00.00.00.000000'
In an IBM Unload the parameter AT LOCAL is not supported, for example:
UNLOAD TABLESPACE YD01D.YD01SQR
FROM TABLE DB2YD0XD.YD01TQR0
WHEN (TIMESTMP AT LOCAL < '2019-09-26-00.00.00.000000')
INVALID KEYWORD - AT
You can find two sample unload JOBs as an attachment:
1) Column COL_TZ is defined as TIMESTAMP All is working as expected: SELECT with appropriate WHERE clause results in 1 row, the same is true for UNLOAD.
2) Column COL_TZ is now defined as TIMESTAMP WITH TIMEZONE SELECT returns again the one row, but UNLOAD returns now zero rows.
|Who would benefit from this IDEA?||As an IBM customer DBA We have a process with an IBM Unload where we want to use a column Timestamp with Time Zone in an IBM Unload|
How should it work?
In consistent the parameter AT LOCAL should also be used in an IBM UNLOAD analogue to a Fullselect.
|Priority Justification||I set priority to medium, because using DSNTIAUL to UNLOAD with SELECT is not a good way an large tables|
|Client Name||Peter Hartmann <PETERHAR@de.ibm.com> / AUDI|
|IBM's success depends on gathering feedback from customers like yourself. Aha Ideas Portal is the third party tool through which IBM Offering Managers gather feedback from customers such as yourself.|
|IBM is a global organization with business processes, management structures, technical systems and service provider networks that cross borders. As such, the information collected through Aha Ideas Portal (Customer Name, Customer Email Address) will be stored by them in the United States, and handled only as per IBM's instructions and policies. Your data (Name and Email Address) will NOT be shared with other IBM customers.|
|In order to safeguard your information in Aha, do not leave your workstation unattended while using this application, log off after using it, and print only if necessary. If you need to make a hardcopy, remember to pick up the print-out immediately, keep it under lock, and destroy it immediately when no longer needed.|
|NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "email@example.com" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions|