2
DATA CLEANSING FUNCTIONS By Martin | August 2, 2007 Function Syntax Description INSTR INSTR( string,search_value[, start [,occurrence ] ] ) Returns the position of a character set in a string, counting from left to right.Available in the Designer and the Workflow Manager. IS_DATE IS_DATE(value ) Returns whether a value is a valid date. Available in the Designer and the Workflow Manager. IS_NUMBER IS_NUMBER(value ) Returns whether a string is a valid number. Available in the Designer and the Workflow Manager. IS_SPACES IS_SPACES(value ) Returns whether a value consists entirely of spaces. Available in the Designer and the Workflow Manager. ISNULL ISNULL( value) Returns whether a value is NULL. Available in the Designer and the Workflow Manager. LTRIM LTRIM( string[, trim_set ] ) Removes blanks or characters from the beginning of a string. Available in the Designer and the Workflow Manager. METAPHONE METAPHONE(string [,length] ) Encodes characters of the English language alphabet (A-Z). It encodes both uppercase and lowercase letters in uppercase. Available in the Designer and the Workflow Manager. REPLACECHR REPLACECHR(InputString,OldCharSet,NewChar ) Replaces characters in a string with a single character or no character.Available in the Designer and the Workflow Manager. REPLACESTR REPLACESTR ( InputString,OldString1, [OldString2, ... OldStringN,]NewString ) Replaces characters in a string with a single character, multiple characters, or no character. Available in the Designer and the Workflow Manager. RTRIM RTRIM( string[, trim_set ] ) Removes blanks or characters from the end of a string. Available in the Designer and the Workflow Manager. SOUNDEX SOUNDEX(string ) Encodes a string value into a four- character string. Available in the Designer and the Workflow Manager. SUBSTR SUBSTR(string, start [,length ] ) Returns a portion of a string. Available in the Designer and the Workflow Manager. TO_CHAR TO_CHAR(numeric_value)TO_CHAR(date [, forma t ] ) Converts numeric values and dates to text strings. Available in the Designer and the Workflow Manager. TO_DATE TO_DATE(string [, format] ) Converts a character string to a date datatype in the same format as the character string. Available in the Designer and the Workflow Manager.

Data Cleansing Functions - InFORMATICA

Embed Size (px)

Citation preview

Page 1: Data Cleansing Functions - InFORMATICA

DATA CLEANSING FUNCTIONS By Martin | August 2, 2007 Function Syntax Description

INSTR INSTR( string,search_value[, start [,occurrence ] ] )Returns the position of a character set in a string, counting from left to right.Available in the Designer and the Workflow Manager.

IS_DATE IS_DATE(value ) Returns whether a value is a valid date. Available in the Designer and the Workflow Manager.

IS_NUMBER IS_NUMBER(value ) Returns whether a string is a valid number. Available in the Designer and the Workflow Manager.

IS_SPACES IS_SPACES(value ) Returns whether a value consists entirely of spaces. Available in the Designer and the Workflow Manager.

ISNULL ISNULL( value) Returns whether a value is NULL. Available in the Designer and the Workflow Manager.

LTRIM LTRIM( string[, trim_set ] )Removes blanks or characters from the beginning of a string. Available in the Designer and the Workflow Manager.

METAPHONE METAPHONE(string [,length] )

Encodes characters of the English language alphabet (A-Z). It encodes both uppercase and lowercase letters in uppercase. Available in the Designer and the Workflow Manager.

REPLACECHR REPLACECHR(InputString,OldCharSet,NewChar )Replaces characters in a string with a single character or no character.Available in the Designer and the Workflow Manager.

REPLACESTRREPLACESTR ( InputString,OldString1, [OldString2, ...OldStringN,]NewString )

Replaces characters in a string with a single character, multiple characters, or no character. Available in the Designer and the Workflow Manager.

RTRIM RTRIM( string[, trim_set ] ) Removes blanks or characters from the end of a string. Available in the Designer and the Workflow Manager.

SOUNDEX SOUNDEX(string ) Encodes a string value into a four-character string. Available in the Designer and the Workflow Manager.

SUBSTR SUBSTR(string, start [,length ] ) Returns a portion of a string. Available in the Designer and the Workflow Manager.

TO_CHAR TO_CHAR(numeric_value)TO_CHAR(date [, format ] )

Converts numeric values and dates to text strings. Available in the Designer and the Workflow Manager.

TO_DATE TO_DATE(string [, format] )Converts a character string to a date datatype in the same format as the character string. Available in the Designer and the Workflow Manager.

TO_DECIMAL TO_DECIMAL(value [, scale ] ) Converts any value (except binary) to a decimal. Available in the Designer.

TO_FLOAT TO_FLOAT(value )Converts any value (except binary) to a double-precision floating point number (the Double datatype). Available in the Designer and the Workflow Manager.

TO_INTEGER TO_INTEGER(value )Converts any value (except binary) to an integer by rounding the decimal portion of a value. Available in the Designer and the Workflow Manager.