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

SQL External Routine Programming

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-03-30
dita:mapPath
iiv1628111441820.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
qnu1472247494689
lifecycle
latest
Product Category
Teradata Vantageā„¢

Returns a real value representing the number of bytes in the specified LOB.

Syntax

tdr.GetLobLength(locator)

Syntax Elements

locator
Parameter type: integer

See how this function retrieves the length of an input LOB.

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 Length of an Input LOB

# Open the input stream
inHandle <- tdr.Open("R", 0, 0);

# Get the 5th attribute in the current row (LOB locator)
att5 <- tdr.GetAttributeByNdx(inHandle, 4, NULL);

# Get the length of the input LOB
length <- tdr.GetLobLength(att5);