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 whose absence is indicated by successive commas in the message text.
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.
This function has the following format:
var = OPSWORD(string,n)
The string is the input text string and may contain up to 32,000 characters.
The n is the sequential placement, in string, of the word 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 © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |