Re: Reset data



On Wed, 28 Feb 2007 14:26:16 +1300, "Pete Dashwood"
<dashwood@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

How would the result of doing that (taking twice as much storage as you
actually need, and running the risk of forgetting to update one of the
tables when the structure changes) differ from...

INITIALIZE TABELLE ?

We have more control, for instance if your table has redefines,
delimiters (within fillers), or if the initialized data are variable
from run to run (or from copybook program to copybook program). It
can also be used if your table is in the linkage division.

It's also quicker, although that isn't as important these days.

We have initialized database records as well - calc into a record with
a key of space to pull out the standard *empty* database record,
before creating a new one to add. This can be changed on the fly.
.



Relevant Pages

  • Re: Reset data
    ... tables when the structure changes) differ from... ... There is no more "control" than if you issued INITIALIZE to do ... Tables in the linkage SECTION can be referenced by INITIALIZE. ...
    (comp.lang.cobol)
  • Re: Reset data
    ... tables when the structure changes) differ from... ... INITIALIZE TABELLE? ... explicit move for each elementary field. ... required to initialize it, if INITIALIZE is used. ...
    (comp.lang.cobol)
  • Re: Reset data
    ... tables when the structure changes) differ from... ... INITIALIZE TABELLE? ... explicit move for each elementary field. ... required to initialize it, if INITIALIZE is used. ...
    (comp.lang.cobol)