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>
8 lines
230 B
SQL
8 lines
230 B
SQL
SELECT
|
|
RTRIM(BSMJCD) AS bsmjcd,
|
|
RTRIM(BSMNCD) AS bsmncd,
|
|
RTRIM(BSDES1) AS bsdes1,
|
|
RTRIM(BSDES2) AS bsdes2,
|
|
CASE WHEN BSDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE BSDATE END AS bsdate
|
|
FROM LGDAT.MMSL
|