Exit C6030-042 Developing with IBM Enterprise PL/I
Question 3 of 5
0% complete
Q3 Single choice

The following program was written to copy a dataset with record length of 100 to another dataset. If this requirement has not been fulfilled, which is the most likely reason?

DCL DDIN FILE RECORD INPUT;

DCL DDOUT FILE RECORD OUTPUT;
DCL INSTRUC CHAR(100);
DCL EOF_IN BIT(1) INIT('0'B);
ON ENDFILE(DDIN) EOF_IN = `1'B;
DO UNTIL (EOF_IN);
READ FILE (DDIN) INTO(INSTRUC);
WRITE FILE(DDOUT) FROM(INSTRUC);
END;

  • A

    The code fulfills the requirement.

  • B

    The code does not fulfill the requirement because the input structure is the same as the output structure.

  • C

    The code does not fulfill the requirement because the OPEN statements are missing.

  • D

    The code does not fulfill the requirement because too many records will be written to the output dataset.