z/OS TSO/E REXX Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


WORDINDEX

z/OS TSO/E REXX Reference
SA32-0972-00

Read syntax diagramSkip visual syntax diagram
>>-WORDINDEX(string,n)-----------------------------------------><

returns the position of the first character in the nth blank-delimited word in string or returns 0 if fewer than n words are in string. The n must be a positive whole number.

Here are some examples:
WORDINDEX('Now is the time',3)    ->    8
WORDINDEX('Now is the time',6)    ->    0

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014