Table of Contents

Search

  1. Preface
  2. XML Concepts
  3. Using XML with PowerCenter
  4. Working with XML Sources
  5. Using the XML Editor
  6. Working with XML Targets
  7. XML Source Qualifier Transformation
  8. Midstream XML Transformations
  9. XML Datatype Reference
  10. XPath Query Functions Reference

XML Guide

XML Guide

string-length

string-length

Returns the number of characters in a string, including trailing blanks.

Syntax

string-length (
string
)
The following table describes the argument for this function:
Argument
Description
string
String datatype. The string you want to evaluate.

Return Value

Integer.
NULL if a value passed to the function is NULL.

Example

The following expression returns the length of the customer name:
string-length ( CUSTOMER_NAME )
The following table contains example arguments and return values:
CUSTOMER_NAME
RETURN VALUE
Bernice Davis
13
NULL
NULL
John Baer
9

0 COMMENTS

We’d like to hear from you!