Hello Surabhi,
Again, multiple ways to approach this problem. Before we jump into it, to replace 'certain' data, the most basic requirements are:
a. What is it that is required to be replaced
b. Where do you want to replace it
c. How many such 'strings/characters/etc' are going to be replaced
Depending upon how many- the approach changes. Refer
your last post here, which is doing precisely this using SYMNAMES - condition being - data to be replaced is already housed in a PS dataset. You can couple this information with a conditional check in OUTFIL and BUILD to patch the symbolics in place of characters to be replaced.
In any case- template or otherwise You WILL have to define all the '150 or greater' input data as a program will need something to tell it- what the data is; unless the program doesn't know WHAT to replace with WHAT, it really can't progress in the correct direction. If you're not comfortable with *SORT, recommendation is to use COBOL, which is relatively more simple and can handle a large number of MOVE statements which is basically what a *SORT FINDREP does.
Please note, there is an upper limit to how many FINREP you can use in a given SORT card.
@Mr. Sorichetti, from TS's old posts, they're using DFSORT (unless the user states otherwise now).