Add Type List (QteAddTypeList) API


  Required Parameter Group:


  Service Program: QTECRTVS

  Threadsafe: No

The Add Type List (QteAddTypeList) API is used to add the type information associated with the symbols defined in a specific source region. Each type in the type list needs to be assigned an identifier. The identifier should be unique within the adding type list. Symbols can specify their type information by referring the type identifier.

Each source region can only contain one type list and the type list should be added once, in one call to this API. For this reason, the type information must be build up in a buffer as the preprocessor produces its output. When all the type information for the source region is collected, it can be supplied to this API.


Authorities and Locks

None.


Required Parameter Group

Source region number
INPUT; BINARY(4)

The number of the source region which this type list belongs to. The source region should be added previously via QteAddSourceRegionDescription API.

Type entry buffer
INPUT; CHAR(*)

The input variable containing the type list associated with the symbols defined in the specified source region.

Number of type entries
INPUT; BINARY(4)

The number of entries in the type entry buffer.

Format name
INPUT; CHAR(10)

The format name of the information supplied by the calling program in the type entry buffer parameter.

The valid values for format name are:

TYPFMT0100 Used to add symbol type information.

For more information, see TYPFMT0100 Format.

Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of this structure, see Error code parameter.


TYPFMT0100 Format



Field Descriptions

Type. The type described by the type entry. It may be one of following:

Start of change End of change

Type ID. The identifier assigned to this type. It is unique within the type list and its value should be non-zero.

Type length. The length of one type entry in the type entry buffer. Its value is in bytes.

Variant type information. The type information specific to different types. It occupies 16 bytes for each type and the details are described in section Variant type information format.


Variant Type Information Format

Variant Information for kCLOB_TStart of change, kCHAR_T, kVARCHAR_TEnd of change



Field Descriptions

Type flag. Flags defined to indicate the type attributes. The format of the 32 bit flags are depicted follow.

Currently the flags can be divided into two categories:

Content flags:

Content flags occupy the Bits 29 – 31. Following values are defined for content flags.

Start of change End of change

Normalization flags:

Normalization flags occupy the bit 28. Following values are defined for normalization flags.

Start of change End of change

The flags defined in different categories can be combined together with bitwise or operation.

CCSID. The CCSID of the data content. Value 0 indicates the data is of job CCSID.

Variant Information for kDBCLOB_TStart of change, kGRAPHIC_T, kVARGRAPHIC_T, kDATALINK_T, kXML_TEnd of change



Field Descriptions

CCSID. The CCSID of the data content. Value 0 indicates the data is of job CCSID.



Error Messages



API introduced: V7R3

[ Back to top | Debugger APIs | APIs by category ]