Considerations
Ensure that the WHEN CHANGE statement is processed before the switch to a new page format has been performed. See Rule for an example of how a combination of WHEN CHANGE BEFORE SUBPAGE and WHEN CHANGE AFTER SUBPAGE can lead to unexpected results.