I have a JCL with 100 steps. I want run the Alternate steps
in the JCL ( Like 2 ,4,6,8 etc.. ). How can I acheive this
scenario? If It is by Cond Parameter can you provide the
Condition code for that?
Answers were Sorted based on User's Feedback
Answer / chandrakant
Hi ,
cond=even means if previous steps are terminated abnormally
that time also this step should be executed . it does not
mean to execute the steps in any specific order( even 2,4,6)
Is This Answer Correct ? | 15 Yes | 6 No |
Answer / sathish kumar
In job card give restart=stepname2
from stepname3 to consecutive ODD steps give the below
condition
cond=(4095,GE)
This will execute the steps stepname2,4,6,8.... and
bypasses the odd steps.
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / alla srikanth
small change*** no need to mention cond=EVEN on on job
statement
specify restart=step2 on job statement i.e,
execution begings at step no 2 and every step from step2
onwards executed.
for odd number jobsteps specify cond=(o,le)(condition is
ture for all return codes hence steps with this cond code is
bypassed)
hence begin at step2 and odd no steps are bypassed i.e even
steps are executed
Is This Answer Correct ? | 7 Yes | 7 No |
Answer / rekha
In JOB card give Restart=(name of the second step).
After that for every ODD numbered step give the cond as
COND=(0,GE) because the Condition Code will starts from 0
onwards,so every odd step will be skiped and only the even
steps will be executed.
Is This Answer Correct ? | 3 Yes | 6 No |
Answer / srk
specify restart=step2,cond=even on job statement i.e,
execution begings at step no 2 and every step from step2
onwards executed.
for odd number jobsteps specify cond=(o,le)(condition is
ture for all return codes hence steps with this cond code is
bypassed)
hence begin at step2 and odd no steps are bypassed i.e even
steps are executed
Is This Answer Correct ? | 1 Yes | 8 No |
If a jcl has just 1 step and the input file to this does not exist, then what will happen if we submit this job?
what is the restart?hopw it is invoked?
I have a file in which I have 20 records. I want my first record to go into file 1 and second record to go in second file. I want to copy the alternate records like this in the two output files. How can I do this using JCL?
How many types of parameters are used in JCL and what are mandatory parameters of JOB statement.
In my JCL 10 Steps Will Be there Now i want to execute step05 And step06. How to Give the Cond?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
What are the parameters that are used in creating a gdg?
what is a cataloged procedure ?
wt will happen to the step of a job if u code COND=ONLY
you have one jcl .in sort step 5 files are there.if out of 5 files if one file is uncataloged or not there then how will you correct your jcl so that problem does not come. you should not create this file externally.how will u overcome it.
why do we use file-aid wht r the adv of using file-aid thn in ispf
I have 20 steps in a job... step01, 02....step17...step20. For some reason I want to execute step17 only if the return code for all the previous steps are less than or equal to 4. otherwise if return code for any of the previous 16 steps is greater than 4, then step17 should be bypassed. How do I do that ?? how and in which step should i formulate COND parameter