If the status field of the DISP parameter is specified as OLD, what are the default values that will be assigned to the dataset at the normal and abnormal termination of the job?

  1. CATLG, DELETE

  2. DELETE,DELETE

  3. CATLG, CATLG

  4. DELETE, CATLG

  5. KEEP, KEEP


Correct Option: E

AI Explanation

To answer this question, let's understand the DISP parameter and its status field.

The DISP parameter is used in JCL (Job Control Language) to specify the disposition of a dataset. It determines what actions to take with the dataset at the end of the job.

The DISP parameter has three fields: status, primary, and secondary. In this question, we are only concerned with the status field.

If the status field of the DISP parameter is specified as OLD, it means that the dataset already exists and is to be used by the job.

Now let's go through each option to determine the default values assigned to the dataset at the normal and abnormal termination of the job:

Option A) CATLG, DELETE At normal termination: The dataset will be kept and cataloged. At abnormal termination: The dataset will be deleted.

Option B) DELETE, DELETE At normal termination: The dataset will be deleted. At abnormal termination: The dataset will be deleted.

Option C) CATLG, CATLG At normal termination: The dataset will be kept and cataloged. At abnormal termination: The dataset will be kept and cataloged.

Option D) DELETE, CATLG At normal termination: The dataset will be deleted. At abnormal termination: The dataset will be kept and cataloged.

Option E) KEEP, KEEP At normal termination: The dataset will be kept and not cataloged. At abnormal termination: The dataset will be kept and not cataloged.

The correct answer is E) KEEP, KEEP. This option is correct because, when the status field is specified as OLD, the dataset will be kept as is at both normal and abnormal termination of the job. It will not be cataloged or deleted.

Therefore, the default values assigned to the dataset when the status field of the DISP parameter is specified as OLD are KEEP, KEEP.

Find more quizzes: