Re: Stop Run vs GoBack



On Sun, 24 Jun 2007 22:57:25 -0700, Richard <riplin@xxxxxxxxxxxx>
wrote:

'COPYed' procedure code is very poor design. If you want to have
'common code' then write a method or function with the code and call
it. In any case, even with COPYed procedure code, it is unlikely to
be useful to have the EXIT ~ within it, this can follow the COPY
statement giving better reuse - or just have it fall off the end of
the code.

It can be efficient with some quick algorithms. It's also useful for
database binds and standard abort routines.

We also have 3 programs that have virtually the same code with a
couple of lines different which are compiled with different compilers.
One of our applications that interfaces cash machines still needs to
be compiled under CoBOL II. One version of the program is called by
on-line programs, and the third is normal batch. The latter 2 could
easily be replaced by a call, but the high-low memory limitations of
the cash system preclude that solution.
.