i have file, want to mask the adress lines and telephone numbers but the space ansd special chararters need to be retained. the adres and telephone will changing dynamicallya file changes. pls help how to code using rexx
Suggest you consider a different way to "hide" the names. REXX will not be your friend for this requirement - especially if there is a high volume of data.
Also suggest you pick a subset of the "real" names to test with and create a table that shows what test name should be substituted for each real name. If you insist on generating the fake name in code, i'd suggest a callable (cobol?) module that you pass the real name to and the routine generates the fake name. You might consider a vsam file or database table to contain both names so you can ensure uniqueness as well as know which fake name goes with which real name if that need arises during testing. This cross-reference info would not be made available to just everyone.