The Move Area - Call-Level Interface Version 2

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

Product
Call-Level Interface Version 2
Release Number
16.10
Published
May 2017
Language
English (United States)
Last Update
2018-05-01
dita:mapPath
ggf1488824663364.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2418
lifecycle
previous
Product Category
Teradata Tools and Utilities

The Teradata Database application program may allocate a Move area. It is similar to the response buffer but only needs to contain room for one parcel at a time.

If the application program has allocated a Move area, when the application program sends in a request, it may specify in the DBCAREA that the Move area is to be used. In that case, each time DBCHCL is called for the Fetch function, DBCHCL moves the next parcel, which is the one the application program is about to use, into the Move area instead of making the parcel available in the response buffer.

In some application languages, such as COBOL which does not support pointers, having the next parcel separate is critical and easily worth the small use of space for the Move area and the small loss of time for DBCHCL to do the copy.

In other application languages, such as C, PL/1, and IBM Assembler, reading the parcel directly from the response buffer is no problem; but using a Move area may have an advantage such as providing word alignment for the start of the Move area. Move Mode is primarily for use in languages that do not support pointer operations.