CHR_INSET

Return whether a string is a member of a given set

Description:

The character string is compared with each of the values given in the given set. The strings in the set can be any length and can differ in length throughout the set. Each value is separated by a comma. Upper and lowercase are treated as being equivalent and trailing blanks are ignored.

Invocation

RESULT = CHR_INSET( SET, STRING )

Arguments

SET = CHARACTER ∗ ( ∗ ) (Given)
The set of character values. It takes the form ’string1,string2,.......,stringN’ where each of the substring values from string1 to stringN can be of different lengths.
STRING = CHARACTER ∗ ( ∗ ) (Given)
The character string to be checked for membership of the set.

Returned Value

CHR_INSET = LOGICAL
Returns .TRUE. if the character string is a member of the given set, returns .FALSE. otherwise.