Ca 7
Ca 7
Ca 7
-An Overview
Introduction
What is CA-7? CA-7 is a Production control system. Its an online, real-time, interactive system which automatically controls, schedules jobs based on the Date and time, job dependencies and available resources.
Introduction
Functions of CA-7 Provides Online Scheduling facility Selects job for execution Submits jobs Tracking jobs Analyzes job execution results
Its
Control - M
Procedures
Without CA-7 Create the JCL for your job and move it into production Fill out a job information form or member that contains the desired schedule, requirements and follow-through for this job. Give this information to Operations to add to the daily schedule.
Procedures
(continued)
Without CA-7 Operations manually verifies if the datasets were created and all prerequisites completed Job is then submitted at the proper time in the correct sequence At Job completion, output must be reviewed for good completion codes.
Procedures
With CA-7 CA-7 automatically reads in your 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, dataset dependencies,job predecessors etc. When all are satisfied, CA-7 submits your job to MVS and reports back with completion status
CA-7 Queues
CA-7 Queues
Why the queues needed? Monitor and control the production workload allow rapid access for changes
CA-7 Queues
(continued)
What is in the queues? Jobs and stations scheduled, submitted or active JCL and requirements for jobs Job history information Work space for editing and sorting
Queue Types
1. Status Queue 2. Work Queue
Queue Types
Status Queues Request Ready Active Prior-Run Preprocess Postprocess
Queue Types
Work Queues Trailer disk-Queue-Table Scratch
2.Request Queue
3. Ready Queue
4. Active Queue
5. Postprocess Queue
Logging on to CA-7
Job Definition
The following are the steps needed to add a job to CA-7: 1. Collect necessary data on job 2. Define job to CA-7 3. Load the job 4. Define job schedule 5. Define predecessors
FORMAT - clears the screen of all input data LIST - lists the information about a specified job UPD - to update/change the database information about the existing job
Calendars
Define processing and non-processing days Define relative days Define beginning and ending of month Define calendar year and unique name
Calendars
(continued)
Calendar names composed two alphanumeric characters. Command: PRINT,SCAL=xx,[YEAR=yy] Ex: Calendar 5H is a Monday to Friday or 5-day calendar observing GM holidays but not GM shutdown
Schedule - IDs
SCHIDs are used to document the scheduled processing days for CA7 jobs. Job runs daily (Mon - Sat) 30 Job runs Monday only 31 Job runs Tuesday only 32 Job runs Wednesday only 33 Job runs Thursday only 34 Job runs Friday only 35 Job runs Saturday only 36 Job runs Sunday only 37
Add -Addition of a schedule for a given job Delete - Deletes given schedule Exit - Returns DB2.1 without saving data Format - Clears the screen of user input data List - Displays all the existing SCHIDs with one per screen Repl - Replace an existing SCHID Save - Stores a new SCHID and data SR - Save and Replace; SS - Save data
Job - The job name which the schedule is being created, updated or deleted SCHID - The numeric schedule identifier SCAL - Calendar to be entered for the schedule to be built ROLL - Specifies the action to be taken when a schedule day falls on non-pross.day
B -- roll back to previous processing day
D -- do not roll and do not schedule F -- roll forward to next processing day N -- do not roll and run in scheduled day
INDEX - Specifies an adjustment to schedule days and is used with the ROLL DOTM - Due out time for specified SCHID
(Required for ADD and REPL only)
Exercises
1. Jobs INDIA001 & INDIA002 are part of the System INDTEST. These JCLs are stored in PINDT.ESTCH.JCLPDS and the CA-7 JCL-ID=20. CA-11 will be used for Restart and Recovery purposes for the above two jobs. Any condition code greater then 8 should cause CA-7 to consider the job in Abend status.
Exercises
2. Job INDIA001 needs to be scheduled to run every Monday, Wednesday and Thursday. It runs for about 1Hr and is due out at 0800Hrs, but cannot start before 0700 Hrs. The job should run regardless of holidays.
3. Job INDIA002 needs to scheduled to run 1st and 15th day of every month. It runs for 2 Hrs and is due out at 0500 Hrs. If this job falls on a Non-scheduled day it must roll back by one day[Use SCHID 50]
4. Job INDIA003 runs every Friday at 2300 Hrs unless Friday is the last day of the month.
Exercises
5. Job INDIA001 is a part of System INDTEST and the JCL is stored in PINDT.ESTCH.JCLPDS and its a overridden library. Only for the Jobstep JS050, the condition code greater then 8 should cause CA-7 to consider job in Abend status.
Predecessor
Job Predecessor Dataset Predecessor
Job Triggering
Job triggering panel permits multiple trigger entries. Multiple SCHID triggers can be entered on one screen
FORMAT - Clears the screen of input data LIST - Displays all existing SCHIDs with one per screen UPD - Updates the job triggers
JOB - The job that will do the triggering OPT - Values for the Options column
(A-Add; D-Delete; U-Update etc..)
SCHID - Schedule ID for the job that will do triggering TRGD-JOB - The name of the job that will be triggered. TRIGID - A unique value for the job that will be triggered.
DOTM - Time that the job should be completed; includes elapsed time and CA-7 queue time. QTM - Queue time LDTM - Lead time SBTM - Submit time EXCEPTIONS - Free-form comments
SCHID - Identifies the Schedule Id (0-255) LIST - Specifies the optional contents of the structure
(LAST - only first and last jobs in the structure. ALL - whole job structure)
DSN - Dataset name whose creation will initiate the execution of a job. This dataset must be created by a CA-7 job. DSNBR - CA-7 assigned dataset number.
Job Predecessor
Creating a job predecessor is done through the Database maintenance menu. DB.3
Predecessor
Dataset Predecessor - Use to establish a dataset requirement for a job.
Job Predecessor
Functions
FORMAT - Use to clear the screen LIST - Use to display information about existing job predecessors UPD - Use to modify or change existing job predecessors
Job Predecessor
Fields
PRED FOR JOB - The job for which the job requirement are being defined of listed LIST-SCHID - Applies only to the LIST function (SCHID=0 for All schedules) LEADTM - Lead time in hours PRED-JOB - Names the job on which the job specified in the Job field is dependent NEXT-RUN - Indicates status of this predecessor for the next run of this job
Job Predecessor
Options
A= Add - Use to create a new relationship D= Delete - Use to delete a relationship U=Update - Use to modify an existing relationship * =Processed - Indicates successful relationship established ? = Error - Indicates an error was found while processing the predecessor request
List of Commands
Questionnaires
Thank you...