What is the maximum length of a field you can define using COMP-3?
-
S9(18) COMP-3
-
S9(20) COMP-3
-
S9(80) COMP-3
-
None of the above
A
Correct answer
Explanation
COMP-3 (packed decimal) format can store up to 18 decimal digits plus a sign, making S9(18) COMP-3 the maximum valid specification. Each digit occupies half a byte (nibble), with the last nibble holding the sign. S9(20) exceeds the 18-digit limit, and S9(80) is not valid for COMP-3.