Multiple choice technology mainframe

The data definition of Null indicator variables in cobol/DB2 program is ?

  1. PIC S9(09) COMP

  2. PIC S9(04) COMP

  3. PIC S9(8) COMP

  4. PIC 9(08) COMP

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

Null indicator variables in COBOL/DB2 programs must be declared as PIC S9(04) COMP, which is a 4-byte signed binary integer. This format can store values indicating null status (-1 for null, 0 for not null, or positive values for truncated data). The 4-byte size matches the SQL standard for null indicators.