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

25 lines
513 B
SQL

SELECT
RTRIM(SRCE) AS srce,
RTRIM(WRKO) AS wrko,
BTID AS btid,
"ENT#" AS "ent#",
"SEQ#" AS "seq#",
RTRIM(PART) AS part,
RTRIM(RPLN) AS rpln,
PQTY AS pqty,
RTRIM(ARSC) AS arsc,
RTRIM(ADEP) AS adep,
RTRIM(ACTN) AS actn,
RTRIM(ACCT) AS acct,
AMNT AS amnt,
RTRIM(SRSC) AS srsc,
RHRS AS rhrs,
RCRW AS rcrw,
SHRS AS shrs,
SCRW AS scrw,
RRAT AS rrat,
RSIZ AS rsiz
FROM FANALDEV.FFPDGLR1
INNER JOIN LGDAT.RPRH ON NWBTID = BTID
WHERE DIGITS(NWFSYY)||DIGITS(NWFSPP) >= {ffpdglr1_wm}