59041706 computer associates 7 material
TRANSCRIPT
-
8/6/2019 59041706 Computer Associates 7 Material
1/19
Computer Associates Material 2011
1 Need for Scheduler
CA-7 is an online, real time, interactive system, which
automatically controls, schedules and initiates work according
to time driven and/or event driven basis. It is used to reduce
manual work load.
What is a JOB?
A task or unit of work directed to CPU in batch environment.
A set of JCL control statements with one JOB statement and oneor more steps that are executed on a computer.
Batch Processing
Execution of a set of interrelated JOBs based on either dates or
times or events or dependencies.
Batch processing removes the need for manual intervention.
Features of CA-7
CA-7 scheduler provides intelligent workload managementfor OS/390 environment.
Ensures throughput is maximized.
Ensures OS/390 resources are efficiently used.
CA-7 Pre-requisites
JOBS need to be defined to CA-7.
Scheduling criteria needs to be defined for each job.
-
8/6/2019 59041706 Computer Associates 7 Material
2/19
-
8/6/2019 59041706 Computer Associates 7 Material
3/19
Computer Associates Material 2011
CA-7 Common Terminology
Scheduling
Each job can have unique scheduling criteria that can be basedon either Dates and time or triggering.
Requirements
Predecessors that must be defined before a job can run.
They are called Predecessors as they must precede the job
They can be completion of another job, manual task andcreation of dataset.
They can be defined in addition to its scheduling criteria.
Schedule ID
They are the numbers from 1 to 255, which are used toidentify scheduling variations.
It allows scheduling of the same job in different ways.
1.5.3.1 Type of jobs:
1. Demand
2. Auto3. Sscn (scheduled scan jobs)
4. Run
-
8/6/2019 59041706 Computer Associates 7 Material
4/19
Computer Associates Material 2011
Example for SCHEDULE ID
Schedule Scan
The schedule scan program scans the CA-7 database, selectsthe jobs that are scheduled for processing in the next fewhours, and bring them into the request queue.
QUEUE
The disk datasets that hold the records of CPU jobs duringdifferent phases of processing.
There are eight such disk datasets :
Request Queue Trailer Queue Ready queue Active Queue Hold Queue Prior-run Queue
Preprocessing queue Post processing queues
-
8/6/2019 59041706 Computer Associates 7 Material
5/19
Computer Associates Material 2011
CA-7 Execution of Jobs
The following steps explain the execution order of the jobssubmitted to CA-7:
1. The Job starts in REQUEST queue.
2. As the job is put in the request queue, at the same time, theJCL copy is written to the TRAILER Queue.
3. The job record is moved to READY Queue, only when all the
requirements are satisfied.
4. JCL is submitted to JES when the resources are available.
5. When the Job goes active on the system, the JOB record ismoved to the ACTIVE queue.
6. At JOB termination, CA-7 returns the job record to REQUESTQueue.
7. If the termination is unsuccessful, then the record is held foroperator intervention in the HOLD queue.
8. Here the JCL remains in the TRAILER Queue so that it can berestarted.
9. If job is successful, the record is moved to PRIOR-RUN queueand JCL is deleted from TRAILER Queue
10. Remaining two Queues hold the data for non-computertasks.
-
8/6/2019 59041706 Computer Associates 7 Material
6/19
Computer Associates Material 2011
Entire job flow:
-
8/6/2019 59041706 Computer Associates 7 Material
7/19
Computer Associates Material 2011
Late job analysis:
-
8/6/2019 59041706 Computer Associates 7 Material
8/19
Computer Associates Material 2011
Online Mode:
Step 1 : Enter CA7 at the command prompt.
Menu Utilities Compilers Options Status Help------------------------------------------------------------------------------
ISPF Primary Option Menu for S4HSOption ===> =ca7
--- ISPF/PDF --- --- Local Options (Scrollable) --- ---- Status Area ----More: +
0 Settings $ $AVRS SYSOUT Accum and View User ID . : G2BR82T1 View A ACF2 Options Time. . . : 06:222 Edit APC Automated Production Control Terminal. : 32783 Utilities CA1 CA1 Screen. . : 24 Foreground CA11 CA11 Language. : ENGLISH5 Batch CA7 CA7 TSO Interface Appl ID . : ISR6 Command C7 CA7 ISPF Interface TSO logon : $SPFUSRA7 Dialog Test D Docu/Text TSO prefix: G2BR82T8 LM Facility DB2 DB2 Options Panel System ID : S4HS9 IBM Products DISP DISPATCH MVS acct. : RCFS-TSO10 SCLM E EDS (Restricted) Release . : ISPF 5.211 Workplace ETF EKC Test Facility for ACF2
Enter X to Terminate using log/list defaults
-
8/6/2019 59041706 Computer Associates 7 Material
9/19
Computer Associates Material 2011
Step 2 : Enter option 1 for database enquiry
Step 3 : Enter Job Name for which you wish to obtain Scheduler
information
. . . . . . . . . . . . . . . . . . . . . . . . . .---------------------------- CA7 TSO INTERFACE -------------------------------ENTER OPTION ===> 1
WELCOME TO THE NEW CA7 DATA BASE INQUIRY SYSTEM
1 DATABASE INQUIRY
2 CA7 FORCAST
PRESS PF3 TO EXIT
. . . . . . . . . . . . . . . . . . . . . . . . . . .
COMMAND ===>
JOBNAME = JOB2 Must be 1-8 alphanumeric characters. GenericJob searches and application searches are notsupported.
Press ENTER when all input has beenkeyed or press PF3 to return to previousscreen.
-
8/6/2019 59041706 Computer Associates 7 Material
10/19
Computer Associates Material 2011
Step 4: Note the Job information is retrieved as shown below.We can enter appropriateoption number at the prompt to get the relevant data.
ENTER OPTION ===>
JOB2
DEFAULT INFORMATION:
CA7 SYSTEM NAME IS TESTSYSEXECUTION SET FOR SYSTEM 4JOB2 EXECUTION SWITCH IS SET TO YESLAST MAINTENANCE ON 03.365 AT 10:39:37 VIA DBM BY OCONSIDER ABNORMAL END IF 0000 IS NE HIGHEST STEP COND-CODE
OPTIONAL INFORMATION:
1 VIEW WHAT TRIGGERS JOB2
2 VIEW WHAT JOB2 TRIGGERS3 VIEW JOB REQUIREMENTS4 VIEW DSN REQUIREMENTS5 VIEW SCHEDULE(S)6 VIEW CALENDARS7 VIEW JOB DEPENDENCY-SUCCESSOR8 PRINT
-
8/6/2019 59041706 Computer Associates 7 Material
11/19
Computer Associates Material 2011
Step 5 : Option 1 will provide trigger Information
Step 6 : Option 2 will provide triggered Job Information
Step 7 : Option 3 is for Job requirements
COMMAND: SCROLL: CSR
THE FOLLOWING JOBS TRIGGER JOB2
LEAD SUBMITJOBNAME SCHID QTM TIME TIME
*************************** Top of Data *********************************----------------- TRIGGERED BY JOBS/DATASETS/NETWORKS ------------------
JOB=JOB1 SCHID=001 QTM=0010 LEADTM=0010 SUBMTM=0000
*************************** Bottom of Data *******************************
COMMAND: SCROLL: CSR
THE FOLLOWING JOBS ARE TRIGGERED BY JOB2
LEAD SUBMITJOBNAME SCHID QTM TIME TIME
*************************** Top of Data******************************--------------------------- TRIGGERED JOBS ---------------------------
JOB=JOB3 SCHID=001 QTM=0010 LEADTM=0010 SUBMTM=0000
****************************Bottom of Data***************************
COMMAND : SCROLL : CSR
JOB REQUIREMENTS FOR JOB2**************************** Top of Data ****************************
JOB=JOBA SCHID=001 VRSN=94279/1300 LEADTM=10**************************** Bottom of Data **************************
-
8/6/2019 59041706 Computer Associates 7 Material
12/19
-
8/6/2019 59041706 Computer Associates 7 Material
13/19
Computer Associates Material 2011
Step 10 : Option 6 is for determining the BASE CALENDAR.
COMMAND: 6SCROLL : CSR
************************************* Top of data************************
**********************************************************
**** CA-7 SCHEDULE CALENDAR FOR
JOB=JOB2** DATE 01333** BASE CALENDAR SCAL01CD (DEFAULT)
SCH*************************************************
***********************************************************
************
**** MONTH 01 JAN**** SUN MON TUE WED
THU FRI SAT**** 02 03
04 05** 07 09 10
11 12** 14 16 17
18 19** 21 23 24
25 26** 28 30 31
***********************************************
************
***********************************************************
-
8/6/2019 59041706 Computer Associates 7 Material
14/19
Computer Associates Material 2011
CA-7 DATABASE ENQUIRY:
A FORCAST IS A DISPLAY OF WHAT JOB(S) OR SYSTEM(S)WILL RUN DURING A SPECIFIED TIME PERIOD. IF YOU USE JOBSEQUENCE, THE JOBS ARE LISTED IN JOBNAME ORDER. IF YOUUSE EXECUTION SEQUENCE, THE JOBS ARE LISTED IN THEORDER OF EXECUTION.
THERE ARE TWO TYPES OF FORCASTS AVAILABLE WITH THISFACILITY:
FORCAST - SUMMARY REPORT. MANY JOBSPER PAGE
LISTING START DATE/TIME, ENDDATE/TIME,
TRIGGERING.
FORCAST WITH DETAILS FULL DETAIL REPORT. ONE PAGE PER
JOBLISTING START DATE/TIME, END
DATE/TIME,TRIGGERING, JOBDEPS,
REQUIREMENTS, ETC. )
COMMAND ===> ENTER THE NUMBER WHICHCORRESPONDS TO THE TOPIC YOU WISH TO DISPLAY OR (UP)
TO PRIOR PANEL
Note: Press F1 for help fromany screen for further details
-
8/6/2019 59041706 Computer Associates 7 Material
15/19
Computer Associates Material 2011
Important CA-7 Commands:
LACT - lists active jobs
LRDY - lists ready queue jobs
XQM lists the complete requirement of a job
XQJ lists of jobs in alphabetical order of job name
XQN lists the jobs based on ca-7 number
XQ lists the jobs based on first come first serve basis
CANCEL, JOB=JOBNAME, SCHID=050, FORCE=YES, REASON= -
cancels a job and clears the details from CMT also
CANCEL, JOB=JOBNAME, SCHID=050, REASON= - to cancel a
job
HOLD, JOB=JOBNAME, REASON= to hold a job
POST, JOB=JOBNAME to post a job after meeting the
requirement
SUBMT, JOB=JOBNAME to submit a job at specified time
LIST, JOB=JOBNAME list of failed jobs in list queue
LISTDIR, DSN=---------, MEM= - to see how many members in a
pds
LSCHD, JOB=JOBNAME, LIST=SCHD lists all the schids defined
for a particular job
LSCHD, JOB=JOBNAME, LIST=CALS lists the standard calendar
for a particular job
LSCHD, JOB=JOBNAME, LIST=TRIG list of triggered jobs
LSCHD, JOB=JOBNAME, LIST=NODD lists the jobs without dd
names and step names
-
8/6/2019 59041706 Computer Associates 7 Material
16/19
Computer Associates Material 2011
LSCHD, JOB=DID* - list of each job in database with schedule
infoLSCHD, JOB=DID*, ST=EXP - list of each job in database with
schedule summary along with expired jobs also
LPRRN, JOB=JOBNAME lists of jobs which is last successful run
REQUEUE, JOB=JOBNAME when job is failed with syntactical
errors, that job must be requeue
REQUEUE, JOB=JOBNAME, Q=LACT if the job is in active
queue
LCTLG, DSN=TRGD.JOBNAME list of all the triggered jobs
L DSN=FSS254.SAI.PS, LIST=ALL lists the users who is using
the dataset
LQ lists all jobs in ca-7 queue are and tell which queue each
job is in
LQ, JOB=JOB NAME gives status of a job
LQ, JOB=JOB NAME, LIST=RQMT will give the requirements
the job is waiting on
LQ, ST=LATE lists the jobs which is late in all queues
LQ, ST=HELD list of held jobs
LQ, ST=SUBM list of submitted jobs
LQ, ST=ABND list of abended jobs
LJOB, JOB=JOBNAME complete information about job
LJOB, JOB=JOB NAME, LIST=TRIG lists the triggered jobs
LJOB, JOB=JOB NAME, LIST=PROS lists the demanded out jobs
LJOB, JOB=JOB NAME, LIST=RQMT requirement of a particular
job
-
8/6/2019 59041706 Computer Associates 7 Material
17/19
Computer Associates Material 2011
LJOB, JOB=JOBNAME, LIST=SCHD it will give how many schids
are assigned to a particular jobLPROS, JOB=JOBNAME used to get job docs
LPRRN, JOB=JOB NAME lists the last successful run of the job
- Lists start and end times of jobs
- Date and highest condition code
/STOP, Q=ALL to stop the ca-7 database
/HOLD, Q=ALL to put the request and ready queue are in hold
/RELEASE, Q=ALL to release the queue from hold
/START, Q=ALL to start the ca-7 database
/DISPLAY, ST=JCL list of all jcl ids and their associated
libraries
/DISPLAY, ST=JCL list of all jcl ids and associated libraries
/PROF lists and updates ca-7 user profiles
LJES lists of jobs that have been sent to JES
FRJOB, JOB=JOBNAME list of information about predecessors
FRQJOB, JOB=JOBNAME list of information about successors
FSTRUC, JOB=JOBNAME which schid is going to run today
DEMAND, JOB=JOBNAME, SCHID=050, SET=NTR
DEMAND, JOB=JOBNAME, SCHID=050, SET=SKIP
ADDRQ, JOB=JOBNAME, USR= reason to add a request to a
job in the request queue
LRLOG details of previous run since from midnight
LRLOG, JOB=JOBNAME how many times a job getting failed
LRLOG, ST=CANCEL, SPAN=24 list of canceled jobs in last
24hrs
-
8/6/2019 59041706 Computer Associates 7 Material
18/19
Computer Associates Material 2011
LRLOG, ST=FORCE, SPAN=24 list of force completed jobs in
last 24 hrsLRLOG, ST=RSTRT, SPAN=24 list of restarted jobs in last
24hours
LRLOG, JOB=JOBNAME, DATE=* - list of jobs in the last 5 days
/D U TAPE, STATUS=ALLOC gives how many tapes are
engaged
/V U, MODE=OFFLINE how many tapes are in offline
/V U, MODE=ONLINE how many tapes are available
/DISPLAY, Q=ALL to display all q
/DISPLAY, ST=JCL used to see all the jcl libraries
/LQ, LIST=USR how many jobs are waiting for user
requirement
LQP, JOB=JOBNAME lists job information in request and ready
Q
LJCL, JOB=JOBNAME lists jcl deck in XQM panel
/DISPLAY, ST=CAL display all calendars
/DISPLAY, FM=SCAL to display all calendars
DA OJOB used to see only active application job
-
8/6/2019 59041706 Computer Associates 7 Material
19/19
Computer Associates Material 2011