tdr.LobCol2Loc Function | R Table Operators | Teradata Vantage - tdr.LobCol2Loc - Analytics Database - Teradata Vantage

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-07-11
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
B035-1147
lifecycle
latest
Product Category
Teradata Vantageā„¢

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.

Syntax

tdr.LobCol2Loc(  streamno,  attributenr)

Syntax Elements

streamno
Parameter type: integer

The output stream number.

attributenr
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)