function: replace
result: result
params:
SOURCE - a piece of data to be processed (default = filename.ext)
SEARCH - a string to find
REPLACE - a string to replace
CASE - if "Y" or "YES" - case sensitive, otherwise not.
EXAMPLE:
*VAR ANIMAL = "I like cats and dogs but don't like scrawls. But dogs are
too spiteful".
Save to *XXV ANIMAL1:
SOURCE=*VAR ANIMAL|SEARCH=dog|REPLACE=bird
Save to *XXV ANIMAL2:
SOURCE=*XXV ANIMAL1|SEARCH=But|REPLACE=And|CASE=Y
Save to *XXV ANIMAL3:
SOURCE=*XXV ANIMAL2|SEARCH=too|REPLACE=not
Now *XXV ANIMAL3 has the following text:
"I like cats and birds but don't like scrawls. And birds are not spiteful".