16.20 - tdr.GetAsClauseName - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Release Date
April 2020
Content Type
Programming Reference
Publication ID
B035-1147-162K
Language
English (United States)

Purpose

Retrieves the alias name (AS name) for a specified stream.

Syntax

tdr.GetAsClauseName(streamno,direction)
streamno
Parameter type: integer

The input or output stream number.

direction
Parameter type: character
Valid values are as follows:
  • "R" (input)
  • "W" (output)

Return Value

The name from the AS name clause in UNICODE.

If there is no AS name clause, null is returned.

Example: Get the Name From the AS name Clause

stream <- 0;
direction <- "R";
name <- tdr.GetAsClauseName(stream,direction);
print(name);

The following shows the result from the print statement:

$value
[1] "abc"