Multiple choice technology mainframe

what is the COBOL picture clause of the following DB2 data types:DATE, TIME, TIMESTAMP

  1. PIC X(8), PIC X(8), PIC X(26)

  2. PIC X(12), PIC X(8), PIC X(28)

  3. PIC X(10), PIC X(8), PIC X(26)

  4. None of the above

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

In DB2, the COBOL picture clauses are: DATE = PIC X(10) for format YYYY-MM-DD, TIME = PIC X(8) for format HH.MM.SS, and TIMESTAMP = PIC X(26) for format YYYY-MM-DD-HH.MM.SS.nnnnnn. Option C correctly shows X(10), X(8), X(26). Option A has wrong DATE size, Option B has wrong sizes for all three. These fixed-length character strings match standard DB2 external representations.