Page 1 of 1

Temporary datasets

PostPosted: Mon Oct 06, 2008 9:47 pm
by varsha
I have a very basic question regarding temporary datasets. Can you please tell me while using a temporary dataset in a job, this data set has to created explictly (like permanent datasets) or would be created automatically at runtime?

Thanks
Varsha

Re: Temporary datasets

PostPosted: Tue Oct 07, 2008 12:59 am
by Bill Dennis
The system requires some information to do the allocation of both permanent and temporary files. The parameters may come from the JCL DD statement, through dynamic allocation or from DFSMS (or other product) defaults.

Temporary datasets usually omit DSN (and use a system-generated name) and DISP (defaulting to NEW,DELETE). Other than this, the same parameters are required to create temporary datasets as for permanent.