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>
28 lines
724 B
SQL
28 lines
724 B
SQL
SELECT
|
|
RTRIM(CUCUST) AS cucust,
|
|
RTRIM(CUTFMON) AS cutfmon,
|
|
RTRIM(CUTFTUE) AS cutftue,
|
|
RTRIM(CUTFWED) AS cutfwed,
|
|
RTRIM(CUTFTHR) AS cutfthr,
|
|
RTRIM(CUTFFRI) AS cutffri,
|
|
RTRIM(CUTFSAT) AS cutfsat,
|
|
RTRIM(CUTFSUN) AS cutfsun,
|
|
RTRIM(CUTFCSR) AS cutfcsr,
|
|
RTRIM(CUTFCM1) AS cutfcm1,
|
|
RTRIM(CUTFCM2) AS cutfcm2,
|
|
RTRIM(CUTFNM) AS cutfnm,
|
|
RTRIM(CUTFPH) AS cutfph,
|
|
RTRIM(CUTFEM) AS cutfem,
|
|
RTRIM(CUTFCAR) AS cutfcar,
|
|
RTRIM(CUTFEQP) AS cutfeqp,
|
|
RTRIM(CUTFAPT) AS cutfapt,
|
|
RTRIM(CUTFDEL) AS cutfdel,
|
|
RTRIM(CUTFRHR) AS cutfrhr,
|
|
RTRIM(CUGREP) AS cugrep,
|
|
RTRIM(CURREP) AS currep,
|
|
RTRIM(CUNREP) AS cunrep,
|
|
RTRIM(CUMREP) AS cumrep,
|
|
CURCVTMS AS curcvtms,
|
|
CURCVTME AS curcvtme
|
|
FROM LGPGM.USRCUST
|