Multiple choice technology mainframe

What is the maximum value that can be stored in S9(8) COMP?

  1. 9999

  2. 999999

  3. 99999999

  4. 999999999

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

S9(8) in COBOL represents a signed packed decimal field with 8 digits. The maximum value that can be stored is 8 nines, which is 99999999. The COMP usage indicates binary computational format, but the digit count determines the maximum value.