I tried a SORT utility sorting has been done successfully but when i use sum fields i need some clarification. I'l provide you the statement below
//JOB STATEMENT
//STEPS EXEC PROG=SORT
//SYSPRINT DD SYSOUT=*
//SORTOUT DD SYSOUT=*
//SYSUT1 DD DSN=******.FINANCE.EMP,DISP=OLD
//SYSIN DD *
SORT FIELDS=(4,2,CH,D)
SUM FIELDS=(9,4,ZD)
/*
//
//STEPS EXEC PROG=SORT
//SYSPRINT DD SYSOUT=*
//SORTOUT DD SYSOUT=*
//SYSUT1 DD DSN=******.FINANCE.EMP,DISP=OLD
//SYSIN DD *
SORT FIELDS=(4,2,CH,D)
SUM FIELDS=(9,4,ZD)
/*
//
Record's in Finance.Emp
001 cse 1005
002 ece 1111
008 mec 1007
014 cse 1222
0777 aaa 1453
088 sss 1000
015 mmm 1005
002 ece 1111
008 mec 1007
014 cse 1222
0777 aaa 1453
088 sss 1000
015 mmm 1005
Sortout
...
015 MMM 2012
..
..
..
015 MMM 2012
..
..
..
For everyother things i got the sum fields correct, only to mmm i got 2012 , so what may be the prob. in this?
Kindly provide me a details
kind regard's
gyaa