16.20 - tdr.GetContractDef - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

Purpose

Retrieves the contract context.

Syntax

tdr.GetContractDef()

Return Value

The contract context as a raw vector.

Example: Get the Contract Context

The following statements set the contract context:

myctx <- list( division="appliances", codes=c(10, 34) );
myctxS <- serialize( myctx, NULL );
tdr.SetContractDef( myctxS );

The following statement retrieves the previous contract context in raw form and transforms it to its original form:

myctx <- unserialize(tdr.GetContractDef());