Re: COMP vs. COMP-5

From: Frederico Fonseca (real-email-in-msg-spam_at_email.com)
Date: 03/29/04


Date: Mon, 29 Mar 2004 17:49:33 +0100

On Mon, 29 Mar 2004 11:17:12 -0500, clvrmnky
<clvrmnky-uunet@coldmail.com.invalid> wrote:

>Greetings,
>
>I just need a sanity check on my understanding of COMP, COMP-5. My
>understanding is that, in terms of value representation, these two are
>identical.
>
>That is, if I'm confronted with a compiler that does not like COMP-5, I
>can just change things to COMP without having to rethink my PIC clauses.
>They are both binary representations of a given size.
Which compiler (vendor and version) are you using?
>
>My understanding is that it is the internal representation that is
>different, primarily that COMP-5 values can be stored in a smaller space
>than COMP.
compiler dependent, along with compile options in force.

Frederico Fonseca
ema il: frederico_fonseca at syssoft-int.com



Relevant Pages

  • COMP vs. COMP-5
    ... I just need a sanity check on my understanding of COMP, ... That is, if I'm confronted with a compiler that does not like COMP-5, I ... My understanding is that it is the internal representation that is ...
    (comp.lang.cobol)
  • Re: COMP vs. COMP-5
    ... On 29/03/2004 11:49 AM, Frederico Fonseca wrote: ... >>understanding is that, in terms of value representation, these two are ... >>can just change things to COMP without having to rethink my PIC clauses. ...
    (comp.lang.cobol)
  • Re: COBOL "non-myth" confirmed - Index and subscripts (MF on Windows)
    ... One of the problems with the speed2 prog is the ... 10 misaligned-number comp-5 pic s9. ... set x-index to 1000 ... display "COMP start " function current-date ...
    (comp.lang.cobol)
  • Re: Revised Index versus Subscript
    ... 10 misaligned-number comp-5 pic s9. ... set x-index to 1000 ... display "COMP start " function current-date ... move 1000 to comp5-number ...
    (comp.lang.cobol)
  • Revised Index versus Subscript
    ... 10 misaligned-number comp-5 pic s9. ... set x-index to 1000 ... display "COMP start " function current-date ... move 1000 to comp5-number ...
    (comp.lang.cobol)

Loading