Aggregate Range APIs (Older)

The U@DB@AGINIT and E@DBAGGREGATE aggregate range routines are the older set of aggregate range routines that still exist for backwards compatibility. They work together to allow you to perform specific functions on one or more columns for a range of rows. The functions you can perform include average value for a column, maximum value for a column, minimum value for a column, and sum of a column.

You can use the aggregate range routines whenever you would otherwise use E@DBFINDSUBRNG and E@DBFINDPRVRNG to access a set of rows for the purpose of applying average, maximum, minimum, or sum functions against a column.

Use the aggregate range routines together.

Use the U@DB@AGINIT routine to initialize an aggregation request.

Use the E@DBAGGREGATE routine to process an aggregation request against a data set.