Identifting sign in COMP data



Hi ppl,
Can anyone tell me how to recognize whether the COMP
variables are negative or positive.
For instance in COMP-3 data , if the last nibble is 'C' then we say it
is positive and if it is 'D' or 'F' we say it is negative.

Similarly how can we recognize whether the number is positive or
negative in COMP , COMP-1 and COMP-2 data.

.



Relevant Pages

  • Re: Identifting sign in COMP data
    ... Can anyone tell me how to recognize whether the COMP ... For instance in COMP-3 data, if the last nibble is 'C' then we say it ... Is this part of your project to read COMP-1 and COMP-2 data from your ...
    (comp.lang.cobol)
  • Re: Identifting sign in COMP data
    ... Can anyone tell me how to recognize whether the COMP ... For instance in COMP-3 data, if the last nibble is 'C' then we say it ... Is this part of your project to read COMP-1 and COMP-2 data from your ... If you run into range issues with your COMP-1 data, go with one of my earlier suggestions about splitting the floating point value into an exponent and a mantissa. ...
    (comp.lang.cobol)
  • Re: Identifting sign in COMP data
    ... Can anyone tell me how to recognize whether the COMP ... Do you actually have COMP-3 data in which the last nibble is 'F' and this indicates a negative number? ... Is this part of your project to read COMP-1 and COMP-2 data from your mainframe? ...
    (comp.lang.cobol)
  • Re: Identifting sign in COMP data
    ... Can anyone tell me how to recognize whether the COMP ... For instance in COMP-3 data, if the last nibble is 'C' then we say it ... For IBM mainframe, COMP-1 and COMP-2 ...
    (comp.lang.cobol)