What is the purpose of DD * statement in JCL?

  1. Begins the input data prompt at the system console

  2. Begins an instream dataset

  3. Marks the end of the 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 JCL (Job Control Language).

The DD statement is used to define and describe datasets in JCL. It is primarily used to specify the input and output datasets required for the execution of a job step.

Option A) Begins the input data prompt at the system console - This option is incorrect. The DD statement does not prompt for input data at the system console. It is used to define datasets.

Option B) Begins an instream dataset - This option is correct. The DD statement is used to define an instream dataset, which is a dataset that is defined within the JCL itself rather than being stored on disk. The instream dataset can be used as input or output for a job step.

Option C) Marks the end of the command stream - This option is incorrect. The end of the command stream is marked by the "//" syntax, not the DD statement.

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

The correct answer is B) Begins an instream dataset. This option is correct because the DD statement is used to define an instream dataset within the JCL.

Find more quizzes: