Multiple choice technology mainframe

What is the DD statement for a output file?

  1. Code the DSN as PDS (member) with a DISP = OLD

  2. Code the DSN as PDS (member) with a DISP = SHR

  3. Code the DSN as PDS (member) with a DISP = NEW

  4. Code the DSN as PDS (member) with a DISP = MOD

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

For output files creating a NEW PDS member, you must use DISP=NEW to allocate a new dataset. DISP=OLD and DISP=SHR are for existing datasets. DISP=MOD is for extending existing datasets, not creating new ones. DISP=NEW with appropriate DCB parameters creates the new PDS member.