Replaces the string on the specified record number. In the example, the command replaces the string XYZ on record -21 with ABC.
SUBSTITUTE-STRING '-21' 'XYZ' 'ABC'
The command treats -1 records with the owning record number.
-
Only used for –ve records.
-
Use double quotes ( " ) to replace with a blank.