Multiple choice technology mainframe

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

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

DD * statement begins an in-stream dataset, allowing data to be included directly within the job stream rather than from an external dataset. The data follows immediately after the DD * line and ends with /* delimiter. This is different from DD DATA which prompts for console input. Option B correctly identifies this as beginning an in-stream dataset.

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.