Multiple choice technology mainframe

During the course of a job, a program uses the output from a previous job step as its source data, and then creates a new data set and copies it to another storage device. How many DD statements would you find in the JCL for this job step?

  1. 1

  2. 2

  3. 3

  4. 4

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

This job step needs 3 DD statements: one for input (previous job step output), one for output (new data set creation), and one for copying to another storage device. Each data access requires its own DD statement.

AI explanation

The step needs one DD statement for the input dataset (the previous step's output being read), one DD statement for the new dataset being created, and one DD statement for the target storage device the new dataset is copied to — three distinct DD statements in total, each pointing at a different dataset/device involved in the step.