Multiple choice technology web technology

What is the maximum length of the field you can define using COMP-3?

  1. 12 bytes

  2. 16 bytes

  3. 14 bytes

  4. 10 bytes

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

In COBOL, the maximum length of a packed-decimal (COMP-3) field is 18 digits. Since each byte stores two digits (plus one half-byte for the sign), 18 digits require 10 bytes of storage.