I have data as below in ps file
DSN=XXX.NAME,VOLS=322220,323446,
DSN=XXX.NAME1,VOLS=378756,TOTALBLOCKS=374
ETC..
I want to create out put as below , I am not getting logic to show the output as below into PS file
//GO.STEP DD DSN=XXX.NAME,DISP=SHR,
// DCB=BUFNO=AA,UNIT=DASD0,
// VOL=SER=(322220,323446)
Can this be possible to do with sort or icetool...