3 ms·
From https://www.ibm.com/support/knowledgecenter/en/SSAE4W_7.1.0/com.ibm.etools.iseries.langref.doc/c0925395347.htm https://www.ibm.com/support/knowledgecenter/
by wolfgang42 9y ago
From https://www.ibm.com/support/knowledgecenter/en/SSAE4W_7.1.0/com.ibm.etools.iseries.langref.doc/c0925395347.htm https://www.ibm.com/support/knowledgecenter/en/SSAE4W_7.1.0/... :
> The ALTER statement changes the transfer point specified in a GO TO statement.
> ALTER procedure-name-1 TO PROCEED TO procedure-name-2
> Before the ALTER statement is executed, when control reaches the paragraph specified in procedure-name-1, the GO TO statement transfers control to the paragraph specified in the GO TO statement. After execution of the ALTER statement, however, the next time control reaches the paragraph specified in procedure-name-1, the GO TO statement transfers control to the paragraph specified in procedure-name-2.
Yikes.
- DrScump 9y agoI started my career in a COBOL environment where legacy code could be riddled with GOTOs... but never a single ALTER.