Module 4: JCL DD Statement
TEMPORARY DATASET
A temporary dataset is created during a job’s execution and is deleted after the job is terminated. The reason for using temporary dataset is to release the storage used for dataset after the job termination. Here need to make note that dataset is deleted after job termination not step termination.
In order to code indicate temporary dataset we need to specify either using && or omitting DSN parameter as shown below in below example
Example:-
//DATA1 DD DSN=&&TEMPDATA,UNIT=SYSDA,SPACE=(CYL,1)
//DATA2 DD UNIT=SYSDA,SPACE=(CYL,1)