To move on to the next record, set the address of the record in the Linkage Section to be equal to the address of the next record. This is accomplished through the pointer data item sent as the first field in SALARY-REC:
SET ADDRESS OF SALARY-REC TO PTR-NEXT-REC
Then repeat the record-processing routine, which will process the next record in the chained list.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.