A Post-Confirm Pass function option is available for this function, and can be used to process the transaction a second time to carry out additional processing. Such a situation might arise if you have added derived function fields to the control record, calculated in the pre-confirm pass that you want to use in further calculations for each subfile line. You could specify these further calculations in a post-confirm pass.
For example, a function field of type SUM can be added to the header format of a Display Transaction panel to total a value displayed in the detail lines. If a line-by-line percentage of this total is required, it cannot be achieved in one pass. Calculation of the SUM field is only completed at the end of the first (pre-confirm) pass, for example:
> USER: Header update processing :— : Total detail lines <<< '—
> USER: Subfile record update processing :— : WRK. Pct total = CTL. Total detail lines * RCD. Pct <<< : RCD. Pct total = WRK. Pct total / CON. 100 <<< '—
For more information on user points, see the chapter "Modifying Action Diagrams."
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |