I am using sum fiels for summing based onthe alphabet in the first column, i am using the below jcl but i cldn get the
summed output.
can anyone help?
Thanks in Advance!
//SORT1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=CHECK.SORT.SUM,DISP=SHR
//OUT1 DD DSN=CHECK.SORT.OUTPUT,DISP=SHR
//TOOLIN DD *
SORT FROM(IN1) TO(OUT1) USING(CTL1)
/*
//CTL1CNTL DD *
SORT FIELDS=(1,1,CH,A)
SUM FIELDS=(2,2,BI)
/*
//*
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN1 DD DSN=CHECK.SORT.SUM,DISP=SHR
//OUT1 DD DSN=CHECK.SORT.OUTPUT,DISP=SHR
//TOOLIN DD *
SORT FROM(IN1) TO(OUT1) USING(CTL1)
/*
//CTL1CNTL DD *
SORT FIELDS=(1,1,CH,A)
SUM FIELDS=(2,2,BI)
/*
//*
CHECK.SORT.SUM
-----------------
a01
a01
b01
c01
d01
d01
e01
e01
e01
e01
f01
CHEK.SORT.OUTPUT
---------------------
a01
a01
b01
c01
d01
d01
e01
e01
e01
e01
f01