WORDINDEX

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

Reference Reference

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/dfhrxbo.html