OPEN - connect_cdc_sqdata - Latest

Connect CDC (SQData) Apply engine

Product type
Software
Portfolio
Integrate
Product family
Connect
Product
Connect > Connect CDC (SQData)
Version
Latest
ft:locale
en-US
Product name
Connect CDC (SQData)
ft:title
Connect CDC (SQData) Apply engine
Copyright
2026
First publish date
2000
ft:lastEdition
2026-08-03
ft:lastPublication
2026-08-03T15:57:37.298309
L1_Product_Gateway
Integrate
L2_Product_Segment
Data Integration
L3_Product_Brand
Precisely Connect
L4_Investment_Segment
Application Data Integration
L5_Product_Group
ADI - Connect
L6_Product_Name
Connect CDC

The OPEN function opens a Connect CDC (SQData) cursor that was previously defined with CREATE RDBMS CURSOR, CREATE VSAM CURSOR, or CREATE IMS CURSOR.

If the function fails, Connect CDC (SQData) sets the job fatal and processing stops.

Important: Although the SQL statement in an RDBMS cursor is prepared by the underlying datastore, OPEN() follows Connect CDC (SQData) Apply Engine runtime semantics and should not be assumed to behave exactly like a native DB2 for z/OS application cursor statement.

Category

Cursor Functions

Syntax

OPEN(cursor_name)

Parameters and descriptions

Parameter Description
cursor_name Name of a cursor created with CREATE RDBMS CURSOR, CREATE VSAM CURSOR, or CREATE IMS CURSOR.

Usage

  • Use OPEN() before calling FETCH() when you want to process a cursor row by row.
  • OPEN() returns an empty string on success and is normally used as an action function rather than as a value in an expression.
  • The record named in the USING clause should match the number and order of the input values supplied before the cursor is opened.
  • The record named in the DESCRIBED BY clause should match the number, order, and compatible types of the columns returned by the cursor.

Example

CREATE RDBMS CURSOR AS SQDATA_RDBMS_CURSOR WITH
        /+
        SELECT ACCOUNT_ID, ACCOUNT_STATUS
        FROM SQDATA_LOOKUP_SOURCE
        WHERE ACCOUNT_ID = ? AND REGION_CODE = ?
        +/
        DESCRIBED BY SQDATA_CURSOR_ROW
        USING SQDATA_CURSOR_INPUT
        ;
        
        OPEN(SQDATA_RDBMS_CURSOR)
        
        IF FETCH(SQDATA_RDBMS_CURSOR) = '0'
        DO
        TARGET_ACCOUNT_ID = SQDATA_CURSOR_ROW.ACCOUNT_ID
        END
        
        CLOSE(SQDATA_RDBMS_CURSOR)