Sie sind auf Seite 1von 28

CA-7

This document is a brief on how to operate CA-7

Table of Contents
Table of Contents.......................................................................................................................................2 1. Introduction :..........................................................................................................................................3 2.0 Brief of CA-7.......................................................................................................................................4 3.0 HOW TO SCHEDULE JOBS IN CA-7..............................................................................................16 4. CA 7 Commands..................................................................................................................................23

1. Introduction :
CA-7 is a job scheduling tool. Where we can schedule the job to run automatically at a specified time. This tool executes specified job schedules and triggers the events as described.

1.1.1 Functions of CA-7


a. Provides Online scheduling facility b. selects jobs for execution c. Submits Jobs d. Tracking Jobs e. Analyzes Job execution results CA-7 automatically reads in the Job and stores a copy in its staging area(Trailer Queue) at the appropriate time.CA-7 then attaches the predecessor requirements (i.e.Start time,data set dependencies,Job predecessors etc).When all are satisfied,CA-7 submits the Job to MVS and reports back with completion status.

2.0 Brief of CA-7


2.1.1 At tso, type ca;7

2.1.2 Then type 1 for Online

2.1.3 Demand Jobs


a. demand,job=JOBNAME,schid=** (**= 1/2/3/4/5/6/7 for Scheduling Day)
b. /pf11,m=(lq,sys=SYSTEM NAME) this command is to set pf11 key to list the job queue c. xqm,job=Z*(JOBNAME) can see jobs with prefix Z*, release this d. then monitor at l2;st(Spool), owner zeke45, prefix z* OR press pf11

2.1.4 Checking dependencies at CA-7


To know whether the dependency of a job is in order, type ljob,job=tfmup27d,list=nodd

Prev Job

Next Job

The dependecies will show as above. Eg: Current Job is TFMUP27D Previous Job is TFMUP17D (see TRIGGERED BY JOBS/DATASETS/NETWORKS) Next Job TFMUP27D is TFMTR72D and TFMU02D (see TRIGGERED JOBS)

2.1.5 Checking job dependencies when expected job does not triggered
Sometimes the job could not triggered. This can happen when : 1) the predecessor job already ended 2) the job was put On Hold 3) predecessor job Force Complete To trigger the job, check on the dependencies first. Some of the jobs will have numbers at column J afte the Jobname. That is the jobss dependencies. EG: FMSUP27F has 5 predecessor jobs before FMSUP27F runs and at the column SHJV, the H means HOLD. Type x at the column F at the cursor to check the predecessor jobs.

FMSUP27F has 5 predecessor jobs and the status is in HOLD. Press ENTER to exit this screen.

2.1.6 Catering Job Abends


When a job abend, the rectification will be done by the CA-7 batch runner. For System CICDAL02, view thru lq,sys=cicdal02 OR pf10 OR go to output queue and view the abend job, the CICDAL02 job starts with *f The abend job will be shown as *RST. Check the Job at output queue for details EG: STSRP40F job abends

10

When viewing via Queue Maintenance, the *RST means the job has abended. Type e at the F column to edit the job.

11

To edit the job, this requires the batch runner to know where to restart, what the abend is. When checking the output queue at l2;st, the job need to be restart at ST01X005. Edit the job as per above and save. This will update at CA-7. then press ESC.

12

To rerun the job from the abended step, example the job STSRP18F,(by typing xqm,job=STSRP18F) the RQMTS screen will be shown. Type f for RESTART

13

Then put REASON as x (or any numbers or letters) and put X at RESUBMIT FOR PRODUCTION then ENTER. The job will be restarting at Output Queue. Check.

14

2.1.7 Force Complete


This can be done under condition that the batch runner confirms that the job does not have impact on the batch To Force Complete, type xqm,job=STSRP09F to view eg: STSRP09F and do the following and press ENTER. Monitor back the queue

15

15

3.0 HOW TO SCHEDULE JOBS IN CA-7


3.1.1 Type D.B.2.4 in the Menu Line and press Enter

you will get the following screen

16

17

Give LIST in FUNCTION Prompt and the JOBNAME that will trigger your job and press ENTER

You will get the following screen with list of jobs that job will trigger.

18

Type UPD in FUNCTION prompt and at the bottom of the listed JOBS type A in the OPT column ,Schedule-ID of your Job in SCHID Column and JOBName TRGD-JOB column and press ENTER.it will be added in schedule.

19

UPD

3.1.2 Setting up Dependency


