Hi all!!
I have a batch job that has to wait many conditions from some other batch jobs, but not all of them are executed along the week.
Something like this... I have job E that runs every day and waits conditions from jobs A, B, C and D. Today only executes job C and jobs A, B & D not because they don't have to. Tomorrow may execute jobs A & D but not jobs B & C.
Assuming that I can found which are the jobs that doesn't run today, does anybody know how I can add automatically the conditions of those jobs?
Regards,
eche
Adding conditions by script or command line
hi
2 solutions
1) by script
you must check if the job A B C ... are in the AJF
ex on unix
PREJO=`ctmpsm -LISTGROUP "*" group name |grep CMD`
#test if PREJ0 has no result
if [ -z ${PREJO} ]
ctmcontb -ADD condition-name ODAT;
else
echo "no conditions to add"
fi
2) all jobs are in the same table and use adjust condition
2 solutions
1) by script
you must check if the job A B C ... are in the AJF
ex on unix
PREJO=`ctmpsm -LISTGROUP "*" group name |grep CMD`
#test if PREJ0 has no result
if [ -z ${PREJO} ]
ctmcontb -ADD condition-name ODAT;
else
echo "no conditions to add"
fi
2) all jobs are in the same table and use adjust condition
Indicates whether to ignore prerequisite conditions normally set by predecessor jobs
if the relevant predecessor jobs are not scheduled.
This parameter is relevant only for SMART Tables (7.0). or Tables (6.3..)
ex
job D wait condition for job A B C and B is not scheduled ==> the condition between B and D is ignored
in the form Executuion for a table select adjust condition
if the relevant predecessor jobs are not scheduled.
This parameter is relevant only for SMART Tables (7.0). or Tables (6.3..)
ex
job D wait condition for job A B C and B is not scheduled ==> the condition between B and D is ignored
in the form Executuion for a table select adjust condition