Date conversion from DB2 timestamp to MS SQL character
GoldenGate version 12.1.2.0.1 with DB2 on iSeries. In an initial load I have the following in the replicat to convert a DB2 timestamp column to a character column on the MS SQL 2008R2 database.
CDACHANGETIMESTAMP = @DATE('YYYY-MM-DD HH:MI:SS.FFFFFF', 'YYYY-MM-DD:HH:MI:SS.FFFFFF', CDA_CHANGE_TIME)
I am running into an issue with DB2 source values that have unexpected results.If the value on the DB2 side is 0001-01-01 00:00:00.000000 the results of using the @date function is 2001-01-01 00:00:00.000000. Any thoughts on how to get the results in the expected format?