Multiple choice technology mainframe

When to use DISP=MOD?

  1. For both sequential and partitioned datasets to be extended or created.

  2. Only for existing datasets to be extended

  3. For all secured sequential datasets to be extended

  4. Only for sequential datasets to be extended or created.

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

DISP=MOD is used exclusively for sequential datasets to add new records at the end. It cannot be used with partitioned datasets (PDS), and it's not for security purposes. DISP=MOD works on existing sequential datasets to extend them, or creates a new sequential dataset if it doesn't exist. Option D correctly states it's only for sequential datasets.

AI explanation

DISP=MOD tells the system to append to an existing sequential dataset, or, if it doesn't yet exist, to create it fresh — that's the defining behavior of the MOD disposition. It doesn't apply to partitioned datasets in this way, so the option restricting it strictly to sequential datasets being extended or created is the accurate one.