4 ms·
Now I have to lookup COBOL alter after reading the comments. Why is it an evil function
by wolco 9y ago
Now I have to lookup COBOL alter after reading the comments. Why is it an evil function
- wolfgang42 9y agoFrom 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.
- mcguire 9y agoI had to look it up, too. Evil, pure evil. [Same quote as wolfgang42 removed.]