Sample Subroutine (CLI2CTB) - IBM IMS Interface for Teradata

IBM IMS Interface for Teradata® Reference - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
IBM IMS Interface for Teradata
Release Number
17.20
Published
November 2023
ft:locale
en-US
ft:lastEdition
2023-11-17
dita:mapPath
fks1695366180215.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
sjj1470436571402
Product Category
Teradata Tools and Utilities

This program is a COBOL subroutine that may be called by both COBOL and PL/I programs to perform the following functions:

  • Connect a Teradata session using the logon string contained in the DBCAREA.

    The DBCAREA is actually contained in the working storage (COBOL) or static storage (PL/I) of the calling program.

    The address of the DBCAREA is passed to the called program.

  • DROP and CREATE a table into which data rows will be inserted and updated.
  • Move error messages and codes to the calling program’s storage.

    The messages (IMS) are sent by the calling program to a terminal.

  • Disconnect a session before returning to the calling program.

CLI2CTB must be compiled and linked before executing the sample programs CLI2MCI or CLI2MPI. The JCL for compiling CLI2CTB is described in the next section.