17.10 - Fetch Parcel Flavor - Call-Level Interface Version 2

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

Product
Call-Level Interface Version 2
Release Number
17.10
Release Date
October 2021
Content Type
Programming Reference
Publication ID
B035-2418-061K
Language
English (United States)

Usage Notes

The Fetch Parcel Flavor field is the flavor of the parcel containing the returned data.

Language Variable Name
COBOL: DBCAREA-FET-PARCEL-FLAVOR
C: DBCAREA.H: fet_parcel_flavor
Routine Action Taken
DBCHINI: writes
DBCHCL: writes (FET)
Used by Action Taken
application program reads

After a call to DBCHCL for the Fetch function, the application program can obtain the flavor or type of parcel returned if Parcel Mode Fetch was set to Y when DBCHCL was called for the Connect, Run Startup, or Initiate Request function.

DBCHCL puts Fetch Parcel Flavor in the DBCAREA when the Fetch function completes. Thus Fetch Parcel Flavor is available when the application program regains control with return code of zero from a call to DBCHCL for the Fetch function.