Relational datastores - 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

For relational datastores, a file specified for a DESCRIPTION command can contain an SQL SELECT statement listing the columns to be selected. This is the SQLDML description type, which allows the relational datastore descriptions to be retrieved directly from the database catalog. This method can be used as an alternative to using relational DDL descriptions (SQLDDL).

Using an SQL SELECT statement as the description allows for specifying relational views as datastores, and enables you to utilize SQL functions whose results define the columns (fields) of the datastore.

If an SQL SELECT is used to describe a datastore record layout, the Parser must have connectivity to the relational database where the table or view being described resides. The RDBMS command must be used to provide the information to connect to the specific relational database on all systems, other than DB2 on the mainframe (z/OS), which uses the DB2 Call Attach Facility to handle the connection.

The following diagram illustrates a one-to-one and a one-to-many DESCRIPTION to DATASTORE relationship using the RDBMS command.

Example

The following example illustrates using an RDBMS command to connect to relational database DB01. The DESCRIPTION command references a file, select.dml, that contains an SQL SELECT NAME, ADDRESS statement for the table CUSTOMER.
RDBMS   DB01  userid  password;
DESCRIPTION SQLDML /users/sqdata/select.dml
          AS TABLE_DESC;
DATASTORE CUSTOMER
        OF RELATIONAL
        AS CUSTOMER_IN
        DESCRIBED BY TABLE_DESC;

When the Parser processes the script, a connection is made to the database DB01 and the description for the CUSTOMER table will be returned as a two (2) columns (NAME and ADDRESS).