When to use DISP=MOD?
-
For both sequential and partitioned datasets to be extended or created.
-
Only for existing datasets to be extended
-
For all secured sequential datasets to be extended
-
Only for sequential datasets to be extended or created.
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.
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.