If you want to setup dependency to a JOB (i.e. The current job will run only after the dependency job completes successfully.Type DB.3.2 in the menu and press ENTER. 20

The following screen will appear.

21

Type LIST in FUNCTION prompt and type the JOBNAME in PRED FOR JOB and press ENTER.It will show the list of jobs which current job have dependency.

22

Here JOB FMSUP27V ,the dependent JOBS are SSTSK01V,SSFMS01V,.....ALSBAT2V. Only after the JOBS SSTSK01V,SSFMS01V,.....ALSBAT2V runs ,the JOB FMSUP27V will run.you can add dependency Jobs here as the same way as scheduling. (i.e A in OPT ,Job name in PRED-JOB and press ENTER)

4. CA 7 Commands
4.1.1 Command to Display structured flow of all triggered jobs going forward.

23

FSTRUC,JOB=JOBNAME

4.1.2 To Display the reverse structure of requested job.


FRJOB,JOB=JOBNAME

24

4.1.3 To display the last executable JOB


LPRRN,JOB=JOBNAME

The JOB STSUP06V completes on Nov 27th 2010. as per the above command.

CA 7 Commands
PF01 FJOB,FROM=(MMDDYY,HHMM),SPAN=24,JOB Displays forecast for the =# CA-7 jobs for the given period

PF02

FQJOB,JOB=#

Displays a structured flow of all triggers jobs going in REVERSE Displays a structured flow of all triggered jobs going FORWARD

PF03

FSTRUC,SCHID=?,JOB=# Schid=? And Job=# are optional parms

25

PF01

FJOB,FROM=(MMDDYY,HHMM),SPAN=24,JOB Displays forecast for the =# CA-7 jobs for the given period

PF04 PF05 PF06 PF08 PF07 PF09

FRQJOB,LIST=ALL,JOB=# LJOB,LIST=NODD,JOB=# LJOB,LIST=PROS,JOB=# LPRRN,JOB=# LRLOG,DATE=*,JOB=# DSN,LIST=USERS,DSN=#

Displays a reverse structure for the requested job Displays general information regarding the requested job Displays job description regarding the requested job Displays last execution of a job Displays the last 5 executions of a job Displays a cross reference on all jobs for the DSN requested Displays schedule by schid for job requested Displays schedule and calendar for job requested Displays a list of all abends. RSTR means restart Displays details of job if in act/req/rdy queue
Displays a list of all jobs waiting in the reader queue for GMS, order sequenced by Job number. Displays a list of all jobs waiting to run sequenced by deadline time. Also list requirements that the job is still waiting on. Displays a list of all jobs waiting to run sequenced by job. Also

PF10 PF11 Shift-F1 Shift-F2 Shift-F3

LSCHD,LIST=BYSID,JOB=# LSCHD,LIST=CALS,JOB=# LQ,ST=RSTR LQ,JOB=# LREQ,SEQ=JOB

Shift-F4

LREQ,SEQ=DLTM,LIST=STATUS

Shift-F5

LREQ,LIST=STATUS,SEQ=JOB

26

PF01

FJOB,FROM=(MMDDYY,HHMM),SPAN=24,JOB Displays forecast for the =# CA-7 jobs for the given period

list requirements that the job is still waiting on.

Shift-F6

LACT,SEQ=JOB

Displays all active jobs Lists all jobs in RDY queue in sequence of prty, along with status

Shift-F10 LRDYP,LIST=STATUS,SEQ=PRTY

Shift-F11 Shift-F12

LRDYR,LIST=STATUS,SEQ=PRTY Disconnects CA7

OTHER USEFUL COMMANDS LJOBR,JOB=T14*,EXEC=N To list all jobs that are marked NOEX for a system (example shows T14) To list all jobs that are set to execute for a system (example shows T14) To list useful information regarding a job: avg elapse time, tapes, job priority, last run date/time, etc. To list all jobs dependent on a job To list all requirements to a job To list jobs that trigger/are triggered by a job To display JCL and JCL lib of the job Displays a list all late jobs waiting in the reader queue

LJOBR,JOB=T14*,EXEC=Y

LJOBR,JOB=#

LJOB,JOB=#,LIST=DEPJ LJOB,JOB=#,LIST=RQMT LJOB,JOB=#,LIST=TRIG

LJCL,JOB=# LQ,ST=LATE,SYS=GMS

27

LJOBR,JOB=T14*,EXEC=N

To list all jobs that are marked NOEX for a system (example shows T14) To list CA7 CPU job definition for a job To list possible values of JCLID (index that indicates from where the JCL was pulled) To list all jobs for a specific JCLID

JOB,#

(example: JOB,T14170)

/DISPLAY,ST=JCL

LJOBR,JOB=T14*,JCLID=000 (list all T14 jobs that executed from DHC.PROD.JCL) LJOBR,SYS=GMS,JCLID

To list all jobs in a system for a specific JCLID To list late jobs for a system: To view OSPEC comments regarding a restart: To view the JCL in the restart queue. This is particularly useful when you want to see what the OSPEC has changed for the restart one time overrides to datasets or checkpoint ids. To view the step a job abended in and whether the job is restartable in other steps

LQ,ST=LATE,JOB=T14* LRLOG,LIST=RSTR,OPT=1,DATE=* or YYDDD LQ,JOB=Txxxxx,LIST=JCL

Type ARTS from within CA7 Type LSTP Txxxx where txxxx=jobname

28

Das könnte Ihnen auch gefallen