Substring by Value

Returns a portion of a String object based on specified start and end values. Note that the substring does not include the start and end values, but rather includes everything between those two values.

Inputs

String
The String object.

Start value
An integer that specifies the starting value for the substring.

End value
An integer that specifies the end value for the substring.

Output

Returns a String object that contains the specified substring.

Copyright IBM Corp. 2003, 2004