Kilowatt Software L.L.C.
Classic Rexx Tutorial
Language Level 4.00 (TRL-2)

1 Pos   built-in function

The Pos function returns the offset of the first occurrence of a target string within another string.

If the target string is not found, 0 is returned.

Note: some Rexx environments support an Index function. This function has the same behavior as the Pos function, but the first two arguments are reversed, i.e.:


Kilowatt Software L.L.C. -- Classic Rexx Tutorial -- Back to top
Click here if you have any comments or questions regarding this tutorial

Last updated on: 8 Nov 2006