C9050-042.pdf - IBM C9050-042 Developing with IBM Enterprise PL\/I Download Full version http\/killexams.com\/pass4sure\/exam-detail\/C9050-042 QUESTION 134

C9050-042.pdf - IBM C9050-042 Developing with IBM...

This preview shows page 1 - 3 out of 5 pages.

IBM C9050-042 Developing with IBM Enterprise PL/I Download Full version :
Image of page 1
QUESTION: 134 Requirement Copy a dataset of record length 100 to another dataset. If the following code does not fulfill the requirement above, 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; READ FILE(DDIN) INTO(INSTRUC); DO WHlLE(^EOF_IN); WRITE FILE(DDOUT) FROM(INSTRUC); READ FILE(DDIN) INTO(INSTRUC); WRITE FILE(DDOUT) FROM(INSTRUC); END; A. The code does not fulfill the requirement because too many records will be written to the output dataset, except when the input dataset is empty. 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 fulfills the requirement.
Image of page 2
Image of page 3

You've reached the end of your free preview.

Want to read all 5 pages?

  • Winter '18
  • Dr. Moez
  • C9050-548 Discount Coupon, C9050-548 Promo Code, C9050-548 Vce, Free C9050-548 Vce, Download Free C9050-548 Dumps

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture