Re: Reset data




"Howard Brazee" <howard@xxxxxxxxxx> wrote in message
news:chv5u214c3r2strckf1h2r8msh9pv42ne5@xxxxxxxxxx
On Mon, 26 Feb 2007 10:13:41 +0100, "Mitch Steens" <M.Steens@xxxxxxx>
wrote:

I have the following datatype:

03 tabelle.
05 occurs 9.
07 occurs 9.
10 elem.
12 elem-a pic 9.
12 elem-b pic 9.

How can I reset the datatype, so that no value is set?

What do you mean by "no value". This is space in the computer
memory. Whatever happens to be in memory is a "value", whether or
not if it is a valid value.

One thing I sometimes do in a program with such a table (especially if
some of the variables are packed or binary), is to create an
initialization table. If I need to reinitialize the table, I just
MOVE ZERO-TABLE to TABELLE.

Again, something I don't understand.

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 ?

Pete.


.



Relevant Pages

  • Re: Reset data
    ... How can I reset the datatype, so that no value is set? ... Whatever happens to be in memory is a "value", ... MOVE ZERO-TABLE to TABELLE. ...
    (comp.lang.cobol)
  • Re: Reset data
    ... Pete Dashwood wrote: ... 10 elem. ... How can I reset the datatype, so that no value is set? ... MOVE ALL ZERO TO TABELLE. ...
    (comp.lang.cobol)
  • Re: Reset data
    ... How can I reset the datatype, so that no value is set? ... MOVE ALL ZERO TO TABELLE. ... for a single parameter and a series of ASCII characters being moved to ...
    (comp.lang.cobol)
  • Re: Reset data
    ... 10 elem. ... How can I reset the datatype, so that no value is set? ... MOVE ALL ZERO TO TABELLE. ...
    (comp.lang.cobol)
  • Re: Reset data
    ... Mitch Steens wrote: ... 10 elem. ... How can I reset the datatype, so that no value is set? ... MOVE ALL ZERO TO TABELLE. ...
    (comp.lang.cobol)