Multiple choice technology mainframe

------- Used for storage, needed only for the duration of the job?

  1. Storage dataset

  2. Temporary dataset

  3. Both

  4. None of the above

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

Temporary datasets in JCL are created with DSN=&&prefix and are used only for the duration of the job. They are automatically deleted after job completion. Storage datasets are permanent datasets that persist beyond the job, making 'Temporary dataset' the correct answer.

AI explanation

Temporary dataset is correct. In JCL/z/OS terms, a temporary dataset (often named with a leading &&, e.g. &&TEMP, or allocated with DISP=(NEW,DELETE,DELETE)) exists only for the life of the job step(s) that reference it and is automatically deleted by the system once the job ends — it's used for intermediate work data (like sort work files) that doesn't need to persist. 'Storage dataset' isn't standard JCL terminology (distractor), so 'Both' and 'None of the above' don't apply either. Permanent datasets, by contrast, are cataloged and persist across jobs until explicitly deleted.