Merge-into-usage - Call-Level Interface Version 2

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

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

Merge-into-usage might be used to ascertain the degree to which the Database supports the SQL MERGE INTO statement.

Refers to the Teradata Database associated with the TDP whose TDP identifier is addressed by the QEPTIDP field and has length specified by the QEPTLEN field. Since they do not apply, the QEPRQST and QEPTOKEN fields must contain binary zeroes.

Returns the degree of support for the SQL MERGE INTO statement.

This item is also included in the Aggregate-support-list query item.

Item Code Mnemonic ResponseDBQERMIU (DbqerMIU for C)
Field Value
43 QEPIMIU QERMIU ('usage' for C and PL/I) A two-byte unsigned integer containing one of the following values:
  • 0 with mnemonic QERMIUN (QER_MergeUsageNone for C, NOT-SUPPORTED for COBOL, QER_NOT_SUPPORTED for PL/I) if the statement is not supported. (This is equivalent to an 'N' for the deprecated Merge-into-support query.)
  • 1 with mnemonic QERMIUS (QER_MergeUsageSingleRow for C, SINGLE-ROW for COBOL, QER_MERGE_USAGE_SINGLE_ROW for PL/I) if only single-row MERGE INTO is supported. (This is equivalent to a 'Y' for the deprecated Merge-into-support query.)
  • 2 with mnemonic QERMIUM (QER_MergeUsageMultiRow for C, MULTI-ROW for COBOL, QER_MERGE_USAGE_MULTI_ROW for PL/I) if multi-row MERGE INTO is supported.