Re: "Shared" procedure division code




"Caederus" <davidburnham@xxxxxxxxx> wrote in message
news:1122394642.142312.250340@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>> I neither recommend this approach nor (personally) know of any reason to
>> use it
>> in today's computing environment, but did think it was worth mentioning
>> (both
>> for the "use of duplicated code" and the solution to "maintenance of such
>> code")
>
> Maintenance of the code is the big reason to use such code.
>
> If you have a routine that works and is used by a number of different
> programs, putting it in a copybook is the quickest and easiest way to
> stream line the maintenance. However If it starts getting to big there
> is the question of making it it's own sub program.

I think the issue Bill was trying to point out was that the code was
inlined, or COPYed in two (or more) locations. If it were merely an issue of
having correct code, and not wanting to touch that code for fear of breaking
it, the code could have been put in a paragraph, and COPYed onced, and to
simply PERFORM that paragraph.

- Oliver


.



Relevant Pages

  • Re: "Shared" procedure division code
    ... but did think it was worth mentioning (both ... Maintenance of the code is the big reason to use such code. ... is the question of making it it's own sub program. ...
    (comp.lang.cobol)
  • Re: "Shared" procedure division code
    ... but did think it was worth mentioning (both ... Maintenance of the code is the big reason to use such code. ... is the question of making it it's own sub program. ...
    (comp.lang.cobol)
  • Re: macro to take out spaces
    ... Suzanne, thanks again, so other than tables, there ... shouldn't be any reason that the double paragraph mark ... >It has been discovered that for some reason a Replace ... >an empty paragraph before a table. ...
    (microsoft.public.word.docmanagement)
  • Re: opinions on an office machine?
    ... > Part of the reason I had been thinking "capsule" is the fact that the ... > people who have been assigned to do maintenance on the current Saeco ... > no reason to suppose that another superauto in the faculty lounge would ... periodic required cleaning and descaling of the machine--he may see that as ...
    (alt.coffee)
  • Re: opinions on an office machine?
    ... Jack, Dave - ... Part of the reason I had been thinking "capsule" is the fact that the ... people who have been assigned to do maintenance on the current Saeco ...
    (alt.coffee)