Control M Presentation
Control M Presentation
DataCenter Services
2
What is Control-M
and management.
different types of servers, manage the timing of them and report the results to a central
point.
3
WHAT IS CONTROL-M (CTL-M)?
• CTL-M manages and automates the setup, scheduling and execution of jobs in the
OS/390 (MVS) environment
4
COMPONENTS OF CONTROL-M
• CONTROL-M Monitor
5
JOB SCHEDULING
COMPONENT 1 -
DEFINITIONS
• Specifies criteria that identify decisions to be made and actions to
be taken regarding the handling of a particular job
• General Parameters
• Post-Processing Parameters
6
Job Scheduling Definitions: GENERAL PARAMETERS
7
Job Scheduling Definitions:
BASIC SCHEDULING PARAMETERS
8
Job Scheduling Definitions:
RUNTIME SCHEDULING PARAMETERS
Runtime requirements that must be satisfied before CONTROL-M
submits the job
9
Job Scheduling Definitions:
POST-PROCESSING PARAMETERS
Actions CONTROL-M performs after the job ends, depending upon the outcome of job
execution (for example, one set of actions if the job ends OK, another set of actions
if an abend occurs or job not running, running too long, etc).
10
JOB SCHEDULING DEFINITIONS (continued)
11
COMPONENT 2 - ACTIVE JOBS FILE (AJF)
• Only jobs in the AJF are candidates for submission by the CTL-M
monitor
12
COMPONENT 3 - CONTROL-M MONITOR
• Determines that the conditions and resources required by a job are available
• If conditions and resources are available, the monitor allocates the resources and
submits the job
13
A LOOK AT CONTROL-M
– 8 am daily
14
CTL-M PRIMARY OPTIONS MENU
15
SCREEN SHOTS FROM OPT. 2 & OPT. 3
16
OPTION 2 (SCHEDULE TABLES) – SCHEDULE DEFINITION
17
OPTION 2 (SCHEDULE TABLES) – PLAN COMMAND
PLAN
Type PLAN on the command line to display the days when the job will be loaded to the AJF.
Specify the date range you want to see.
18
OPTION 2 (SCHEDULE TABLES) – PLAN COMMAND
The * indicates the days when the job is loaded to the AJF.
19
OPTION 2 (SCHEDULE TABLES) – DOC COMMAND
DOC - DOCUMENTATION
Type DOC on command line to display the job documentation.
20
OPTION 2 (SCHEDULE TABLES) – SHOUT
MESSAGES
SHOUT MESSAGES
•Located in the Post-Processing section of the Schedule Definition.
•The message is displayed when the specified parameter is true.
•Parameters are coded next to SHOUT WHEN.
•The parameters are NOTOK, EXECTIME, LATE & LATESUB
– NOTOK = shouts when a job abends
– EXECTIME = shouts when a job executes longer or shorter than the specified time in minutes
– LATE = shouts when a job does not finish executing by a specified time
– LATESUB = shouts when a job has not submitted by a specified time
21
OPTION 3 (AJF) - SHOW COMMAND
SHOW
Type on the command line S, SH, or SHOW to filter what jobs you want to see on the AJF
22
Job Filtering using the SHOW Command
Type full job names or prefixes next to MEMNAME for what you want displayed on the AJF. There is a maximum of 5 fields.
23
OPTION 3 (AJF) - OPT COMMAND
OPT
Type OP or OPT on the command line to toggle between the Command and Options display.
The Options are actions for jobs on the AJF. Enter the option character next to the job. Job
must be in HELD status to Delete, Undelete, or Free it and to save a change in the Zoom screen.
24
OPTION 3 (AJF) - ? (WHY) OPTION
? - WHY
Type ? next to a job to display the reasons why the job is in the Wait Schedule Status.
25
OPTION 3 (AJF) - L (LOG) OPTION
L - LOG
Type L next to a job to display the Log Messages for the job.
26
OPTION 3 (AJF) - Z (ZOOM) OPTION
Z – ZOOM
Type Z next to a job to display the job details.
27
Displaying the DOC within the ZOOM Screen
DOC - DOCUMENTATION
Type DOC on command line to display the job documentation.
28
OPTION 3 (AJF) - S (STAT) OPTION
S - STAT
Type S next to a job to display the job run statistics.
29
SPECIAL SCHEDULING REQUESTS
1. Submit a DCS Request form to CCMVS (type dcsrequest in the intranet browser window) for the
above actions.
2. Submit a DCS Request form to EPC for temporary changes to schedule tables (e.g. placing a
confirmation hold on a CMEM triggered job); revert a Change Man package; Cycle out a
temporary package early; reject or cancel a Change Control Request already in the EPC MVS
Performing Team queue
30
ACCEPTABLE NON-ZERO RETURN CODES
RC04, RC03, RC02, RC01 are acceptable for step STEP0010 (PSPSPMCH)
Coded in JCL
//STEP0010 EXEC PGM=IEFBR14
Coded in CTL-M
ON PGMST STEP0010 PROCST CODES <C0005 A/O
DO OK
Coded in JCL
//JS015 EXEC SAS,
Coded in CTL-M
ON PGMST SAS PROCST JS015 CODES C2050 C3001 A/O
DO OK
31
ACCEPTABLE NON-ZERO RETURN CODES (cont’d)
Coded in JCL
Coded in CTL-M
32
ACCEPTABLE NON-ZERO RETURN CODES (cont’d)
Coded in JCL
//STEP001 EXEC PSPPT198
Coded in CTL-M
ON PGMST PS0150 PROCST PS1000 CODES C0001 A/O
DO OK
33
ACCEPTABLE NON-ZERO RETURN CODES (cont’d)
RC01 is acceptable for PROC PSPUTNFF in step PS0121 which is in PROC PSPPT335 which is executed by step
STEP001 (PSPPT335)
Coded in JCL
//STEP001 EXEC PSPPT335
...
//PSPPT335 PROC OWNER='PSP', called procedure
...
//PS0121 EXEC PSPUTNFF called procedure
...
Coded in CTL-M
34
ACCEPTABLE NON-ZERO RETURN CODES (cont’d)
RC <9 is acceptable for step PS2010D1 executing PROC PTSACHKF in PROC PSPPTFTM which is step PS0010 of
PROC PSPPT381 which is executed by step JS0010 (PSPPT381)
Coded in JCL
//JS0010 EXEC PSPPT381
Coded in CTL-M
35
ODAT USAGE
The following dateref sub-parameters are used for IN and OUT conditions:
• PREV – Resolved to the previous date on which the job should have been scheduled according to
its basic scheduling criteria
• NEXT – Resolves to the next date on which the job is scheduled according to its basic scheduling
criteria; currently not being used on any jobs
36
GLOBAL CONDITIONS USING ODAT vs. ****
• Many Unix boxes load at 12 midnight and MVS loads at 8 am, therefore forcing the
use of ODAT or **** (any ODAT) date reference.
• Scenarios:
1. UNIX loads at 12 midnight Tuesday and MVS loads at 8 am Tuesday. The MVS job runs at 1
pm on Tuesday. ODAT would be used to satisfy in condition.
2. MVS loads at 8 am Tuesday and UNIX loads at 12 midnight Wednesday. The MVS job runs
Wednesday at 3 am. **** (any ODAT) would be used to satisfy in condition.
Exception – If a special requirement is setup on UNIX to post PREV, then ODAT would be used to
satisfy in condition on MVS job.
37
SHOUT MESSAGES
• All production CTL-M jobs including OTS has the default ABENDED shout message
coded. For OTS jobs, the word OTS is inserted behind keyword ABENDED.
• The 2nd word in the message is the keyword. Only keywords ABENDED, LATE,
LATESUB & EXECTIME produce PEM Alerts and create Clarify Tickets while
keyword INFO does not produce them.
38
SHOUT MESSAGES (cont’d)
• The following keywords will produce a PEM Alert and Clarify Ticket
– EXECTIME = shouts when a job executes longer or shorter than the specified time in minutes
• %%JOBNAME EXECTIME JOB IS RUNNING TOO LONG. CONTACT XXX.
– LATE = shouts when a job does not finish executing by a specified time
• %%JOBNAME LATE JOB NOT FINISHED BY XX:XX. CONTACT XXXX.
• The following key will NOT produce a PEM Alert or Clarify Ticket
– INFO = used to shout for the parameters EXECTIME, LATE or LATESUB, but does not produce a PEM Alert
or Clarify Ticket
• %%JOBNAME INFO <ACTION MESSAGE FOR OPERATORS, SUCH AS CONTACT XXXX or
CHECK XXXX, ETC>
39
OTHER PRODUCTS
• JOB/SCAN
• Tool used to validate JCL and Procedures (PROCs) before being installed and executed
in production
• During the audit process of Change Man, JOB/SCAN is invoked to validate the JCL and
PRC components in a package
• OnDemand
• Tool used to store job output (JESMSG, JCL, etc.)
• Tool also stores reports created by jobs
• Reports are viewed online
• Reports are printed and distributed (as requested)
40
CLOSING
Contact Information
• E-Mailbox: Enterprise Production Control
• Monitoring and Automation Technologies
• Greg Kogut, Manager
• Dave Blanton
• Chip Nelson
• EPC Application Code and Scheduling Management
• Judy Coe, Manager
• Eddie Henry
• Tanya Joyner
• Valencia Hicks
Documents
• User Guides, Standards, and Processes and Procedures documents are available on
Knowledge Link
• Path: Enterprise > Information Technology > Technology Delivery > ETS
Technical Library > DataCenter Services (DCS) > DCS Enterprise Production
Control > MVS > Public Docs
41