The ALTER statement changes the transfer point specified in a GO TO statement.
The ALTER statement encourages the use of unstructured programming practices; the EVALUATE statement provides the same function as the ALTER statement and helps to ensure that your program will be well-structured.
________________________________________________________________________ | | | >>__ALTER____________________________________________________________> | | | | <________________________________________________________ | | >____procedure-name-1__TO__ ____________ __procedure-name-2_|_______>< | | |_PROCEED TO_| | | | |________________________________________________________________________|The ALTER statement modifies the GO TO statement in the paragraph named by procedure-name-1. Subsequent executions of the modified GO TO statement(s) transfer control to procedure-name-2.
The ALTER statement acts as a program switch, allowing, for example, one sequence of execution during initialization and another sequence during the bulk of file processing.
Altered GO TO statements in programs with the INITIAL attribute are returned to their initial states each time the program is entered.
Subtopics:
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.