FN_E$RPL - Replace a character
Inclusion in RPG source
- C /COPY E$LIB/SRC(ILE),FN_E$RPL
Invocation
- EXSR E$RPL
Input Parameters
- @RPLFR (a1)
- Character to find.
- @RPLTO (a1)
- Character to replace with.
- @RPL (a150)
- Text to search and replace in.
Output Parameters
- @RPL (a150)
- Changed text.
What it does
- The routine searches for a character and replaces it with another character.
Examples
-
C ... * C MOVEL'A' @RPLFR Find string C MOVEL'B' @RPLTO Replace string C MOVELTEXT @RPL P String to modify C EXSR E$RPL C MOVEL@RPL TEXT P Modified string * C ...
Go to download page