Full-reload modules for the CMS/DB2 tables migrated off /opt/sync, landing in cms.*. Columns introspected fresh from DB2 (QSYS2.SYSCOLUMNS). Three large tables use incremental merge ported from the legacy sync instead of full reload: iprcctn/iprccto (date watermark on t8date/t7date), ffpdglr1 (fiscal- period watermark via rprh join, keyed on btid). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
25 lines
661 B
SQL
25 lines
661 B
SQL
SELECT
|
|
RTRIM(T8PLCD) AS t8plcd,
|
|
RTRIM(T8PART) AS t8part,
|
|
RTRIM(T8UNIT) AS t8unit,
|
|
CASE WHEN T8DATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE T8DATE END AS t8date,
|
|
T8TIME AS t8time,
|
|
T8VOLL AS t8voll,
|
|
T8PRIC AS t8pric,
|
|
RTRIM(T8DISC) AS t8disc,
|
|
RTRIM(T8DISF) AS t8disf,
|
|
T8CPCT AS t8cpct,
|
|
T8CRAT AS t8crat,
|
|
RTRIM(T8F0CM) AS t8f0cm,
|
|
RTRIM(T8FUT1) AS t8fut1,
|
|
RTRIM(T8FUT2) AS t8fut2,
|
|
RTRIM(T8FUT3) AS t8fut3,
|
|
RTRIM(T8FUT4) AS t8fut4,
|
|
RTRIM(T8FUT5) AS t8fut5,
|
|
RTRIM(T8FUT6) AS t8fut6,
|
|
RTRIM(T8FUT7) AS t8fut7,
|
|
RTRIM(T8FUT8) AS t8fut8,
|
|
RTRIM(T8FUT9) AS t8fut9
|
|
FROM LGDAT.IPRCCTN
|
|
WHERE T8DATE >= '{iprcctn_wm}'
|