If the status field of the DISP parameter is specified as NEW, 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: B

AI Explanation

To answer this question, we need to understand the DISP parameter in JCL (Job Control Language) and its possible values.

The DISP parameter is used to specify the disposition of a dataset. It determines what happens to the dataset at different stages of the job execution, such as normal termination or abnormal termination.

When the status field of the DISP parameter is specified as NEW, the dataset is considered to be a new dataset. Let's go through each option to determine the default values assigned to the dataset at normal and abnormal termination:

Option A) CATLG, DELETE - This option is incorrect because the default value at normal termination is DELETE, not CATLG. Option B) DELETE, DELETE - This option is correct because the default value at both normal and abnormal termination is DELETE. Option C) CATLG, CATLG - This option is incorrect because the default value at normal termination is DELETE, not CATLG. Option D) DELETE, CATLG - This option is incorrect because the default value at normal termination is DELETE, not CATLG. Option E) KEEP, KEEP - This option is incorrect because the default value at normal termination is DELETE, not KEEP.

The correct answer is B. The default values assigned to the dataset at the normal and abnormal termination of the job, when the status field of the DISP parameter is specified as NEW, are DELETE and DELETE respectively.

Find more quizzes: