The OPSWORD function provides compatibility for translated Automate rules that contain the &WORDnn and &MLWORDnn environmental variables.
Like the REXX WORD function, OPSWORD returns the nth word in string. Unlike the REXX WORD function, the OPSWORD function delimits words by both blanks and commas. This feature is useful when messages contain positional output, the absence of which successive commas in the message text indicate.
Note: The OPSWORD function can be used in OPS/REXX or AOF rules. The OPSWORD function is not dependent upon CA OPS/MVS being active.
OPSWORD has the following format:
var = OPSWORD(string,n)
The string is the input text string and can contain up to 32,000 characters.
The n is the sequential placement, in string, of the word that you want OPSWORD to return. If n is greater than the total number of words in string, then null is returned.
Examples: OPSWORD
OPSWORD('HELLO,,MOTHER,HELLO FATHER',2) ''
OPSWORD('HELLO,,MOTHER,HELLO FATHER',3) 'MOTHER'
OPSWORD('HELLO,,MOTHER,HELLO FATHER',5) 'FATHER'
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|