tdr.Write Function | R Table Operators | Teradata Vantage - tdr.Write - 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ā„¢

Writes a row to the output stream. Returns one of the following codes:

Return Code Description
0 The operation was successful.
-1 The end of stream was reached.
-2 The table operator aborted.
-3 The input parameter has an invalid type.
-4 The input parameter has an invalid value.
-5 This function was called from the contract function.

Syntax

tdr.Write(  handle  )

Syntax Elements

handle
Parameter type: raw vector

The handle of the output stream returned by the tdr.Open function.

Usage Notes

Before you call this function, you must call the tdr.Open function to open the output stream. Then pass the handle returned from tdr.Open as an argument to this function.

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

Example: Write the Current Row to the Spool

The following statement writes the current row to the spool. Before calling tdr.Write, you must set the values of individual attributes in the current row using the tdr.SetAttributeByNdx function.

tdr.Write( outHandle );