Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: "Chuck Stevens" <charles.stevens@xxxxxxxxxx>
- Date: Mon, 20 Jun 2005 09:29:36 -0700
"Joe Zitzelberger" <joe_zitzelberger@xxxxxxxxxx> wrote in message
news:joe_zitzelberger-1EAD2A.14213911062005@xxxxxxxxxxxxxxxxxxxxxxxxxxx
> If you truly need to do "informed coding", then you should not waste
> your time with an HLL, but hand code it in assembler to really ensure
> performance, or get a better compiler.
Ummm ... explain to me once again how you accomplish coding in assembler
language on a system on which there is no assembler language ...
One could argue that on the Unisys MCP systems the various ALGOL dialects
serve the function of an assembler -- but ALGOL isn't all that well-suited
to business application coding, being an "algorithmic language" rather than
a "business-oriented" one.
ANSI X3.23-1985 (page VI-18" notes "Items and constants in working storage
which bear no hierarchical relationship to one another need not be grouped
into records ... Instead, they are classified and defined as noncontiguous
elementary items. Each of these items is defined in a separate data
description entry which begins with the special level-number, 77."
Why is the idea that access to an item named X and declared
77 X PICTURE S9(11) USAGE BINARY.
might behave differently from access to an item named Y and declared
01 Y PICTURE S9(11) USAGE BINARY PICTURE S9(11).
somehow an assembler-language issue, whereas the idea that "everybody knows"
the contents of an item declared
01 Z PICTURE 9 PACKED-DECIMAL.
could be negative is a matter that all COBOL programmers in any operating
environment should take for granted?
Where I come from, if the data item is DISPLAY or PACKED-DECIMAL, and you
don't declare a sign, there's no space allocated for a sign. Why should it
be otherwise?
There are lots of things about COBOL that relate to particular operating
environments, and it is appropriate for the application programmer to be
aware of what works well in the environment in which he's operating, and
what doesn't. The programmer who says there's *never*a good reason to
declare an independent data item that isn't related hierarchically to any
other data item at Level 77 instead of Level 01 is mistaken. There may be
no performance difference in *some* operating environments, but that does
not mean there is no performance difference in *any* operating environment.
-Chuck Stevens
.
- Follow-Ups:
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Chuck Stevens
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- References:
- interesting use of NEXT SENTENCE vs. CONTINUE
- From: Frank Swarbrick
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Richard
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: William M. Klein
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Richard
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: docdwarf
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Pete Dashwood
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Howard Brazee
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Pete Dashwood
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Chuck Stevens
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Pete Dashwood
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Chuck Stevens
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Pete Dashwood
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Chuck Stevens
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Pete Dashwood
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Chuck Stevens
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Pete Dashwood
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Chuck Stevens
- Re: interesting use of NEXT SENTENCE vs. CONTINUE
- From: Joe Zitzelberger
- interesting use of NEXT SENTENCE vs. CONTINUE
- Prev by Date: Re: Bob Beemer webstories down
- Next by Date: Re: A Group project
- Previous by thread: Re: interesting use of NEXT SENTENCE vs. CONTINUE
- Next by thread: Re: interesting use of NEXT SENTENCE vs. CONTINUE
- Index(es):
Relevant Pages
|