What is the purpose of DD * statement?

  1. Begins an input data prompt at the system console

  2. Begins an in-stream datase

  3. Marks the end of a command stream

  4. Includes all datasets within a naming pattern


Correct Option: B

AI Explanation

To answer this question, you need to understand the purpose of the DD * statement in a mainframe environment.

Option A) Begins an input data prompt at the system console - This option is incorrect. The DD * statement is not used for input data prompts at the system console.

Option B) Begins an in-stream dataset - This option is correct. The DD * statement is used to indicate that the dataset is included within the JCL (Job Control Language) itself, rather than being a separate physical dataset. It allows the program to read data directly from the JCL.

Option C) Marks the end of a command stream - This option is incorrect. The DD * statement is not used to mark the end of a command stream.

Option D) Includes all datasets within a naming pattern - This option is incorrect. The DD * statement is not used to include all datasets within a naming pattern.

The correct answer is B) Begins an in-stream dataset. This option is correct because the DD * statement is used to indicate that the dataset is included within the JCL itself.

Find more quizzes: