RPGIV @ Work

A unique site for RPG and System i Lovers


Hi, this site will provide all what you need in System i and RPG developments.

My Name is Chamara Withanachchi, System i Expert and RPG Developer. And in the field for last 11 years.

I hope you will find lot of valuable information from this site

%SCANRPL Print E-mail
User Rating: / 0
Written by Chamara Withanachchi   

The %SCANRPL built-in function scans for all occurrences of a value within a string and replaces them with another value.

   // Replace NAME with 'Chamra'
   string1 = 'See NAME. See NAME run. Run NAME run.';
   string2 = %ScanRpl('NAME' : 'Chamara' : string1);
   // string2 = 'See Chamara. See Chamara run. Run Chamara run.'
<Previous   Next>