Multiple choice technology mainframe

Numeric values can have a maximum of X digits, what is X?

  1. 8

  2. 9

  3. 18

  4. 19

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

In standard COBOL, numeric fields (PIC 9 or PIC S9) can have a maximum of 18 total digits, regardless of where the decimal point falls. This includes both integer and fractional portions combined. The 18-digit limit is a fundamental constraint in COBOL numeric data types.