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

Null indicator variables in COBOL use the picture clause S9(4) COMP. The S9(4) defines a signed 4-digit integer, and COMP (or COMP-4) specifies binary computational format. This is the standard declaration for indicator variables which are small integers (-1, 0, 1) used to detect null values in host variables. Options A (COMP-3) is packed decimal, B has no COMP specification, and C is unsigned.