CLOSE - 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-06-16
ft:lastPublication
2026-06-16T09:39:49.930000
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 CLOSE function closes an open Connect CDC (SQData) cursor and releases the resources associated with the current query.

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

Tip: CLOSE() is the explicit companion to OPEN() and FETCH() when you manage cursor processing yourself. FOREACH() performs its own open and close processing automatically for cursor iteration.

Category

Cursor Functions

Syntax

CLOSE(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

  • Call CLOSE() after you finish processing rows with FETCH().
  • CLOSE() returns an empty string on success and is normally used as an action function rather than as a value in an expression.
  • Closing the cursor makes the current query inactive and completes the explicit cursor lifecycle started by OPEN().

Example

OPEN(SQDATA_RDBMS_CURSOR)
        
        IF FETCH(SQDATA_RDBMS_CURSOR) = '0'
        DO
        TARGET_ACCOUNT_ID = SQDATA_CURSOR_ROW.ACCOUNT_ID
        END
        
        CLOSE(SQDATA_RDBMS_CURSOR)