000100 //xxxxxxx JOB NOTIFY=&SYSUID,MSGCLASS=A,MSGLEVEL=(1,1)
000200 //STEP1 EXEC PGM=SORT
000500 //SORTIN DD DSN=xxxxxxx.PANDS.NO1,DISP=SHR
000501 //SYSOUT DD SYSOUT=*
000510 //SYSPRINT DD SYSOUT=*
000600 //SORTXSUM DD DSN=xxxxxxx.PANDS.NO2,DISP=SHR
000610 //SORTOUT DD DSN=xxxxxxxx.PANDS.NO3,DISP=SHR
000700 //*SORTWK01 DD UNIT=SYSDA,SPACE=(TRK,(10,10),RLSE)
000800 //*SORTWK02 DD UNIT=SYSDA,SPACE=(TRK,(10,10),RLSE)
000900 //SYSIN DD *
001000 SORT FIELDS=(1,3,CH,A)
001120 SUM FIELDS=(11,5,ZD)
001200 /*
001300 //
the above program in jcl for sorting and adding the datas.
below given is my input file format.
000100 GOPISDFNN 10000
000200 XFCVFDGA 20000
000300 MOOSANISAR 30000
000400 SIVAGOPI 50000
000500 GOPINATH 80000
000600 PERCYBLK 93000
in the above input file i need to sum the ZD values and the output should be sent to sortxsum ddname...but the problem is i'm not getting the output of added values but the files are sorted.please tel how to solve this.............