Multiple choice technology programming languages

If DISP=(,CATLG) which is the correct one?

  1. DISP=NEW,CATLG,CATLG

  2. DISP=OLD,DELETE,CATLG

  3. DISP=NEW,CATLG,DELETE

  4. DISP=OLD,CATLG,CATLG

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

DISP=(,CATLG) uses abbreviated syntax where the first parameter is omitted and defaults to NEW. The full form is DISP=NEW,CATLG,CATLG meaning: create new dataset, catalog on normal completion, and catalog on abnormal completion. OLD applies only to existing datasets, and DELETE would remove rather than catalog the dataset.