Execute the Job from step11.

All sort of Mainframes Interview Questions.
Post Reply
DannyG
New Member
Posts: 7
Joined: Tue Dec 30, 2014 11:09 am

Execute the Job from step11.

Post by DannyG »

Hi,

In the interview they asked, if there are 30 steps in ajob and we want to execute from step 11.

I replied that we can code RESTART=STEP11 in the job card.

The they asked, but if step11 abends, we want other steps to execute and if it does not aend other steps shuoul not execute.

To this I could not answer, can anyone please help with an answer.
User avatar
Akatsukami
Global Moderator
Global Moderator
Posts: 122
Joined: Tue Oct 20, 2015 3:20 am
Location: Bloomington, IL
Contact:

Re: Execute the Job from step11.

Post by Akatsukami »

Enclose the remaining steps in an IF construct.
"I come to the conclusion that, men loving according to their own will and fearing according to that of the prince, a wise prince should establish himself on that which is in his own control and not in that of others." -- Niccolò Machiavelli
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Execute the Job from step11.

Post by enrico-sorichetti »

in most forums the question
if there are X steps in a job and we want start executing from step Y .
is one of the first items
in the list of the topics not eligible for discussion

it has been debated so many times and answered so many times
that anybody not able to reserch it by himself/herself should consider a switch to a profession less demanding

but really the question should belong to the stupid questions category
the only times I have seen the technique used was in the prehistoric age of punched cards
when shuffling the deck of a running icl was considered foolish :mrgreen:
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-)
vikriih
New Member
Posts: 8
Joined: Sat Oct 24, 2015 3:31 pm

Re: Execute the Job from step11.

Post by vikriih »

COND statement can be used..refe: Please post links only from IBM's site.
Last edited by Anuj Dhawan on Wed Nov 11, 2015 7:26 pm, edited 1 time in total.
Reason: Link removed
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.”