I need to do a scan and replace in a flat file. File has one field 80 characters long. Possibly one or more of the records in the file contain a specific value, such as '%ABC%' and I want to update the record replace ABC with XYZ. This value could be anywhere within the record. I do not want to take the time to do an RPG program. Prefer to use RUNSQLSTM. Any ideas?
Software/Hardware used:
AS400 V5R4
ASKED:
September 30, 2009 7:01 PM
UPDATED:
October 28, 2009 4:10 PM
Thanks Phil
Worked perfert.
I had tried REPLACE but had the wrong syntax.
how about v5r2? can i do it?
You can do it in V5R4.