You can use a DFSORT job like the one below to do what you asked for. You'll need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) in order to use DFSORT's PARSE and SQZ functions. If you don't have the April, 2006 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see:
here I dont have Iceman utility. Can we do this using sort utility only ?
I don't know what you mean by this statement. PGM=ICEMAN and PGM=SORT are just equivalent ways of invoking the sort product at your site (DFSORT, Syncsort, CA-SORT). If DFSORT is the sort product at your site, then the job will work providing you have the April, 2006 PTF installed. Syncsort and CA-SORT do not support the PARSE or SQZ functions, so you won't be able to use my job if you have one of those sort products instead of DFSORT.
I'm a DFSORT developer. DFSORT, Syncsort and CA-Sort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I don't answer questions on the other products.