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.
Loading...
Related Quiz
- To schedule a job to execute when a specific job step completes successfully, you can use the _______ parameter.
- In a mainframe environment, you are tasked with allocating datasets for a batch processing job that runs every night. How would you ensure that the allocated datasets are efficiently managed?
- When might you use COND=EVEN in a JCL step?
- What is the significance of the OUTFIL statement in a SORT step of the JCL SORT utility?
- In a mainframe environment, how do you ensure that high-priority jobs are executed before low-priority jobs?