Enables searching for and replacing text within a specified string of text.
sourcestring: Specifies a string of text to search.
searchstring: Specifies text to search for.
replacestring: Specifies the replacement text.
flag: 1--replacement occurs only if the matching string is a separate item of text.
0--every matching string is replaced.
The following example changes Dear Joe with Dear Anne:
SET VAR vsrpl = (SRPL('Dear Joe','Joe','Anne',1))
The following example changes 04/20/64 to 04-20-64: