Page 1 of 1

Question Temporary Data Sets.

Posted: Wed Apr 02, 2014 5:12 pm
by KavalJeet
In a JCL, I've temporary data sets getting created in between. In Step 05, a &&TEMP data set with DISP=(NEW,PASS) is created and is input to step 09 with (OLD, DELETE). If the JCL abends at step 07 and we try to restart the job from step 07, will the temporary data set created previously be existing or should I need to restart the Job from STEP 05? Please help.

Re: Question Temporary Data Sets.

Posted: Wed Apr 02, 2014 5:30 pm
by Robert Sample
The temporary data set will not be available after the job completes (whether normal completion or ABEND). Your restart needs to include the step that creates the temporary data set.

Re: Question Temporary Data Sets.

Posted: Tue Jan 24, 2017 1:51 pm
by KavalJeet
Thanks. Can we store the contents of temporary data for some analysis?

Re: Question Temporary Data Sets.

Posted: Tue Jan 24, 2017 3:11 pm
by nicc
Yes - make it a permanent data set - it can be deleted at EOJ.

Re: Question Temporary Data Sets.

Posted: Tue Jan 24, 2017 7:12 pm
by Robert Sample
Can we store the contents of temporary data for some analysis?
No -- a temporary data set is a data set that goes away at the end of the job -- period. As Nic said, you can change it to a permanent data set which will stay around after the end of the job, but then it is no longer a temporary data set. And a permanent data set will need to meet the site requirements for name, size, and so forth.

Re: Question Temporary Data Sets.

Posted: Mon Feb 06, 2017 11:00 am
by KavalJeet
Thanks, got it working. I have allocated dataset and used that.

So can we say theat "temporary" dataset is only meaningful when system is creating them and not a user?

Re: Question Temporary Data Sets.

Posted: Mon Feb 06, 2017 2:49 pm
by nicc
No.

Re: Question Temporary Data Sets.

Posted: Mon Feb 06, 2017 6:30 pm
by Robert Sample
Temporary data sets can be VASTLY useful for users as well as the system.

Re: Question Temporary Data Sets.

Posted: Wed Feb 08, 2017 2:55 pm
by KavalJeet
I could not tell it well what I wanted to ask but that is fine. Thanks for the answeres.

Re: Question Temporary Data Sets.

Posted: Wed Feb 08, 2017 4:19 pm
by enrico-sorichetti
So can we say theat "temporary" dataset is only meaningful when system is creating them and not a user?
NO, but You are mixing up things ...

being temporary is a property of a dataset, as opposed to being permanent full stop

who/what creates them is completely irrelevant to the property

who is the system and who is the user :?: