characterAsInt()

The string-formatting function StrLib.characterAsInt converts a character string into an integer string corresponding to the first character in the character expression.

  StrLib.characterAsInt(text STRING in)
  returns (result INT)
result
A variable of type INT.
text
A literal, variable, or expression that returns a character string of type CHAR.

To convert an integer string into a character string, use the StrLib.integerAsChar string-formatting function.

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.