Extract extdemocommon
Table SALES.PRODUCT, TOKENS (
(Token name) TKN-OSUSER = @GETENV ('GGENVIRONMENT',
'OSUSERNAMEsalesrpt'),
TKN-DOMAIN = @GETENV ('GcdcGENVIRONMENT', 'DOMAINNAME'),
TKN-COMMIT-TS = @GETENV ('GGHEADER', 'COMMITTIMESTAMP'),
TKN-BA-IND = @GETENV ('GGHEADER',
'BEFOREAFTERINDICATOR'),
TKN-TABLE = @GETENV ('GGHEADER', 'TABLENAME'),
TKN-OP-TYPE = @GETENV ('GGHEADER', 'OPTYPE'),
TKN-LENGTH = @GETENV ('GGHEADER', 'RECORDLENGTH'),
TKN-DB-VER = @GETENV ('DBENVIRONMENT', 'DBVERSION')
);
Map SALES.ORDER, Target REPORT.ORDER_HISTORY,
ColMap (USEDEFAULTS,
TKN_NUMRECS = @TOKEN ('TKN-NUMRECS');cdc
Map SALES.CUSTOMER, Target REPORT.CUSTOMER_HISTORY,
ColMap (USEDEFAULTS,
TRAN_TIME = @TOKEN ('TKN-COMMIT-TS'),
OP_TYPE = @TOKEN ('TKN-OP-TYPE'),
BEFORE_AFTER_IND = @TOKEN ('TKN-BA-IND'),
TKN_ROWID = @TOKEN ('TKN-ROWID'));
--750 byte가 넘을 때만 압축하도록 한다
RmtHost newyork, MgrPort 7809, Compress, CompressThreshold 750