Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This activity determines the last (rightmost) position of one string in another string.

...


Note
iconfalse
titleNote

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 last (rightmost) occurrence of STRINGB in STRINGA, or zero if STRINGB does not occur in STRINGA.