What is the maximum length of a field you can define using COMP-3?
-
8 Bytes
-
10 Bytes
-
12 Bytes
-
16 Bytes
B
Correct answer
Explanation
COMP-3 is packed decimal format in COBOL where each digit occupies 4 bits (half byte or nibble). The maximum length is 18 decimal digits, which requires 9 bytes for the digits plus 1 nibble for the sign, totaling 10 bytes. This is a standard COBOL limitation for packed decimal fields.