How many bytes will be taken if you store your data +12345 in S9(05) comp-3
-
3 BYTES
-
4 BYTES
-
5 BYTES
-
2 BYTES
A
Correct answer
Explanation
COBOL's COMP-3 format stores packed decimal data, placing two digits per byte with one half-byte reserved for the sign. For a signed picture clause of S9(05), five digits plus the sign require six nibbles (half-bytes) in total. Six nibbles fit exactly into three bytes, making three bytes the correct storage size.