Multiple choice technology mainframe

If a field is defined as Pic s9(6)v99 comp-3, it uses 5 bytes of storage.

  1. True

  2. False

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

The formula for calculating the storage size of a packed-decimal (COMP-3) field in COBOL is: (number of digits + 1) / 2, rounded up. For Pic s9(6)v99, there are 8 digits total. Thus, (8 + 1) / 2 = 4.5, which rounds up to 5 bytes.