Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
LASTPOS (Last Position) z/OS TSO/E REXX Reference SA32-0972-00 |
|
>>-LASTPOS(needle,haystack--+--------+--)---------------------->< '-,start-' returns the position of the last occurrence of one string, needle, in another, haystack. (See also the POS function.) Returns 0 if needle is the null string or is not found. By default the search starts at the last character of haystack and scans backward. You can override this by specifying start, the point at which the backward scan starts. start must be a positive whole number and defaults to LENGTH(haystack) if larger than that value or omitted. Here are some examples:
|
Copyright IBM Corporation 1990, 2014
|