Re: Cobol convert program Job Request



On Thu, 22 Feb 2007 12:51:05 -0700, Louis Krupp
<lkrupp@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?)

A byte holds 16 bits - 15 plus the sign. +9999d = 10011100001111b

.



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: Specialized MTB Shoes
    ... > Anyone have an opinion on the '05 Specialized Carbon Comp or Comp ... > MTB shoes -- apart from fit issues. ... > MTB shoe and these seem to fit well and be in my price range. ...
    (rec.bicycles.tech)
  • Max integer in an 8 byte COMP field?
    ... Am trying to find the largest integer that will fit inside a 'comp' ... I tried with both signed and unsigned COMP fields. ... Graham Hobbs ... Compiler (VisualAge Cobol V2.2) output: ...
    (comp.lang.cobol)
  • Re: Max integer in an 8 byte COMP field?
    ... Graham Hobbs wrote: ... Am trying to find the largest integer that will fit inside a 'comp' ... I tried with both signed and unsigned COMP fields. ... Whether you can display it is another question. ...
    (comp.lang.cobol)
  • Re: Cobol convert program Job Request
    ... On Feb 23, 8:51 am, Louis Krupp ... Micro Focus S9COMP is two bytes binary ... being big-endian. ...
    (comp.lang.cobol)