Sie sind auf Seite 1von 11

What is CA-7 Scheduler? Where did CA-7 come from?

Think of jobs as, Flights taking off from an Airport. On a bu AM, all jobs that were scheduled to depart at 09:00 AM take-o all of this.

In the Production Environment(where things are running live), and give it to the Mainframe Computer for Processing. Product auto-start at a given time. The CA-7 Scheduler on Mainframes database or chart of which jobs run when?

A company had made CA-7 in the United States for their own in would still see programs like SASSBSTR and SASS Messages toda bought the product SASS and renamed it UCC-7. In 1987, Comput their policy to name all their products with CA Prefix, so UC Q. What is the CA-7 Queueing System?

CA-7 has different staging areas called Queues, where jobs could be. The CA-7 Qu (3) Active Queue. These queues are like traffic signals on a road. First the job ha the job has to wait in the Ready Queue(Orange Signal) this means the job is almos
Queue(Green Signal).

(1) The Database holds the Timetable of when the jobs run. CA-7 periodically sc to run in the next few minutes.

(2) When the clock strikes 09:00 HRS, the Job A enters into the Request Queue. T added to the Trailer of the CA-7 Request. Each Job in the Request Queue, waits fo

(3) When all conditions and requirements are met, the job progresses ahead to t

(4) When there are enough initiators to pick up the Job from the Queue, the job i shown on the Ready Queue.

(5) An SMF Type 20 or 30 record(job initialization) is received by CA-7, and the j execution in an address space.

