Re: Cobol convert program Job Request



On Feb 23, 8:51 am, Louis Krupp <lkr...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:


The record matches the layout perfectly!
Micro Focus S9(4) COMP is two bytes binary
and 9V9(4) COMP is three bytes binary.

How do you fit a sign and four digits into two bytes? (Or am I being
unusually dense today?)

In binary (as stated). The value in 16 bit can be -32368 to 32367
which is a larger range than -9999 to 9999.

COMP (in this case) however is byte reversed compared to intel format
being big-endian.



.



Relevant Pages

  • Re: Cobol convert program Job Request
    ... Howard Brazee wrote: ... Micro Focus S9COMP is two bytes binary ... How do you fit a sign and four digits into two bytes? ...
    (comp.lang.cobol)
  • Re: Cobol convert program Job Request
    ... Micro Focus S9COMP is two bytes binary ... How do you fit a sign and four digits into two bytes? ...
    (comp.lang.cobol)
  • Re: Identifting sign in COMP data
    ... On Jun 28, 10:14 pm, Louis Krupp ... Can anyone tell me how to recognize whether the COMP ... And which mainframe is it? ... floating point value into an exponent and a mantissa. ...
    (comp.lang.cobol)
  • Re: Identifting sign in COMP data
    ... On Jun 28, 1:36 pm, Louis Krupp ... Can anyone tell me how to recognize whether the COMP ... Is this part of your project to read COMP-1 and COMP-2 data from your ...
    (comp.lang.cobol)