Re: Reset data




"Pete Dashwood" <dashwood@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:54ktfkF208kl3U1@xxxxxxxxxxxxxxxxxxxxx
"Arnold Trembley" <arnold.trembley@xxxxxxxxxxxxxxxx> wrote in message
news:BC6Fh.19799$as2.5112@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Pete Dashwood wrote:
[snip]
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 ?

If you are INITIALIZE'ing a structure, the generated code will have an
explicit move for each elementary field. I know it works this way in
Enterprise COBOL for zOS.
[snip]
In this case you are saying
that the size of a second table will be less than all the move statements
required to initialize it, if INITIALIZE is used. So, it is the second
table
and a single group move, against the elemental moves required for each
element.

No! No! Size doesn't matter! It's performance that
counts! <g>



.



Relevant Pages

  • Re: Reset data
    ... tables when the structure changes) differ from... ... INITIALIZE TABELLE? ... from run to run (or from copybook program to copybook program). ... We have initialized database records as well - calc into a record with ...
    (comp.lang.cobol)
  • 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
    ... INITIALIZE TABELLE? ... If you INITIALIZE the same structure in a loop many times, it can create some performance delays for certain applications. ... I will grant you that this kind of optimization is not typically needed in online applications, but it could be a performance bottleneck in some cases. ...
    (comp.lang.cobol)
  • Re: Reset data
    ... INITIALIZE TABELLE? ... The art of computer programming (now rapidly becoming a lost art, ... required to initialize it, if INITIALIZE is used. ...
    (comp.lang.cobol)