pipekit/config/modules/opcode.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

12 lines
333 B
SQL

SELECT
RTRIM(AECODE) AS aecode,
RTRIM(AEDES1) AS aedes1,
RTRIM(AEDES2) AS aedes2,
RTRIM(AEDES3) AS aedes3,
RTRIM(AEDES4) AS aedes4,
CASE WHEN AEDATE IN (DATE('0001-01-01'), DATE('9999-12-31')) THEN NULL ELSE AEDATE END AS aedate,
AELABR AS aelabr,
RTRIM(AEBK01) AS aebk01,
RTRIM(AEPLNT) AS aeplnt
FROM LGDAT.OPCODE