Re: Reset data



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.
.



Relevant Pages

  • 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
    ... 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. ... INITIALIZE TABELLE? ...
    (comp.lang.cobol)
  • Reset data
    ... 03 tabelle. ... 10 elem. ... How can I reset the datatype, so that no value is set? ...
    (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)