textLen()

The system function StrLib.textLen returns the number of characters in a text expression, excluding any trailing spaces and nulls.

  StrLib.textLen(source STRING in)
  returns (result INT)
result
An item defined as type INT or the following equivalent: type BIN with length 9 and no decimal places.
source
The text expression of interest.

Example

  length = StrLib.textLen(source);
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.