COND parameter specifies the return code test which the
system uses to determine whether a JOB wil continue
processing or not.If the test is not specified then the
system executes the job step else system bypasses all the
To be more specific, COND parameter is used to determine
whether to execute a particular steps or steps based on the
return from a previous step (s). e.g. you may want to send
an email notification to someone ONLY if a particular Job
step abends or return a return code greater than acceptable
norm. In such situation the EMAIL STEP (ideally should be
the next step of the step whose notification is needed if
abend occurs) can be coded with COND=ONLY. Similarly
COND=EVEN will execute a step EVEN if the previous step
abended. We can specify two parameters for COND in oder for
the Job to decide whether to execute the step or not. e.g.
COND=(0,LE) - This will execute the step only if the return
code of the previous step is Zero.
we can code cond parameter on both job and exec
stmts.very step has to be executed a return code upon
completion.that is known as condition code.condition is
used to control the execution of the subsequent
steps.always the condition parameter based on the previous
step.suppose the given cond is true,the step is not
executed,otherwise it will bypassed to its next step.
//STEP1 EXEC PGM=ABC
//STEP2 EXEC PGM=XYZ,COND=(4,LT,STEP1)
HERE THE CONDITION IS TRUE,
so,step will not executed.
There are 2PROCS in a JCL. I want following conditions to
be carried out
1) 1st PROC should be executed as such
In second PROC
2) First 4steps should not be executed
3) 5th step should not be executed
4) 6th and 7th step should be executed
The change should be done only in the JCL and PROC should
be untouched ?
1) Is CLASS used for assigning Priority (as we say a job
having class '6' will run before the job having class '5'?
then what is the difference between CLASS and PRTY ?
2) In a same JCL, 2 JOB statements with different Classes
and NO PRTY are submitted ? which will run first ? & with
different classes and different PRTY also, which will run
first now ?
There is one QSAM is the VB file. i want to get the first
characters in this file and change those characters
from'abcd' to '1234' and creat a vasm file to put '1234' in
it. how to do in only JCL.
if it not QSAM, it's VASM and VB. how to do it.