Remove from a string some characters

Discussions relating to writing software in ILE RPG (RPG IV). This includes both fixed and free format RPG.
Post Reply
gio.cot
Posts: 11
Joined: Sat May 28, 2022 9:08 pm

Remove from a string some characters

Post by gio.cot »

Hi all

I'm looking for a way to remove from a string some characters : Ex.

String = "A.b-,c%d'" i would be get "Abcd"

Thanks in advance

Gio
rizzipat
Posts: 1
Joined: Thu Aug 29, 2024 1:32 pm

Re: Remove from a string some characters

Post by rizzipat »

You can use rpg function %scanrpl
Post Reply