×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
If it comes back as a string (with the correct format), a simple %timestamp() should suffice.
-----Original Message-----
From: CRPence [mailto:crpbottle@xxxxxxxxx]
Sent: Sunday, July 16, 2017 10:33 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: date from DB2 window to DB2 Ibm I
On 13-Jul-2017 11:35 -0600, gio.cot wrote:
I'm reading a DB2 table in a windows server (via JDBCR4) ; in this
table there a timestamp column with value like this
"2017-02-16 14:15:55.321",
in my IBM i table I have a column type "Z" ..
how can I to convert the value from DB2 windows to DB2 Ibm i
Note: There is [seems to be] nothing about this topic that is related to RPG programming.
The field type "Z" is the equivalent of SQL TIMESTAMP; I would not expect there to be any requirement to "convert" betwixt the _same_ data type, when using a database SQL interface, which JDBC would seem to be.?
--
Regards, Chuck
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.