NET/MASTER Network Control Language (NCL) Reference Manual
LASTPOS
Built-in Functions
106126 Tandem Computers Incorporated 4–49
In the following example, NCL searches the string “abc def ghi” for a space. The
starting character position for the search is specified as character position 7. The last
occurrence of a space is found at character position 4:
&A = " "
&B = ABC DEF GHI
&C = 7
&RESULT = LASTPOS(&A,&B,&C)
In the following example, NCL searches the string “abcdefghi” for a space. The last
occurrence of a space is not found. 0 (zero) is returned:
&A = " "
&B = abcdefghi
&RESULT = LASTPOS(&A,&B)