Question Temporary Data Sets.
Question Temporary Data Sets.
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.
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Question Temporary Data Sets.
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.
Thanks. Can we store the contents of temporary data for some analysis?
Re: Question Temporary Data Sets.
Yes - make it a permanent data set - it can be deleted at EOJ.
Regards
Nic
Nic
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Question Temporary Data Sets.
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.Can we store the contents of temporary data for some analysis?
Re: Question Temporary Data Sets.
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?
So can we say theat "temporary" dataset is only meaningful when system is creating them and not a user?
- Robert Sample
- Global Moderator
- Posts: 1895
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: Question Temporary Data Sets.
Temporary data sets can be VASTLY useful for users as well as the system.
Re: Question Temporary Data Sets.
I could not tell it well what I wanted to ask but that is fine. Thanks for the answeres.
-
- Global Moderator
- Posts: 826
- Joined: Wed Sep 11, 2013 3:57 pm
Re: Question Temporary Data Sets.
NO, but You are mixing up things ...So can we say theat "temporary" dataset is only meaningful when system is creating them and not a user?
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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute