Invoking DBCCMD From a Program - Teradata Director Program

Teradata® Director Program Reference - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata Director Program
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-11-17
dita:mapPath
cki1641301536147.ditamap
dita:ditavalPath
obe1474387269547.ditaval
dita:id
frc1470439950465
Product Category
Teradata Tools and Utilities

DBCCMD expects standard OS linkage conventions. The TSO CALL command invokes the called program using these conventions. In particular, Register 1 must point to a parameter list, and other registers to different areas, as follows:

Register Description
R1 Pointer to parmlist.
R13 Pointer to a 72-byte save area (will be used).
R14 Return address to calling program.
R15 entry address of DBCCMD.

Construct the parmlist and argument as follows:

parmlist: 1 full word containing address of argument. (Bit 0 should be set to b’1’ to indicate the last parameter.)
argument: +0: 2-byte length of following parmstring.

+2: command parmstring, as described earlier.