P. 1
6706865-Transformation-Language-Reference

6706865-Transformation-Language-Reference

|Views: 624|Likes:
Published by Adi Chilukuri

More info:

Published by: Adi Chilukuri on Feb 08, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

11/09/2012

pdf

text

original

A

ABORT function
description 58
ABS function
description 59
absolute values
obtaining 59
ADD_TO_DATE function
description 60
aggregate functions
AVG 65
COUNT 76
description 50
FIRST 91
LAST 111
list of 216
MAX (dates) 125
MAX (numbers) 126
MEDIAN 128
MIN (dates) 133
MIN (numbers) 135
null values 18, 52
PERCENTILE 143
STDDEV 183
SUM 188
VARIANCE 212

AND

reserved word 10

arithmetic

date/time values 47
arithmetic operators
description 23
using strings in expressions 23
using to convert data 23

ASCII

See also Installation and Configuration Guide
See also Workflow Administration Guide

CHR function 68
converting ASCII values 68
converting characters to ASCII values 63
converting to Unicode values 70

ASCII function
description 63

average

aggregate functions for determining 65
returning 139
AVG function
description 65

C

calendars

date types supported 34

capitalization

strings 99, 120, 211

230

Index

case

converting to uppercase 211

CEIL function
description 67
character functions
ASCII 63
CHR 68
CHRCODE 70
CONCAT function 72
INITCAP 99
INSTR 100
LENGTH 115
list of 52
LOWER 120
LPAD 121
LTRIM 123
METAPHONE 130
REPLACECHR 148
REPLACESTR 151
RPAD 160
RTRIM 162
SOUNDEX 180
SUBSTR 185
summary 217
UPPER 211
character strings
converting from dates 192
converting to dates 198

characters

adding to strings 121, 160
ASCII characters 63, 68
capitalization 99, 120, 211
counting 185
encoding 130, 180
removing from strings 123, 162
replacing multiple 151
replacing one 148
returning number 115
Unicode characters 63, 68, 70

CHR function
description 68
inserting single quotes 6, 69
CHRCODE function
description 70

comments

adding to expressions 9
comparison operators
description 25
using strings in expressions 25
CONCAT function
description 72

inserting single quotes using 73

concatenating
strings 24, 72

constants

DD_INSERT 13
DD_REJECT 14
DD_UPDATE 15
definition 2
FALSE 16
NULL 17
TRUE 19
conversion functions
description 53
summary 219
TO_CHAR (dates) 192
TO_CHAR (numbers) 196
TO_DATE 198
TO_DECIMAL 202
TO_FLOAT 203
TO_INTEGER 204

converting

date strings 35
COS function
description 74
COSH function
description 75

cosine

calculating 74
calculating hyperbolic cosine 75
COUNT function
description 76
CUME function
description 79

D

data cleansing functions
description 53
summary 220

datatypes

Date/Time 34
date functions

ADD_TO_DATE 60
DATE_COMPARE 81
DATE_DIFF 82
GET_DATE_PART 94
LAST_DAY 113
MAX (dates) 125
MIN (dates) 133
ROUND 154

Index 231

SET_DATE_PART 166
summary 222
TRUNC (Dates) 206
date/time values
adding 60
DATE_COMPARE function
description 81
DATE_DIFF function
description 82

dates

See also date functions
converting to character strings 192
default format 37
flat files 37
format strings 39
functions 54
Julian 34
Modified Julian 34
overview 34
performing arithmetic 47
relational databases 37
rounding 154
truncating 206
year 2000 35
DD_DELETE constant
description 12
reserved word 10
update strategy example 12
DD_INSERT constant
description 13
reserved word 10
update strategy example 13
DD_REJECT constant
description 14
reserved word 10
update strategy example 14
DD_UPDATE constant
description 15
reserved word 10
update strategy example 15
decimal arithmetic
See high precision
decimal values
converting 202
DECODE function
description 85
internationalization 3
default date format
defined 37
default value

See also Designer Guide

ERROR function 88
division calculation
returning remainder 137

documentation
conventions xxv
description xxiv
online xxv
double precision values
floating point numbers 203

E

empty string

testing for 115

encoding

characters 130, 180
ERROR function
default value 88
description 88
EXP function
description 90
exponent values
calculating 90
returning 146

expressions

See also Designer Guide

adding comments 9
conditional 16
in transformations 2
overview 3
syntax 5
using operators 22
using SYSDATE 29
:EXT reference qualifier
description 6
reserved word 10

F

FALSE constant
description 16
reserved word 10
filter conditions
aggregate functions 52
null values 18
Filter transformation

See also Transformation Guide

using ISNULL function 103
FIRST function
description 91

232

Index

flat files

dates 37
floating point number
See double precision values
FLOOR function
description 93

format

from character string to date 198
from date to character string 192

