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


WORD

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

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)    ->    ''

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014