STATS operator

Read syntax diagramSkip visual syntax diagram
                      .---------------.                    
                      V               |                    
>>-STATS--FROM(indd)----+-ON(p,m,f)-+-+--+-------------+-------->
                        '-ON(VLEN)--'    '-VSAMTYPE(x)-'   

>--+------+----------------------------------------------------><
   '-LMSG-'   

Prints messages containing the minimum, maximum, average, and total for specified numeric fields. From 1 to 10 fields can be specified.

DFSORT is called to copy the indd data set to ICETOOL's E35 user exit. ICETOOL prints messages containing the minimum, maximum, average, and total for each field as determined by its E35 exit.

The average (or mean) is calculated by dividing the total by the record count and rounding down to the nearest integer (examples: 23 / 5 = 4, -23 / 5 = - 4).

You must not supply your own DFSORT MODS, INREC, or OUTREC statement, because they would override the DFSORT statements passed by ICETOOL for this operator.