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

In JCL, DISP=(status, normal-termination, abnormal-termination). If only ( ,CATLG) is provided, the status defaults to NEW. For a NEW dataset, the normal-termination default is DELETE, but here it is explicitly CATLG. The abnormal-termination defaults to the normal-termination value if omitted, resulting in NEW,CATLG,CATLG.