For Programmers: Free Programming Magazines  


Home > Archive > Cobol > May 2007 > Re: GO TO HELL.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: GO TO HELL.
Alistair

2007-05-22, 9:55 pm

On 21 May, 22:50, Doug C <NoS...@Spamblocker.org> wrote:
> C12420-TRAN-83-84.
> ALTER F00250 TO PROCEED TO F00280.
> ALTER F00310 TO PROCEED TO F00440.
> IF A-TRAN-84 ALTER F00490 TO PROCEED TO F00510 ALTER F00540
> TO PROCEED TO F00610 ELSE ALTER F00490 TO PROCEED TO
> F00560 ALTER F00590 TO PROCEED TO F00610.
> ALTER F00640 TO PROCEED TO F00930.
> ALTER F00970 TO PROCEED TO F00990.
> ALTER F01020 TO PROCEED TO F01080.
> ALTER F01100 TO PROCEED TO C12550.
> GO TO F00040.
>
> I am in GO TO HELL. Somebody shoot me.
>
> This is an actual paragraph from a program I was assigned for changes.
> There are 134 ALTER statements and 326 GO TO statements.


Good old ALTER.

Often used to direct program flow away from one-time processing (like
setting up data areas on the first read). I haven't seen one since
1987.

Bite the bullet and go for it.

Good luck.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com