In a JCL job, you need to allocate a temporary dataset for sorting. How would you use the DD statement to achieve this, and what attributes would you specify?

  • //SORTIN DD DSN=&&TEMPDS,DISP=(MOD,CATLG,DELETE),SPACE=(CYL,(5,5),RLSE)
  • //SORTIN DD DSN=&&TEMPDS,DISP=(MOD,PASS),SPACE=(CYL,(5,5),RLSE)
  • //SORTIN DD DSN=&&TEMPDS,DISP=(NEW,CATLG,DELETE),SPACE=(CYL,(5,5),RLSE)
  • //SORTIN DD DSN=&&TEMPDS,DISP=(OLD,DELETE),SPACE=(CYL,(5,5),RLSE)
To allocate a temporary dataset for sorting, the DD statement uses a special dataset name (starting with &&) and specifies DISP as MOD to ensure it can be modified between job steps.
Add your answer
Loading...

Leave a comment

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