Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
With PIC S9(06) COMP-3, you don't have addressability to the high-order nibble, whereas, you do with S9(07) COMP-3. So, you can move 1234567 to the PIC S9(07) COMP-3 field and it will be retained as-is, however, if you move this same value to the PIC S9(06) COMP-3 field, the value will be 234567, truncating the high-order 1.
Plus, the compiler needs to go through a few extra instructions to accommodate PIC S9(06) COMP-3, always rendering the high-order nibble with a B'0000'/4-Bit X'0'.
IMHO, other than PIC S9(18) COMP-3, the picture clause, without an implied decimal, should always be an odd number.
Why limit a field's maximum-capacity when it occupies the same amount of storage?
Bill |
|