Function - Teradata Tools and Utilities

Teradata® Call-Level Interface Version 2 Reference for Mainframe-Attached Systems - 20.00

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Lake
Product
Teradata Tools and Utilities
Release Number
20.00
Publication Date
October 2023
Content Type
Programming Reference
Publication ID
B035-2417-103K
ft:locale
en-US
ft:lastEdition
2025-11-21
dita:mapPath
apo1695647516691.ditamap
dita:ditavalPath
obe1474387269547.ditaval
ft:sourceId
dita
dita:id
vfj1470443597526
Product Category
Teradata Tools and Utilities

Function is a four-byte field that is used by an application to specify the operation to be carried out by DBCHCL. Each of the following codes represents a different operation:

Code Operation
1 Connect
2 Disconnect
3 RunStartUp
4 Initiate Request
5 Fetch
6 Rewind
7 Abort
8 End Request
11 Initiate With Protocol-function
14 Command
15 ContinueRequest
In this language... The variable name for Function is...
COBOL DBCAREA-FUNC
PL/I FUNC
C, C++ func
IBM Assembler DBCAFUNC
This routine... Does this for Function...
DBCHINI writes
DBCHCL reads
Function is used by... To...
applications write

An application must set the Function field to the appropriate nonzero value before calling DBCHCL. Use mnemonics for the codes. Mnemonics are provided in the language definition file for the DBCAREA.