Please do tell me if I can repost this question in other forum,as I do not wish to violate the forum rules unknowingly.
Do you want a DFSORT solution or not? If you want a DFSORT solution, then this is the right Forum. If you don't want a DFSORT solution, please say so and post in the appropropriate Forum (e.g. COBOL, PL/I, whatever) so I can lock this thread.
ex: x'05' is same as 05.Hence whenever I get x'o5',I want it to replace by 05.
This is unclear. Do you mean you want to replace X'05' with C'05'? If so, that would be replacing 1 byte with 2 bytes so would you want to shift the other bytes or what? Do you want to look for X'05' in a particular position or anywhere in the input record? It would help if you would show an example of your input records and what you want for output and explain the "rules" for getting from input to output. Also, give the RECFM and LRECL of the input file.