//STEP1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=xxxxx.PANDS.PS1,DISP=SHR
//SORTOUT DD DSN=xxxxxx.PANDS.PS2,DISP=(,CATLG,DELETE),...
//SYSIN DD *
SORT FIELDS=(9,3,CH,A)
SUM FIELDS=(1,2,ZD)
/*
//
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=xxxxx.PANDS.PS1,DISP=SHR
//SORTOUT DD DSN=xxxxxx.PANDS.PS2,DISP=(,CATLG,DELETE),...
//SYSIN DD *
SORT FIELDS=(9,3,CH,A)
SUM FIELDS=(1,2,ZD)
/*
//
above this program in output file i did't get the sum values....
some one help me i have input file which contains 10 fields with 10 records.
i want the the output file with summed up the five amount fileds and control on five fields. when ever any change in the first five fields i wnat the sum for alll the similar records.
when it is summing up is there any truncation will happen in the oputput file or not.