Character Length (Teradata Database) - Teradata Warehouse Miner

Teradata Warehouse Miner User Guide - Volume 2ADS Generation

Product
Teradata Warehouse Miner
Release Number
5.4.4
Published
July 2017
Language
English (United States)
Last Update
2018-05-03
dita:mapPath
fcf1492702067123.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2301
Product Category
Software

The standard character length function is supported for determining the length of variable character data. When used with fixed length character data, the defined column length is always returned. When dragging a Character Length operator into a variable, the following tree element is created.

Variable Creation > Input > Variables: SQL Elements pane - String Functions > Character Length

A column and/or expression for which to get the character length can be moved into the (empty) branch of the tree.

When used in conjunction with the Trim function, the Character Length function can also be used to determine the length of fixed character length data by first trimming pad characters, as follows.

Variable Creation > Input > Variables: SQL Elements pane - String Functions > Character Length > Trim