format strings
dates 39
definition 34
IS_DATE function 43
Julian day 40, 44
matching 44
Modified Julian day 40, 44
TO_CHAR function 40
TO_DATE function 43

functions

aggregate 50, 216
categories 50
character 52, 217
conversion 53, 219
data cleansing 53, 220
date 54, 222
definition 2
internationalization 3
numeric 55, 223
scientific 55, 225
special 55, 226
test 56, 227
variable 56

G

GET_DATE_PART function
description 94
Gregorian calendar
in date functions 34

H

high precision

See also Workflow Administration Guide

ABS function 59
AVG function 65
CUME function 79
MAX function 126
MEDIAN function 128
MIN function 135

MOVINGAVG function 139
MOVINGSUM function 141
PERCENTILE function 143
ROUND function 157
STDDEV function 183
SUM function 188
TO_DECIMAL function 202
TRUNC function 209
hyperbolic cosine
function 75
hyperbolic sine
function 179
hyperbolic tangent
function 191

I

IIF function

description 96
internationalization 3

Informatica

documentation xxiv
Webzine xxvi
INITCAP function
description 99
internationalization 3
INSTR function
description 100

integers

converting other values 204
internationalization
functions affected 3
invalid expression 3
sort order 3
IS_DATE function
description 104
format strings 43
IS_NUMBER function
description 107
IS_SPACES function
description 109
ISNULL function
description 103

J

J format string

using with IS_DATE 45
using with TO_CHAR 42
using with TO_DATE 45

Index 233

Julian dates

in date functions 34

Julian day

format string 40, 44

L

LAST function
description 111
LAST_DAY function
description 113
LENGTH function
description 115
empty string test 115

literals

single quotes in 69, 73
single quotes requirement 6
:LKP reference qualifier
description 6
reserved word 10

LN function

description 116
local variables
definition 2
description 31
LOG function
description 117

logarithm

returning 116, 117
logical operators
description 26
LOOKUP function
description 118
Lookup transformation

See also Designer Guide

instead of LOOKUP function 118
LOWER function
description 120
internationalization 3
LPAD function
description 121
LTRIM function
description 123

M

mapping parameters

See also Designer Guide

definition 2

mapping variables

See also Designer Guide

definition 2

mappings

See Designer Guide

MAX (dates) function
description 125
internationalization 3
MAX (numbers) function
description 126
internationalization 3
MEDIAN function
description 128
METAPHONE
description 130

milliseconds

truncating 34
MIN (dates) function
description 133
internationalization 3
MIN (numbers) function
description 135
internationalization 3
minimum value
returning 133
MOD function
description 137
Modified Julian day
format string 40, 44

month

returning last day 113
MOVINGAVG function
description 139
MOVINGSUM function
description 141
multiple searches
example of TRUE constant 19

N

negative values
SIGN 177
nested expressions
operators 22

NOT

reserved word 10
NULL constant
description 17
reserved word 10

234

Index

null values

aggregate functions 18, 52
checking for 103
filter conditions 18
in comparison expressions 17
ISNULL 103
logical operators 26
operators 18
string operator 24

numbers

rounding 157
truncating 209
numeric functions
ABS 59
CEIL 67
CUME 79
description 55
EXP 90
FLOOR 93
LN 116
LOG 117
MOD 137
MOVINGAVG 139
MOVINGSUM 141
POWER 146
ROUND (numbers) 157
SIGN 177
SQRT 182
summary 223
TRUNC (numbers) 209

numeric values

converting to text strings 196
returning absolute value 59
returning cosine 74
returning hyperbolic cosine of 75
returning hyperbolic sine 179
returning hyperbolic tangent 191
returning logarithms 116, 117
returning minimum 135
returning sine 178
returning square root 182
returning standard deviation 183
returning tangent 190
SIGN 177

O

operator precedence
expressions 22

operators

arithmetic 23
comparison operators 25
definition 2
logical operators 26
null values 18
string operators 24
using strings in arithmetic 23
using strings in comparison 25

OR

reserved word 10

P

PERCENTILE function
description 143

ports

syntax 6
positive values
SIGN 177
POWER function
description 146
PowerCenter Server
handling nulls in comparison expressions 17
PowerMart 3.5 functions
LOOKUP 118
primary key constraint
null values 17
PROC_RESULT variable
reserved word 10

Q

quotation marks

inserting single using CHR function 6

R

reference qualifiers
description 6
relational databases
dates 37
REPLACECHR function
description 148
REPLACESTR function
description 151
reserved words
list 10

Index 235

return values
definition 2
syntax 6
ROUND (dates) function
description 154
ROUND (numbers) function
description 157

rounding

dates 154
numbers 157

rows

