TOP-OF-PAGEにヘッダ出力のWRITE命令を書くことで、START-OF-SELECTIONで実行したWRITE命令の前に、TOP-OF-PAGEの命令が走る改ページされた場合は、再度TOP-OF-PAGEが実行されることが利点《例》START-OF-SELECTION(1)主な処理(2)明細のWRITETOP-OF-PAGE(3)ヘッダのWRITE順番としては、(1)⇒(3)⇒(2)で実行される