Multiple choice technology mainframe

Which of the following PIC definitions can be used in the declaration of a record of a sequential file that will be used as INPUT

  1. PIC X(9)

  2. PIC S9(4) COMP

  3. PIC Z(4)

  4. PIC 9(4)V99

  5. PIC 9(4).99

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

Standard alphanumeric (PIC X), computational (COMP), and implied decimal (V) definitions can be read directly from input files. In contrast, edited formats containing suppression characters (Z) or insertion characters like the actual decimal point (.) are meant for printed output and cannot be used for input fields.