TYLOGIX Downloads

Back to Tylogix Home Page

The REPCHAR - Replace Character in a File - Command


When you are sending a file to a different system where you need to have no commas
for example, what would be the best way to "clean" your file on your AS/400 system?

This is the situation that spurred the writing of REPCHAR.

The REPCHAR command requests 3 things:

The library/file name to fix
The column range within your file that needs fixing
The character to look for and the replacement character.

The command copies your file into a workfile, does the character replacement work and
Brings the data back into the original file. You must have replacement rights to the file
you are modifying.