WORD - connect_cdc_sqdata - Latest

Connect CDC (SQData) Apply engine

Product type
Software
Portfolio
Integrate
Product family
Connect
Product
Connect > Connect CDC (SQData)
Version
Latest
Language
English
Product name
Connect CDC (SQData)
Title
Connect CDC (SQData) Apply engine
Copyright
2024
First publish date
2000
Last updated
2024-12-13
Published on
2024-12-13T13:15:51.808000

The WORD function returns a specified word (contiguous string of characters) from a source data string, based on its position with the string. This function examines a source data string and extracts a single word from the string based on a positional number that is provided in the WORD function. Extracting a word within a data string implies that there are spaces between string of contiguous characters.

Category

String

Syntax

WORD(data_string, position)

Parameters and Descriptions

Parameter Description
data_string The source data string in character format. The data string can be a field from a source datastore, a variable, a constant or the result of another Function.
position This parameter specifies the numerical position of the word within the source data string. This parameter may be a field/column of a datastore, a literal value or the output of another Function.

Example

Examine source data field INPUT_STRING and extract the 5th word from the string. Assume that INPUT_STRING contains the value This is a test for word extraction. Map the result to target field TGT_WORD.

TGT_WORD = WORD (Input_String, 5)

Returns the word 'for' and maps the result to the target field.