Beruflich Dokumente
Kultur Dokumente
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.
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.
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
15
15
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
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
24
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
25
PF01
FJOB,FROM=(MMDDYY,HHMM),SPAN=24,JOB Displays forecast for the =# CA-7 jobs for the given period
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
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
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
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=#
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
Type ARTS from within CA7 Type LSTP Txxxx where txxxx=jobname
28