WORDLENGTH

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

returns the length of 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:
WORDLENGTH('Now is the time',2)       ->    2
WORDLENGTH('Now comes the time',2)    ->    5
WORDLENGTH('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/dfhrxbp.html