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
I think that you need to explain exactly what you wish to achieve. Masking does not really say too much.
Also give an example of what you start with, and what you want to end up with. This usually helps people see what you want more clearly.
Is this for "scrubbing" production data for a test environment ? If so, REXX is not the greatest tool for large volume datasets, so maybe consider another tool to achieve this.
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.