Previous Topic

Next Topic

Book Contents

Book Index

SUM

The SUM reconciliation function sorts the files involved in the reconciliation process, sums identical key records in the files, and merges the summed records into one output file referenced by the SORTOUT DD statement.

The Preparation stage, using either function WRITE or SETKEY (but not both), must precede the Sum stage. The output of the WRITE function, or the original input file when using the SETKEY function, is the input for the SUM function.

The output of the SUM function is a file containing the summed records calculated from records in the original files. The SORTOUT DD statement must be included in the job that invokes the reconciliation rule. For more information, see DD Statements.

The next block in the reconciliation rule is usually an ON DDNAME SORTOUT block that scans the output of the SUM function.

Parent Topic

Reconciliation Functions