Table of Contents

Search

  1. Preface
  2. Function reference
  3. Constants
  4. Operators
  5. Dates
  6. Functions
  7. System variables
  8. Datatype reference

Function Reference

Function Reference

INITCAP

INITCAP

Capitalizes the first letter in each word of a string and converts all other letters to lowercase. Words are delimited by white space (a blank space, formfeed, newline, carriage return, tab, or vertical tab) and characters that are not alphanumeric. For example, if you pass the string ‘…THOMAS’, the function returns Thomas.

Syntax

INITCAP(
string
)
Argument
Required/
Optional
Description
string
Required
Any datatype except Binary. You can enter any valid expression.

Return Value

String. If the data contains multibyte characters, the return value depends on the code page of the Secure Agent that runs the task.
NULL if a value passed to the function is NULL.

Example

The following expression capitalizes all names in the FIRST_NAME column:
INITCAP( FIRST_NAME )
FIRST_NAME
RETURN VALUE
ramona
Ramona
18-albert
18-Albert
NULL
NULL
?!SAM
?!Sam
THOMAS
Thomas
PierRe
Pierre

0 COMMENTS

We’d like to hear from you!