DBCHCL - Call-Level Interface Version 2

Teradata Call-Level Interface Version 2 Reference for Workstation-Attached Systems

Product
Call-Level Interface Version 2
Release Number
15.00
Language
English (United States)
Last Update
2018-09-25
dita:id
B035-2418
lifecycle
previous
Product Category
Teradata Tools and Utilities

DBCHCL

If an active request was completed, the state flag of its RCB is posted as pending, making the request available for fetches.

Using the information in the DBCAREA, DBCHCL:

  • Creates an RCB for the new request
  • Inserts it at the head of the request lists on the associated SCB
  • Fills in its options fields from either the SCB of the associated session or the DBCAREA if the set options flag is set to Y. allocates request and response buffers based on the lengths specified in the DBCAREA or, if none are given, the default lengths specified in the CLI2SPB
  • Loads the Request Buffer with parcels:
  • A Req, FMReq or IndicReq parcel depending on the Record Mode option flag, containing the Teradata SQL request
  • One Data or IndicData parcel if the Teradata SQL request contained a Teradata SQL statement with a USING modifier
  • A Resp or KeepResp parcel containing the length of the Response Buffer
  • In the MTDP Control Block, DBCHCL:

  • Provides the length of and a pointer to the Request Buffer
  • Provides the length of and a pointer to the Response Buffer
  • Modifies the selfrecov option (if needed).
  • Sets MTDPSTA in the function code of the MTDP Control Block
  • Assigns a request id
  • Calls MTDP