[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [GNU-COBOL] New to COBOL





>>> Davyd Ondrejko <david.ondrejko@safelite.com> 10/28/99 10:23AM >>>

> > > Numeric-edited fields and alphanumeric-edited fields would be
> > > particularly enjoyable.  Floating or fixed insertion symbols
> > > (+, - or $), zero suppression with blank or asterisk replacement,
> > > CR and/or DB symbols, BLANK WHEN ZERO, and so forth.
> >
> > These would be a property of the instance of the display method,
> > rather than the data, I think (coming to this with no experience of
> > COBOL whatsoever.)
> 
> In practice this is indeed editing at the time the field is filled with
> data (coming to this with 29 years experience of Cobol).

Umm ... well ... yes and no.  The actual editing -- and thus the errors
-- can happen when you try to *use* the variable.  If you have a numeric
elementary field as a part of a group field (which is always assumed to
be alphanumeric), moving letters to the group field is permitted, but if
you then try to use the elementary field which is defined as numeric but
the storage of which now contains letters, you cause an abend.  (S0C7, I
would think.)

++BK
Implementor defined action, I believe.  Burroughs would allow.  Some strange reports could result <g>.




--
This message was sent through the gnu-cobol mailing list.  To remove yourself
from this mailing list, send a message to majordomo@lusars.net with the
words "unsubscribe gnu-cobol" in the message body.  For more information on
the GNU COBOL project, send mail to gnu-cobol-owner@lusars.net.