JCL Interview question.

All sort of Mainframes Interview Questions.
RaGa
New Member
Posts: 9
Joined: Wed Sep 09, 2015 9:52 am

JCL Interview question.

Post by RaGa »

Hi,

Can anyone please help me with below question :- 1). In a 5 step jcl temporary dataset is created at step 1 but the job abends at step 2. So, from which step should I restart the job now?
User avatar
zum13
Active Member
Posts: 135
Joined: Thu May 04, 2023 12:58 am

Re: JCL Interview question.

Post by zum13 »

Hello.

Temporary datasets, those starting with "&&", do not persist beyond the current job. In the scenario described, you'd have to rerun the job from the begining as your original temporary dataset would be gone.

If it's essential that step 2 be restartable (say, it's a BMP), then you'd create a named, non-temporary dataset that's created at the start of the job and is deleted by the end. Should step 2 abend, the dataset will still exist and you'll be able to restart from that step.
User avatar
florry372
New Member
Posts: 7
Joined: Wed Jun 12, 2024 8:36 pm

Re: JCL Interview question.

Post by florry372 »

Temporary datasets vanish with the abend, so restarting from step 2 isn't an option. Always a good reminder to use permanent datasets for critical steps if restartability matters.
Post Reply Previous topicNext topic

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.”