STRINGPOS

This activity determines the first (leftmost) position of one string in another string.

NOTE: For best performance, we advise that you limit use of activities such as this to non-intensive parts of your solution.  In particular, you should avoid extensive string manipulations at a process orchestration level inside iterative parts of your solution.  Extensive string manipulation is usually a task best performed in compiled program code.

INPUT Parameters:

STRINGA: Required

This parameter specifies the string that is to be searched.

STRINGB: Required

This parameter specifies the string to search for.

IGNORECASE: Optional

This parameter specifies whether the search is performed without regard to upper or lower case differences.  For example, if you specify *YES, then a search for 'abc' will find 'abc', 'ABC', aBc' and others.  The default value is *NO.

OUTPUT Parameters:

STRINGPOS:

Upon completion, this parameter will contain the position of the first (leftmost) occurrence of STRINGB in STRINGA, or zero if STRINGB does not occur in STRINGA.