The Question is:
In researching String Comparisons (ie. .EQS., .GES., GTS., etc) is there an
operator for "Contains" and "Not Contains"? I want to be able to find if a
small string is contained within another larger string. If these operators
don't exist is there some o
ther function that would achieve the same results?
The Answer is :
The OpenVMS Wizard will assume DCL, based on the comparison operators.
To determine if a string contains a substring, use the f$locate lexical
function -- if the value is equal to the length of the target string,
the substring is not present in the target string. If the value is
less than the length of the target string, it is the position of the
substring in the target string.
Of interest will be the on-line HELP for the DCL lexical functions,
the OpenVMS User's Guide and the DCL Dictionary, and books available
from Digital Press.