Initiate - Parallel Transporter

Teradata Parallel Transporter Operator Programmer Guide

Product
Parallel Transporter
Release Number
16.20
Published
October 2018
Language
English (United States)
Last Update
2018-10-10
dita:mapPath
vxb1527114222350.ditamap
dita:ditavalPath
Audience_PDF_include.ditaval
dita:id
B035-2435
lifecycle
previous
Product Category
Teradata Tools and Utilities

Purpose

Initiate is the user-provided function that establishes the processing environment for an operator.

Structure

#include <pxoper.h>
PXSTC_Code PX_Initiate(PX_OperatorHandle  operator, PX_LogInt  phase);

where the following is true:

Parameter Function Specification
operator input Operator handle associated with the Initiate function.

The operator parameter is a handle that identifies the operator that the Initiate function is bound to. You can use this handle to invoke any of the Teradata PT service functions described in this chapter.

phase input Current processing phase number

Return Codes

The following Initiate function status codes are defined by the Teradata PT operator interface.

Status Code Signifies
PXSTC_EndMethod Successful initialization of the operator.
PXSTC_NextPhase Proceed with the next processing phase.
PXSTC_SamePhase Continue with the current processing phase.

Define additional Initiate function status codes as required to support your operator.

Usage Notes

Consider the following when defining the Initiate function.

Topic Usage Notes
Status If the function status is PXSTC_EndMethod, the processing environment was successfully established by this function. See also the Terminate function.