TCP/IP example - connect_cdc_sqdata - Latest

Connect CDC (SQData) Apply engine

Product type
Software
Portfolio
Integrate
Product family
Connect
Product
Connect > Connect CDC (SQData)
Version
Latest
Language
English
Product name
Connect CDC (SQData)
Title
Connect CDC (SQData) Apply engine
Copyright
2024
First publish date
2000
Last edition
2024-07-30
Last publish date
2024-07-30T20:19:56.898694

Establish an Apply Engine Runtime instance as the sender on operating system A (SYSA) and an Apply Engine Runtime instance as the receiver on operating system B (SYSB). Differentiate the sender and the receiver Apply Engine scripts with the JOBNAME command.

The sender will read a source relational datastore (EMPLOYEE) and write an XML formatted target datastore to the TCP/IP port.

The receiver will receive the XML formatted source datastore from the TCP/IP port and insert the contents into a source relational store (EMP_ANALYSIS).

Sender Apply Engine Script
JOBNAME (SQD_SENDER);
DESCRIPTION SQLDDL employee.ddl AS EMPL_LAYOUT;
-- Define the source datastore --
DATASTORE  EMPLOYEE
OF RELATIONAL
AS EMPL_IN
DESCRIBED BY EMPL_LAYOUT;
-- Define the target TCP/IP port on system SYSB --
DATASTORE  SYSB@1820
OF XML
AS EMPL_OUT;
Receiver Apply Engine Script
JOBNAME (SQD_RECEIVER);
DESCRIPTION SQLDDL employee.ddl AS EMPL_LAYOUT;
-- Define the source datastore as a TCP/IP port on system SYSA--
DATASTORE  SYSA@1820
OF XML
AS EMPL_IN;
-- Define the target datastore --
DATASTORE  EMP_ANALYSIS
OF RELATIONAL
AS EMPL_IN
DESCRIBED BY EMPL_LAYOUT;