avoiding spaces 109
counting 76
returning average 139
returning first row 91
returning last row 111
returning sum 141
running total 79
skipping 88
RPAD function
description 160
RR format string
description 35
difference between YY and RR 36
using with IS_DATE 45
using with TO_CHAR 42
using with TO_DATE 45
RTRIM function
description 162

running total
returning 79

S

scientific functions
COS function 74
COSH 75
description 55
SIN 178
SINH 179
summary 225
TAN 190
TANH 191
:SD reference qualifier
description 6
reserved word 10
:SEQ reference qualifier
description 6
reserved word 10

sessions

stopping 58
$$$SessStartTime
description 28
example using in date functions 28
SESSSTARTTIME variable
description 29
reserved word 10
using in date functions 29, 47
SET_DATE_PART function
description 166
SETCOUNTVARIABLE function
description 164
SETMAXVARIABLE function
description 169
SETMINVARIABLE function
description 172
SETVARIABLE function
description 175
SIGN function
description 177

SIN function

description 178

sine

returning 178, 179
single quotes in string literals
CHR function 69
using CHR and CONCAT functions 73

SINH function
description 179

skipping

rows 88

sort order

internationalization 3

SOUNDEX

description 180
:SP reference qualifier
description 6
reserved word 10

spaces

avoiding in rows 109
removing with DD_REJECT 14

special functions
ABORT 58
DECODE 85
description 55
ERROR 88
IIF 96
LOOKUP 118
summary 226

236

Index

SPOUTPUT

reserved word 10
SQRT function
description 182

square root

returning 182
SSSSS format string
using with IS_DATE 46
using with TO_CHAR 42
using with TO_DATE 46
standard deviation
returning 183
STDDEV function
description 183

stopping

sessions 58
string conversion
dates 35
string literals

single quotes in 69, 73
single quotes requirement 6

string operators
description 24

strings

adding blanks 121
adding characters 121
capitalization 99, 120, 211
character set 100
concatenating 24, 72
converting character strings to dates 198
converting dates to characters 192
converting length 160
converting numeric values to text strings 196
number of characters 115
removing blanks 123
removing blanks and characters 162
removing characters 123
replacing multiple characters 151
replacing one character 148
returning portion 185
SUBSTR function
description 185

sum

returning 141, 188
SUM function
description 188

syntax

expression 5
general rules 7
ports 6
return values 6

SYSDATE variable
description 29
example 29
reserved word 10
system variables
description 28

T

TAN function
description 190

tangent

returning 190, 191
TANH function
description 191
TC_COMMIT_AFTER variable
description 31
TC_COMMIT_BEFORE variable
description 31
TC_CONTINUE_TRANSACTION variable
description 31
TC_ROLLBACK_BEFORE variable
description 31
:TD reference qualifier
description 6
reserved word 10

test functions
description 56
IS_DATE 104
IS_NUMBER 107
IS_SPACES 109
ISNULL 103
summary 227

text strings

converting numeric values 196
TO_CHAR (dates) function
description 192
examples 41
format strings 40
TO_CHAR (numbers) function
description 196
TO_DATE function
description 198
examples 45
format strings 43
TO_DECIMAL function
description 202
TO_FLOAT function
description 203

Index 237

TO_INTEGER function
description 204
transaction control variables
description 31
transformation expressions
null constraints 17
overview 3
transformation language
compared to SQL 5
operators 22
overview 2
reserved words 10
transformation language components
overview 2
transformation language updates
boolean expressions 17
comparison expressions 17
transformations

See Designer Guide

TRUE constant
description 19
reserved word 10
TRUNC (dates) function
description 206
TRUNC (numbers) function
description 209

truncating

date/time values 34
dates 206
numbers 209

U

Unicode

See also Installation and Configuration Guide
See also Workflow Administration Guide

converting characters to Unicode values 63
converting to ASCII values 70
converting Unicode values 68

update strategy

DD_DELETE example 12
DD_INSERT example 13
DD_REJECT example 14
DD_UPDATE example 15
UPPER function
description 211
internationalization 3

V

variable functions
description 56
SETCOUNTVARIABLE 164
SETMAXVARIABLE 169
SETMINVARIABLE 172
SETVARIABLE 175
with multiple partitions 56

variables

$$$SessStartTime 28
local variables 31
SESSSTARTTIME 29
SYSDATE 29
system variables 28
TC_COMMIT_AFTER 31
TC_COMMIT_BEFORE 31
TC_CONTINUE_TRANSACTION 31
TC_ROLLBACK_BEFORE 31
transaction control variables 31
WORKFLOWSTARTTIME 29
VARIANCE function
description 212

W

webzine xxvi
workflow variables
definition 2
WORKFLOWSTARTTIME variable
description 29
reserved word 10
using in date functions 30

Y

year 2000

dates 35
YY format string

difference between RR and YY 36
using with IS_DATE 45
using with TO_CHAR 42
using with TO_DATE 45

238

Index

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->