(6) The job will remain on the Active Queue, until an SMF Type 5 or 30(job comp completion, if the job is successful, the Prior Run Queue(PRRN) Queue will be up a last run-time record for the job. However, if the job fails, it will be returned to Q. How a job enters into the Request(REQ) Queue?

There are 3 ways, a job can enter into the Request Queue[REQ] demanded out.

(1) Scheduled(SSCN) Jobs can be scheduled to run at a fixed every month-end at 08:00 PM, Load jobs run every-day at 05:00

(2) Triggered(AUTO) A parent job X, when it runs to success job Y. A TRIGGER automatically brings Job Y into the REQ Queu (3) Demanded(DEMD) A Job X can programmatically Demand out Job X has the following code : If Input File contains DATA Demand Job Y Else Continue End-if

Here, Job Y is brought into the Request Queue[REQ], only if t Input file is empty; if theres no data to process, the job i you can exercise more control, over how the job kicks off. Q. How to know Jobs information in CA-7?

You type the command LJOB,JOB=jobname,LIST=ALL to find all th Ive found all the information about my job GEMPAIAS on CA-7.

This shows all the information about my job CPARSDLY which successor jobs, what are the steps in this job etc.

To know, if a job is Scheduled, or Triggered or Demanded out, Scheduled LSCHD,JOB=jobname,LIST=CALS Triggered LJOB,JOB=jobname,LIST=TRIG Demanded Unfortunately, theres no direct way no this, as D but in JCL. However, if the Job is demanded out into the REQ Mode column. Sometimes, you can use LJOB,JOB=jobname,LIST=PRO information about the Demanding job. Q. How to know, if a job is scheduled?

The quick way to know if a Job is Scheduled, is to use the Li LIST=CALS(Calendar) option. This opens up a Calendar view, an

calendar days of the year, your job is going to run.

In the clipping below, my job GMSBDRQ1 runs on all week-days, Q. How to know, if a job is triggered? A job X can be brought in the REQ(Request) Queue, when it Job Y. How do you know, the Triggering Job or Parent Job. the LJOB Command, to find out the triggering job. In the below clipping, my job XRPDGLPS is GMSBDRQ1 completes, my job XRPDGLPS would be brought into Q. How to know if a Job is Demanded out?

is You

tri the

A job can be programmatically demanded out by another job, ba is true, the job is demanded out into the REQ(Request) Queue. not demanded out. Generally, information about the Demanding LIST=PROSE option of the LJOB command, may give details about clipping, my job GEMIATAL job is demanded out by GMLIASXA.

Q. How long does a job wait in REQ Queue, before it enters RD A job has to Requirements Requirements Submit Time, fulfilled or

wait in the CA-7 REQ(Request) Queue, until all o are like additional promises, which must be fulf could be anything like, Completion of another jo User Hold or a Negative Dependency. Its only whe posted, the job is brought to the Ready Queue(RD

Check out this example. A Job X triggers Job Y. Job X complet requirements R1 and R2. Job R1 completes at 07:00 AM and Jo is, when does Job Y kick-off? I would say, when Job X complet brought to the Request Queue at 08:00 AM. The requirement R1 in Request Queue[REQ], till R2 is satisfied. When R2 complete

satisfied, and Job Y will be brought to the Ready Queue[RDY]. Q. What are predecessors and successors of a Job?

Think of a relay-race with three participants Arnold, Danny scheduled to start running, but spaced apart in intervals of start running when the timer is 00:00 hrs. Danny is scheduled Hrs. Carol is scheduled to start running, when the time is 00

Requirement of Danny Danny is allowed to start running, onl passes on the baton to him.

Dependent Carol Danny owes a favour to Carol, he has a comm race and pass on the baton to her, before she can start off. Arnold > Danny > Carol

Dannys predecessor is Arnold. Dannys successor(dependent) i

You can use the LIST=RQMT option on LJOB Command, to find out job. You use the LIST=DEPJ option on the LJOB Command, to fin

In the above video clipping, my job GEMTOPR3 has the requirem (pred job) AXMYTOPV. When GEMTOPR3 enters into CA-7 REQ(Reque Requirement AXMYTOPV to be satisfied. Only, when the requirem into RDY(Ready) Queue. Moreover, the jobs GEMCNSTL, GMCNTODL GEMTOPR3. This implies that the jobs GEMCNSTL, GEMCNTODL and requirement.

Predecessor job-names may be preceded by a slash(/) to indica Negative dependency. A conditional Dependency is indicated by

a question-mark(?). If a job A is conditionally dependent on dependency(requirement) on Job B, only if Job B is in the REQ ACT(Active) Queue. The dependency is conditionally applied, p CA-7 Queue. Q. What is Lead Time? What are Look-back issues?

Lead Time is the period(in hours)[time-window], that a job lo requirements(promises) are fulfilled. See the below example. on PZCPDWKY, with a Lead Time of 5 hours. JOB=GEMPAIAS LIST=RQMT

NAME ID MEMBER -NAME- -ID -ID- DSNBR DSNBR STP DDS RUNS DATE/ JOB=PZCPDWKY SCHID=000 VRSN=10176/1131 LEADTM=05 JOB=/GEMPAIMG SCHID=000 VRSN=98258/0010 LEADTM=99 JOB=/GEMCNS6L SCHID=000 VRSN=95334/0012 LEADTM=99

Suppose, my job GEMPAIAS is a scheduled job, it is scanned ou Queue at 07:00 AM in the mornings. Now, the GEM* Job is going zee(PZ*) job. Has the Pee-Zee(PZ*) Job completed in the last its requirement Pee-Zee(PZ*) jobs completion in the time-win Zee(PZ*) Job would have completed in the time-frame[02:00-07:

However, if the Pee-Zee(PZ*) Job completes, say at 00:00 Hrs, 02:00-07:00 AM, so the requirement shall not be satisfied. Th REQ(Request) Queue(even though the PZ* Job ran, but ran at 00 Look-back Issue.

Very often, there is too large a time-gap that elapses betwee its dependent B's starting out. When B is brought into the RE doesnt fall in the Look-back(Lead-time) window, B keeps wait

Look-back Issues. CA-7 Look-back issues generally happen in t to delays in Batch Cycle, holidays etc. Lead-Time could take several values.

00 No special consideration for the amount of time elapsed, runs. 99 The requirement is never to be considered as already sat nn Since, the last run of the job, each predecessor job mus Values for nn may be from 1 to 98. Q. What is a Negative Dependency?

Sometimes, you wish - I hope these two jobs don't collide, do a Negative Dependency N, Job P and Job N can't run together(m possibilities 1. Job P can run, if Job N has not started. 2. Job P can run, if Job N has completed.

In the snapshot below, my job GEMTOPR3 has a negative-depende

GEMTOPR3 000 GEMTOPR3 GEMIDB 005 SY2 007743 *NONE* 002 000 --------------------------- SUCCESSOR JOBS ----------JOB=GEMCNSTL SCHID=000 JOB=GMCNTODL SCHID=000 JOB=QRPDR3PA SCHID=000 JOB=/XRPDR3PA SCHID=000 (Negative dependency)

Generally, Negative Dependencies are used in the Production E problems. Say, for example, if two jobs access the same

DB2 Table, its a good idea, to have a negative dependency cr Q. What are the advanced CA-7 Commands?

You can type CA-7 advanced Forecast commands, to find out the or reverse-order. FSTRUC Command gives the complete list of t bottom. FRJOB gives the complete list of triggered jobs, at a fashion. Look, how Ive found the complete hierarchy of jobs

This is how it works. GEMCAL00 triggers GEMCAPHDR(Header job) GEMCARAL and GEMCAR1L. The AL triggers a complete stream or w the *CL, triggering *EL and so on.

Q. What is Job Monitoring? How to check if a job has complete When a Mainframe Job tracking-information to retrieve from the you can code several

completes successfully, it goes to the L the log of the completed job of the pa logs, information about the previous run different options on the LRLOG Paragraph

LRLOG,JOB=job-name,DATE=* Log of the job, for the past 5 days.

LRLOG,JOB=job-name,DATE=10200 Log of the job, for the run on 2010-07-19(Julian Date 197 day

When a job abends at a particular step, you may re-start the may force-complete the job, or you may cancel the job. Force job as complete(even if the job has not run entirely successf brought into the CA-7 Queue. Cancelling the job off, is like stopping the job altogether. will be held up/hung.

LRLOG,ST=RSTR,SPAN=24 This command tells, which jobs abended and were restarted in

LRLOG,ST=FORCE,SPAN=24 This command tells, which jobs abended and were force-complet

LRLOG,ST=CANCEL,SPAN=24 This command tells, which jobs abended and were cancelled off

LPRRN,JOB=job-name This command is used find out information about the Last job-

Das könnte Ihnen auch gefallen