Page 1 of 1

Execute only odd or even number steps witout condition code

PostPosted: Tue Mar 18, 2008 3:26 pm
by manivas
I have maximum number of steps(say 70steps). I need to execute only odd or even number steps witout condition code?Please give me the sample code? :)

Re: Execute only odd or even number steps witout condition code

PostPosted: Tue Mar 18, 2008 9:33 pm
by arunprasad.k
I need to execute only odd or even number steps witout condition code?


You can do this only by coding COND=(99,NE) in all the even or odd step to prevent it from executing.

Alternatively you can have all the even step in one proc and odd step in another proc and one COND parameter and skip the steps.

If this is not what you are looking for, post your requirements clearly.

Arun.

Re: Execute only odd or even number steps witout condition code

PostPosted: Wed Mar 19, 2008 2:05 am
by dick scherrer
Hello,

If i understand what you want to do, you cannot do it.

I may not understand what you want to do. . .

What kind of process is supported by this "rule"? It really makes little or no sense. If you always want one set or the other, use 2 jobs. . .

Or, as Arun posted, explain what you want more clearly.

Re: Execute only odd or even number steps witout condition code

PostPosted: Thu Mar 20, 2008 3:34 am
by MrSpock
This question appears with alarming frequency, although I don't know if it's supposed to be an interview question, or someone's idea of a gag on the unsuspecting rookie.

The only obvious answer is that the source JCL has to be passed through an edit routine to either remove or comment-out the steps that are be be skipped.

Re: Execute only odd or even number steps witout condition code

PostPosted: Thu Mar 20, 2008 4:31 pm
by manivas
Thanks all... for your reply. One of my friend faced this question in an interview. That's why i have posted.

Re: Execute only odd or even number steps witout condition code

PostPosted: Thu Mar 20, 2008 11:49 pm
by dick scherrer
Hello,

I don't know if it's supposed to be an interview question, or someone's idea of a gag on the unsuspecting rookie
I suspect it is both. . . Bummer.

Thanks all... for your reply. One of my friend faced this question in an interview. That's why i have posted.
You're welcome :)

Yes, often interviewers (especially for candidates with little or no experience) ask some (IMHO) really bad questions. Unfortunately, the candidate has to act respectful to these questions.

Re: Execute only odd or even number steps witout condition code

PostPosted: Sun Mar 23, 2008 11:44 pm
by pcdoctor
Can IEBEDIT be a convincing trick for this case?

Re: Execute only odd or even number steps witout condition code

PostPosted: Mon Mar 24, 2008 10:06 pm
by dick scherrer
Hello,

Not by specifying odd or even. . .

You can specify steps to be executed, but iebedit does not know about odd/even.