Daily Archives: January 31, 2014

WebFOCUS replace characters in string

Update: As of 8201, there is now a nice simple function called REPLACE. See this link.

A common piece of functionality in most programming languages is a search and replace character function; the more sophisticated languages allow for regular expressions. In any case, here’s how to do a search and replace character in a string using WebFOCUS:

STRREP

This one was was buried in a forum thread. Note that this is as of WebFOCUS 7.1.3.