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 a specific dataset disposition parameter. Option D is correct because MOD is used ONLY for sequential datasets - it positions at the end and allows appending data. MOD cannot be used with partitioned datasets (PDS) because PDS has internal directory structure that MOD doesn't support. Option A is incorrect because MOD doesn't work with partitioned datasets. Option B is incorrect because MOD can also CREATE new datasets if they don't exist. Option C is incorrect because MOD has nothing to do with dataset security (that's determined by RACF/ACF2/Top Secret). MOD is purely about sequential data set extension.