Rule
The WHEN CHANGE process compares the contents of a given field with the contents of the same field in the last record that was processed with the current page format and current condition. Whenever a page format is started (either by a condition that changes page formats or when processing of the data file begins), a WHEN CHANGE condition is always false because the previous record was not processed with the current page format.
Note: The following meanings apply to the previous statement:
- changes
- switching to a page format that has a different name
- data file begins
- if conditional processing invokes the CURRENT data map, CHANGE information is retained