Multi‑Session/PLI/IMS (CLI2MPI)
This program is a PL/I IMS MPP Conversational program that demonstrates the use of
the DBCHWAT routine to perform waits on pending requests.
The waits are scheduled by the application program to allow overlap of Teradata DBS
and host processing.
The program performs the following functions.
Calls another program (CLI2CTB) to drop/create the table userid.MYTABLE
Passes an initialized DBCAREA containing the logon string to the called program
Connects multiple sessions
Calls DBCHWAT to wait for available request
Terminates a request and initiates another request after response parcels have been
fetched.
Disconnects sessions when all transactions are processed