Fo eg:- In AB34HK.CODE.*.W0334 in all these sequential data sets i want to replace one word with other. For PDS files we can do it using File-aid utility how to do it for PS.

You can use FileAid to edit PS files as well.For PDS files we can do it using File-aid utility how to do it for PS.