WORD

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

returns the nth blank-delimited word in string or returns the null string if fewer than n words are in string. The n must be a positive whole number. This function is exactly equivalent to SUBWORD(string,n,1).
Here are some examples:
WORD('Now is the time',3)    ->    'the'
WORD('Now is the time',5)    ->    ''

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/dfhrxbe.html