Multiple choice technology databases

What is the picture clause of the null indicator variable

  1. S9 (4) COMP-3

  2. S9 (4)

  3. 9 (4)

  4. S9 (4) COMP

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

In COBOL-DB2 programming, a null indicator variable must be declared as a 16-bit signed integer. The correct picture clause for this is S9(4) COMP (or S9(4) BINARY), which allocates a 2-byte binary storage area.