tdr.GetContractDef Function | R Table Operators | Teradata Vantage - 17.10 - tdr.GetContractDef - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

Returns the contract context as a raw vector.

Syntax

tdr.GetContractDef()

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());