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


WORDLENGTH

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

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

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014