REPLACE statement finds and replaces every occurrence of some TEXT in a TEXT variable or value some other TEXT. The result is then stored in a TEXT variable.
REPLACE <TEXT-VAR or TEXT> FROM <TEXT-VAR or TEXT> WITH <TEXT-VAR or TEXT> IN <TEXT-VAR>
REPLACE "COBOL" FROM "COBOL is great!" WITH "LDPL" IN sentimentDISPLAY sentiment crlf
LDPL is great!