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

Sets an attribute of the format for a specified stream.

Syntax

tdr.SetFormat(  attribute,  streamno,  direction,  value  )

Syntax Elements

attribute
Parameter type: character

The format attribute to be set.

Currently, the only valid value for attribute is "RECFMT", which defines the input/output record format.

streamno
Parameter type: integer

The stream number.

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

The new value for the format attribute.

The valid values are as follows:
  • 1 for IndicData with row separator sentinels
  • 2 for IndicData with no row or partition separator sentinels

Usage Notes

This function is valid only if called from the contract function.

An error is raised if this function is called from the table operator.

Example: Set the Record Format of an Input Stream

The following statement sets the record format of input stream 0 to IndicData with row separator sentinels:

tdr.SetFormat("RECFMT", 0, "R", 1);