Question Temporary Data Sets.

All sort of Mainframes Interview Questions.
Post Reply
KavalJeet
Registered Member
Posts: 48
Joined: Wed Jun 19, 2013 9:47 am

Question Temporary Data Sets.

Post 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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Question Temporary Data Sets.

Post 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.
KavalJeet
Registered Member
Posts: 48
Joined: Wed Jun 19, 2013 9:47 am

Re: Question Temporary Data Sets.

Post by KavalJeet »

Thanks. Can we store the contents of temporary data for some analysis?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Question Temporary Data Sets.

Post by nicc »

Yes - make it a permanent data set - it can be deleted at EOJ.
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Question Temporary Data Sets.

Post 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.
KavalJeet
Registered Member
Posts: 48
Joined: Wed Jun 19, 2013 9:47 am

Re: Question Temporary Data Sets.

Post 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?
nicc
Global Moderator
Global Moderator
Posts: 691
Joined: Wed Apr 23, 2014 8:45 pm

Re: Question Temporary Data Sets.

Post by nicc »

No.
Regards
Nic
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Question Temporary Data Sets.

Post by Robert Sample »

Temporary data sets can be VASTLY useful for users as well as the system.
KavalJeet
Registered Member
Posts: 48
Joined: Wed Jun 19, 2013 9:47 am

Re: Question Temporary Data Sets.

Post by KavalJeet »

I could not tell it well what I wanted to ask but that is fine. Thanks for the answeres.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 824
Joined: Wed Sep 11, 2013 3:57 pm

Re: Question Temporary Data Sets.

Post 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 :?:
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 8-)
Post Reply

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

Register

Sign in

Return to “Interview Questions.”