Ca 7
Ca 7
in
CA-7
CA-7 Introduction
CA-7
Jobs
Scheduling
Requirement Definitions
Frequently Used Terms
Batch Cycle:
Sequencing of Jobs to run in order is called Batch Cycle.
Here Successive Jobs are initiated automatically when the previous Jobs are
completed and all requirements are satisfied.
Elapsed Time:
Average time of last five successful runs of the Job is called Elapsed time
and is calculated by CA7.
Definitions:
Submit Time:
It is the time where the Job should get submitted to the Operating System.
Restart :
The term restart is interpreted as restarting the job in the step in which it has
failed. We can even restart from any other step also.
Job1 Job A
In the given example for Job2, Job1 is
called the Predecessor Job and Job3 is Job2
called as the Successor Job.
Job3
Dependencies:
In the above example Job1 has an internal requirement of JobA and Job1
will get posted only when JobA runs successfully. Hence Job1 is said to be
dependent on JobA.
Definitions:
Stand Alone Jobs:
Jobs which do not trigger any other Jobs are called as Stand Alone Jobs.
JobA
JobB
JobC
CANCEL - A failed job is removed from the CA-7 queue. Jobs waiting for the
successful completion of this job will not run unless the requirement for the failed job
is manually satisfied and if all other requirements of the job are satisfied.
Definitions:
RESTART - The term restart is interpreted as restarting the job in the step in which it
has failed.
RE-RUN - The term re-run is interpreted as re-running the job from the top, or first
step of the job. RESUBMIT and RE-RUN have the same meaning.
HOLD - A job can be placed on hold before or after it enters the CA-7 queue. The
job will remain in hold, meaning it will not run, until the hold is removed.
2. Ready Queue
3. Active Queue
Entire Job Flow Different Queues in CA-7
JOB
Did not find jcl Skeleton Status
Got Jcl
Request Queue
Ready Queue
spool
Active Queue
Job
completed/
Restarted
Force
Complete If F/C
Job Abended?
Restart /
F/C or Cancel Cance
l Canc
el
Different Queues in CA-7
Request Queue
• There are five ways by which the jobs come into the Request Queue
1. Sscan (scheduled scan)
2. Auto.
3. Demand.
4. Run.
5. Load.
Request Queue Contd…
Demand Command
Used to force immediate scheduling of a job into the CA-7 request
queue.
Syntax: Demandh,job=<job name>,schid=<schid>,set=ntr.
• The above command is to demand a job with no triggers.
Note:
• Always cross check the SCHID and trigger option before demanding the job.
• Default schid is 001 and with triggers.
• It is always safe to demand a job with hold.
Request Queue Contd…
There are three ways to remove the jobs from the Request Queue.
• Restart :
• Cancel: This command is used to remove the jobs from ca7 request Queue.
• Syntax: Cancel,job=<ca-7- id>,Reason= <text>,force=yes
• Note:Cancellation of the jobs in the Ready Queue or active queue does not
cause termination of the jobs execution.
• Using cancel command not only removes the job from request queue but
also it doesn't trigger the other jobs.
• Force complete: Force complete will not only mark the status of the jobs in
the request queue as complete but also triggers the successor jobs.
Ready Queue
• If the job is hung up in ready queue for a long time,we will move the job from
the ready queue to the Request Queue.
• We use Requeue command to move jobs from ready queue to Request queue,
Requeue,job=(job name/job no),Q=(rdy)
• Note: Don’t use Requeue Command when the job is submitted to spool, as
it creates one more instance of the job in the Request Queue.
Active Queue
CA7 Commands
List of CA7 Commands
Miscellaneous Commands:
Use the SSCAN top line command to review schedule scan options or
to alter the way in which schedule scan performs its scheduling
functions.
Weekly Job Indicates that the user wants to define a weekly schedule.
Select Days From SUN through SAT.
Monthly job Indicates that the user wants to define a monthly schedule.
INDEX: Specifies an adjustment to schedule days. After exercising the ROLL option,
the schedule is adjusted, forward for plus or backward for minus, by the number of
working days entered.
Size/Type: 4 numeric characters specified as Snnn where S can be plus (unsigned) or
minus (-) and nnn can be any integer from 001 to 365.
Late jobs…
Forecasting?
Jobs on Hold…
CA-7 Procedures
Late Job
Analysis: Use LQ,ST=Late,List=Status to List the
JOBS in LATE Status with all Requirements
It may be waiting
for another If waiting for Internal JOB
internal job also
FSTRUC,JOB=Job B
Job B Job B
Job C Job C
Job D Job D
Job E Job E
Reverse Structured Format: Forward Structured Format:
Job D is triggered by Job C Job B is triggering Job C
Job C is triggered by Job B Job C is triggering Job D
Job B is triggered by Job A Job C is triggering Job E
Lead time miss… External Requirements
check the Lead
time
using the db.3.2 / jobconn,job we can view the LDTM (look back time).
Note that, db.3.2 and jobconn,job do the same function; and db.3.6 and
jobconn,usr do the same function.
Add Requirements
To Put the job on Hold when it is not on the Request queue.
Use db.3.6 or jobconn,usr panel and add the user requirement.
• Go to Spool & put C or P for that job and Cancel it, and then,
• Come to XQM Panel, then Force Complete it.
Cancel,job=<jobname/job no.>,force=yes,reason=<text>
• Why Force=Yes, is necessary, when Canceling a Job?
Libraries…
Fig: Over view of Stage & Index Library
Case 2:
Copy from Stage index 252 –
Case 1: save it in index 254 – Run it
Request Copy from Stage index 252 – Will be Deleted in index 254
run it –
Queue Will be Deleted in index 252
In normal
case
Production
sys6.Override.jcl
Library sys6.stage.jcl
Library
Index 90 Library
Index 254
Index 252
Personal
Make a copy to index 254.
Library Make a copy to index 252. Developer/owner doesn’t
Copy done by Developer/owner. know about index 254.
Everyone has access here and so, Only CA7 has access here and so,
we can copy from here. Prod-Mon Team only
We don’t have access to But simultaneous access by has access here
Developer’s Personal Library 2 person is not possible
Different Methods to
run the jobs
To Demand the job with hold from Production library (index 90):
Command: demandh,job=jobname,schid=<Num>,set=ntr,time=****
Steps to be followed to run the job from Stage library (index 252):
2. Steps: JCL Fetch (from index 252) Save (to Index 254) Demand the Job with /
without Hold.
Different Methods to
run the jobs
Steps to be followed to run the job from Override library (index 254):
2. Steps : JCL Fetch (from index 252) repl (replace in Index 254) Demand
the Job with / without Hold.
• ARF is mainly used for CA-7 to monitor exception conditions for production
jobs
and to schedule recovery actions to execute when the job abends.
• Note: Once the ARF rule is attached to the job,ARF works along with
the job when the job is submitted to the spool and consumes the CPU
resources.
ARFSET ARF
ARFP,JOB=<job number>,FORCE=YES
JOB NUMBER Unique CA-7 number of the job for which pending ARF
activity is to be purged.
FORCE Forces the purging of the ARF requirement for a job even if it does
not exist in the request, ready, or active queue.
CA-11
CA-11
• Rules:
• Job should be defined to CA-7.
• Job should be defined to CA-11.
• We need to specify CA-7 that CA-11 tracking is on
The figure clearly explains the usage of LRTCD and Start in Restart Card
If Restart
After
Abended step?
If Restart
yes
From
Abended step?
insert the step needed to be
Restarted in START field.
yes
CA-11 tracks it
and so, Restart Mark the Abended step as 0 in
‘LRTCD’ and so, Restart
CA-11
• “LRTCD:” has to be overridden if there is condition code stated in a particular
step of the JCL and the User wants you to restart from that step then you need to
give that which satisfies the condition code.
E.g.:-
If a job abended at step 4 and we want to restart the job from step
6.Then the restart step should be changed to 6, and LRTCD should be LRTCD:
step 4 = 0.So that the return code of step 4 would be changed to 0 (success), so
that all the other steps from step 6 will run, otherwise all the steps after step 4 will
also be flushed.
ARTS:
If you have installed the CA-7 & CA-11 interface, then you can use the ARTS
command to interface directly with CA-11.
CA-11