NET/MASTER Network Control Language (NCL) Reference Manual

WORDPOS
Built-in Functions
106126 Tandem Computers Incorporated 4–109
In the following example, the string “now is the time” is searched for the word “the”,
which is the third word in the string, so a value of “3” is returned:
SAY WORDPOS(the,now is the time)
In the following example, the string “now is the time” is searched for the word “The”.
Because “The” is specified with an initial capital (T), the word is not found in the
string, and so 0 (zero) is returned:
SAY WORDPOS(The,now is the time)