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

Closes an input or output stream.

Returns an integer value of 0 if the operation was successful.

Syntax

tdr.Close(  handle  )

Syntax Elements

handle
Parameter type: raw vector

The handle of the input or output stream that you want to close. This handle was previously returned by the tdr.Open function when you opened the stream.

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: Closing an Input Stream

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

# Close the input stream.

tdr.Close( inHandle );