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

Teradata Vantageā„¢ - SQL External Routine Programming

Advanced SQL Engine
Teradata Database
Release Number
Release Date
July 2021
Content Type
Programming Reference
Publication ID
English (United States)

Computes the output LOB locator needed to append data to a LOB in the current output row. Returns an integer representing the output LOB locator.


tdr.LobCol2Loc(  streamno,  attributenr)

Syntax Elements

Parameter type: integer

The output stream number.

Parameter type: integer

The attribute number, starting from 0.

Usage Notes

This function is valid only if called from the table operator.

An error is raised if the function is called from the contract function.

Example: Get the Output LOB Locator

Consider an output table with 5 attributes: (int, int, int, int, clob).

The following statement gets the output locator of the last attribute in the current row:

loc <- tdr.LobCol2Loc(0,4)