pipekit/config/modules/mmsl.sql
Paul Trowbridge 6a3ac0e436 Add Bucket 1 CMS→pipekit modules (41 tables)
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>
2026-07-27 12:33:48 -04:00

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