You have a JCL job that needs to write output data to a new dataset. How would you define the DD statement to allocate this new dataset with a specific dataset name?

  • //OUTPUT DD DSN=NEW.DATA.SET,DISP=(MOD,CATLG,DELETE),SPACE=(CYL,(5,5),RLSE)
  • //OUTPUT DD DSN=NEW.DATA.SET,DISP=(MOD,CATLG,MOD),SPACE=(CYL,(5,5),RLSE)
  • //OUTPUT DD DSN=NEW.DATA.SET,DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(5,5),RLSE)
  • //OUTPUT DD DSN=NEW.DATA.SET,DISP=(NEW,CATLG,MOD),SPACE=(CYL,(5,5),RLSE)
The correct DD statement allocates a new dataset named NEW.DATA.SET with DISP parameter specifying it as new, cataloged, and deleted if it already exists, with space allocation in cylinders.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *