Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
WORDPOS (Word Position) z/OS TSO/E REXX Reference SA32-0972-00 |
|
>>-WORDPOS(phrase,string--+--------+--)------------------------>< '-,start-' returns the word number of the first word of phrase found in string or returns 0 if phrase contains no words or if phrase is not found. Multiple blanks between words in either phrase or string are treated as a single blank for the comparison, but otherwise the words must match exactly. By default the search starts at the first word in string. You can override this by specifying start (which must be positive), the word at which to start the search. Here are some examples:
|
Copyright IBM Corporation 1990, 2014
|