ca-7
TRANSCRIPT
1
CA-7
This document is a brief on how to operate CA-7
2
Table of ContentsTable of Contents..........................................................................................................................................2
1. Introduction :............................................................................................................................................3
2.0 Brief of CA-7..........................................................................................................................................3
3.0 HOW TO SCHEDULE JOBS IN CA-7...............................................................................................15
4. CA 7 Commands.....................................................................................................................................22
3
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 de-scribed.
1.1.1 Functions of CA-7a. 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
4
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
5
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
6
Next Job
Prev Job
7
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 jobs’s dependencies. EG: FMSUP27F has 5 prede-cessor 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.
8
FMSUP27F has 5 predecessor jobs and the status is in HOLD. Press ENTER to exit this screen.
9
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 PRODUC-TION 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
14
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
Give LIST in FUNCTION Prompt and the JOBNAME that will trigger your job and press ENTER
17
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
3.1.2 Setting up DependencyIf 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.
UPD
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 de-pendency 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 for-ward.
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 CommandsPF01 FJOB,FROM=(MMDDYY,HHMM),SPAN=24,JO
B=#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
PF03 FSTRUC,SCHID=?,JOB=# Schid=? And Job=# are optional parms
Displays a structured flow of all triggered jobs going FORWARD
PF04 FRQJOB,LIST=ALL,JOB=# Displays a reverse struc-ture for the requested job
25
PF01 FJOB,FROM=(MMDDYY,HHMM),SPAN=24,JOB=#
Displays forecast for the CA-7 jobs for the given period
PF05 LJOB,LIST=NODD,JOB=# Displays general informa-tion regarding the reques-ted job
PF06 LJOB,LIST=PROS,JOB=# Displays job description regarding the requested job
PF08 LPRRN,JOB=# Displays last execution of a job
PF07 LRLOG,DATE=*,JOB=# Displays the last 5 execu-tions of a job
PF09 DSN,LIST=USERS,DSN=# Displays a cross reference on all jobs for the DSN re-quested
PF10 LSCHD,LIST=BYSID,JOB=# Displays schedule by schid for job requested
PF11 LSCHD,LIST=CALS,JOB=# Displays schedule and cal-endar for job requested
Shift-F1 LQ,ST=RSTR Displays a list of all abends. RSTR means re-start
Shift-F2 LQ,JOB=# Displays details of job if in act/req/rdy queue
Shift-F3 LREQ,SEQ=JOB Displays a list of all jobs wait-ing in the reader queue for GMS, order sequenced by Job number.
Shift-F4 LREQ,SEQ=DLTM,LIST=STATUS Displays a list of all jobs wait-ing to run sequenced by deadline time. Also list re-quirements that the job is still waiting on.
Shift-F5 LREQ,LIST=STATUS,SEQ=JOB Displays a list of all jobs wait-ing to run sequenced by job. Also list requirements that the job is still waiting on.
Shift-F6 LACT,SEQ=JOB Displays all active jobs
Shift-F10 LRDYP,LIST=STATUS,SEQ=PRTY Lists all jobs in RDY queue
26
PF01 FJOB,FROM=(MMDDYY,HHMM),SPAN=24,JOB=#
Displays forecast for the CA-7 jobs for the given period
in sequence of prty, along with status
Shift-F11 LRDYR,LIST=STATUS,SEQ=PRTY
Shift-F12 Disconnects CA7
OTHER USEFUL COMMANDS
LJOBR,JOB=T14*,EXEC=N To list all jobs that are marked NOEX for a system (example shows T14)
LJOBR,JOB=T14*,EXEC=Y To list all jobs that are set to execute for a system (example shows T14)
LJOBR,JOB=# To list useful information regarding a job: avg elapse time, tapes, job priority, last run date/time, etc.
LJOB,JOB=#,LIST=DEPJ To list all jobs dependent on a job
LJOB,JOB=#,LIST=RQMT To list all requirements to a job
LJOB,JOB=#,LIST=TRIG To list jobs that trigger/are triggered by a job
LJCL,JOB=# To display JCL and JCL lib of the job
LQ,ST=LATE,SYS=GMS Displays a list all late jobs waiting in the reader queue
JOB,# (example: JOB,T14170) To list CA7 CPU job definition for a job
/DISPLAY,ST=JCL To list possible values of JCLID (index that indicates from where the JCL was pulled)
LJOBR,JOB=T14*,JCLID=000 (list all T14 jobs that executed from DHC.PROD.JCL)
To list all jobs for a specific JCLID
27
LJOBR,JOB=T14*,EXEC=N To list all jobs that are marked NOEX for a system (example shows T14)
LJOBR,SYS=GMS,JCLID To list all jobs in a system for a specific JCLID
LQ,ST=LATE,JOB=T14* To list late jobs for a system:
LRLOG,LIST=RSTR,OPT=1,DATE=* or YY-DDD
To view OSPEC comments regarding a restart:
LQ,JOB=Txxxxx,LIST=JCL 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 data-sets or checkpoint ids.
Type ‘ARTS’ from within CA7
Type ‘LSTP Txxxx’ where txxxx=job-name
To view the step a job abended in and whether the job is restartable in other steps