Multiple choice technology mainframe

How many bytes does a S9(7) COMP-3 field occupy

  1. 4

  2. 8

  3. 3

  4. 7

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

COMP-3 (packed decimal) stores 2 decimal digits per byte. For S9(7): 7 digits occupy 4 bytes (3.5 bytes rounded up), plus 1 byte for the sign nibble, totaling 8 bytes. The formula is: (n/2) + 1 bytes where n is precision. Option A is for COMP, C is too small, D is the precision digit count.