Examples | Derive Function | Vantage Analytics Library - Examples - Vantage Analytics Library

Vantage Analytics Library User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Lake
Product
Vantage Analytics Library
Release Number
2.2.0
Published
June 2025
ft:locale
en-US
ft:lastEdition
2025-07-02
dita:mapPath
ibw1595473364329.ditamap
dita:ditavalPath
iup1603985291876.ditaval
dita:id
zyl1473786378775
Product Category
Teradata Vantage

Formulas with and without Parentheses

The formula with parentheses needs two pairs of single quotation marks. The formula without parentheses needs only one pair of single quotation marks.

call td_analyze (
  'vartran',
  'database = val_source;
   tablename = customer;
   derive =
     {formula (x+y+z), arguments (income, age, years_with_bank), outputname (myoutput)}
     {formula (''x(x+1)''), arguments (age), outputname (myoutput2)};'
);

Null Replacement

keycolumns is required.

call td_analyze (
  'vartran',
  'database = val_source;
   tablename = customer;
   keycolumns = cust_id;
   derive =
     formula (''x(x+1)''), arguments (age), outputname (myoutput), nullstyle (literal, 0);'
);