Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
CONTROL-M STANDARDS
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 1
Printed 30/03/2014
Document Control
Issue No
Issue Date
V3.0
January 1996
V3.1
September 1997
V3.2
August 1998
V4.0
September 1998
V5.0
June 2001
Nature of Amendment
Major revision
Manual IN condition to hold jobs;
General Revision
Annual review of document & Update.
Major Revision.
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 2
Printed 30/03/2014
Contents
1.0
1.0 INTRODUCTION.....................................................................................................................................4
1.2 CREATION OF CONTROL-M PRODUCTION BATCH USERID...............................................................4
1.3 FORMAT OF CONTROL-M PRODUCTION BATCH USERID .................................................................4
2.0 JOB SCHEDULING DEFINITIONS STANDARD.........................................................................................5
DAYS, WDAYS, DCAL, WCAL & CONFCAL......................................................................................8
MONTHS...................................................................................................................................................9
MAXWAIT................................................................................................................................................9
2.8 AUTO-ARCHIVE.................................................................................................................................13
2.10 SYSOUT REDIRECTION..................................................................................................................15
2.11 ABEND CODES CAPTURE.................................................................................................................16
2.12 CONTROL-R SUITABILITY & STANDARDS....................................................................................18
SUITABILITY...........................................................................................................................................18
STANDARDS..............................................................................................................................................19
2.13 SHOUT...........................................................................................................................................20
ABBREVIATED SHOUT PARAMETERS......................................................................................................22
3.0 GROUP SCHEDULING STANDARD.......................................................................................................23
3.2 STANDARDS AND CONSIDERATIONS..................................................................................................23
4.0 MIGRATION & CONTROL-M LIBRARIES STANDARD..........................................................................26
5.0 NEW DAY PROCESSING STANDARD...................................................................................................29
.................................................................................................................................................................30
5.2 TELSTRA STANDARD FOR NEW DAY PROCESSING.............................................................................30
6.0 CONTROL-M UTILITIES......................................................................................................................31
COPY OF JCL AVAILABLE ON VI2 IVPSUPP.CTMFLOW.CNTL(LASER)...................................32
6.2 MAYBE UTILITY..............................................................................................................................33
WHERE DESIRED OR NECESSARY, THE ABOVE UTILITY MAY BE SET-UP TO ADD CONDITIONS FOR THE
CURRENT OR SPECIFIC ODATE. IN WHICH CASE, THE FOLLOWING CODING WILL APPLY: ....................34
7.0 APPENDIX A......................................................................................................................................35
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 3
Printed 30/03/2014
1.0 Introduction
1.1 Scope
The purpose of this document is to outline the standards to be
followed by the Production Management Group when building
new jobs or jobflows within the Control-M Production
environment.
This document is to be used in conjunction with the OS/390
Applications Batch Scheduling Standards Document.
For more in depth details and examples how to use the many ControlM/R features, consult the Control-M/R User Manual as supplied by the
vendor.
Should there be a requirement to deviate from any of the standards
mentioned in this document, PRIOR approval must be obtained from
either the respective Team Leaders or the Manager of Production
Management Group.
Page 4
Printed 30/03/2014
MEMLIB
TPIOA.TIPPS.CNTL.D%%ODATE
OWNER
PSTIP01
TASKTYPE JOB
PREVENT-NCT2
APPL
TIPPS
GROUP TIPPS-TIPHR
DESC
BACKUP CUSTOMER ORDER FILE
OVERLIB
SET VAR %%SYMVARXX=VARPROD
CTB STEP AT
NAME
TYPE
DOCMEM QTIPUT20
DOCLIB
TPIOA.TIPPS.RUNBOOK
MEMNAME
Normally coded with the same name as the JOBNAME within
the JCL (job card).
MEMLIB
Refers to the dataset where the job JCL is stored.
Format: TPIOA.application name.CNTL.D%%ODATE
OWNER
Refers to the Control-M batch userid. Must be unique for every
Applications and ONLY be defined and set-up to submit jobs on
PRODUCTION Lpars.
TASKTYPE
The two most common values coded for this field are:
- JOB (for the standard batch job/jcl submitted).
- CYC (for a cyclic job submitted).
PREVENT-NCT2
This field should be left blank to pick up the default of NO for
preventing Not Catalog 2 abends. There may be specific
instances where this field may be set to Y (yes) but great care
must be taken to ensure that you want Control-M to
automatically delete datasets when performing a RESTART.
APPL
Refers to the name of the application (eg: TIPPS).
GROUP
Should be unique for each application.
Format: Application Name-Table name
For Example: TIPPS-TIPMUTIL
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 5
Printed 30/03/2014
DESC
Refers to a description on the jobs function. Coded in a free
form text format up to 50 characters in length. All job schedules
must have a description in this field.
For Example: BACKUP CUSTOMER ORDER FILE
OVERLIB
Refers to the JCL library name that overrides the MEMLIB field.
Useful for running one off version of production JCL. However,
must be removed prior to next scheduled production run to avoid
reference being made again to this one off version.
Format: TPIOA.application name.OVRD
For Example: TPIOA.TIPPS.OVRD
SET VAR
Is used to substitute user defined variables within the JCL at job
submission time.
Eg:
SET VAR %%PRD=2PRD1 - in this example all %
%PRD references within the JCL will be substituted to
2PRD1.
For those Applications using extensive variable substitutions
within their JCL, it is recommended to use a LIBSYM and a
MEMSYM to store all the variables values.
The LIBSYM/MEMSYM will be a PDS (dataset) that will house
all the variables values. In the example illustrated above, the
SET VAR statement within the Job Scheduling Definition is
pointing to a member called VARPROD.
Within all the JCL members belonging to the Application, the
following is defined as LIBSYM and MEMSYM:
//* %%LIBSYM TPIOA.TIPPS.CNTL
%%MEMSYM %%SYMVARXX
//*
//%%JOBPREF%%.SC06 JOB (%%ACCOUNT),'TIPPS',
//
CLASS=%%HIGH,
//
MSGCLASS=%%MSGCLASS,
//
MSGLEVEL=%%MSGLEVEL,
//
REGION=0M
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Columns 00001
Scroll ===> HALF
Page 6
Printed 30/03/2014
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 7
Printed 30/03/2014
DCAL *
WDAYS
MONTHS
AND/OR
2,3,4,5,6
WCAL *
1- Y 2- Y 3- Y 4- Y 5- Y 6- Y 7- Y 8- Y 9- Y 10- Y 11- Y 12- Y
DATES
PDS
RETRO N MAXWAIT 03
D-CAT
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 8
Printed 30/03/2014
MONTHS
This field refers to the months the job will be scheduled. A Y
entry means the job will be scheduled to run on the given month
and a N or blank means the job will not be scheduled
RETRO
The recommended standard is to code this field as N. If
selected (ie. Y) it will set the job to run if the original date has
passed. Normally applicable to control situations where the
computer has not been working for a day or more. This is highly
unlikely in our current environment!
MAXWAIT
This field refers to how long a job in Wait Status will be kept in
the AJF after being loaded either manually or at/by the new day
processing. The recommended standard is to code at least 3
(for 3 days). However, depending on the Customer or
Application requirements, this figure might vary. It is important to
note that the longer and the more jobs are kept in the AJF, the
potential increases for the AJF to become full and this may lead
to problems.
All other fields must be left blank.
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 9
Printed 30/03/2014
LPAR-NI2-AVAIL
QTIPBK01-TIPHR-OK
STAT
ODAT
APPLIC-TIPPS-AVAIL
QTIPSR06-TIPHR-OK
STAT
ODAT
MANDATORY In-Condition
This field refers to any Prerequisite Conditions that are to be
satisfied before the job can run.
As illustrated in the above example, the following are the two
MANDATORY in-conditions that are to be included on all jobs:
- LPAR-ddd-AVAIL
STAT
- APPLIC-name-AVAIL
STAT
where:
- 'ddd' is the LPAR where the job is EXECUTING.
- 'name' is the name of the Application the job belongs to.
The STAT parameter is used, as those conditions are NOT
date dependant and therefore not deleted as part of the daily
Control-M housekeeping.
The main purpose of having the above two conditions is to allow
the flexibility to quickly STOP any further batch jobs from being
submitted by simply deleting the two conditions (eg. in event of a
major problem). This may prevent any further and unnecessary
abends as soon as problems are identified. It can also be useful
for the Operators/Operations Analyst before scheduled IPL are
performed - eg. 30 minutes before the IPL the conditions can be
deleted to stop any further jobs from being submitted and thus
being cancelled in mid-flight.
JOB In-Condition
The following is the standard for coding job in-condition:
- JobName-Table Name-OK
ODAT
- JobName-Table Name-OKnn
ODAT
where:
- Table Name is the name of the Control-M Table the job
resides in must NOT be more than 6 character long.
- nn = is a two numeric digit to be used if the job is running
more than once within the same flow (ie. in the 1st run it will
be set as .OK01, the 2nd run .OK02 etc.).
Note:
The ODAT parameter will be automatically replaced by
the current Original Scheduling Date when the job is
loaded into Control-M for execution.
Other values that can be used instead of ODAT are as
follows :
- PREV: job's previous scheduled date.
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 10
Printed 30/03/2014
- Ddmm:
- NEXT:
- $$$$:
- ****:
- STAT:
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 11
Printed 30/03/2014
QTIPUT20-TIPHR-OK
ODAT +
JOB Out-Condition
The same standards as per the in-condition will be applicable JobName-Table Name-OK
ODAT +
Should a job run more than once within a given table, the
following is the standard to be adopted:
- on the 1st run it will produce the following out-condition:
JobName-Table Name-OK1
ODAT +
- on the 2nd run it will produce the following out-condition:
JobName-Table Name-OK2
ODAT +
and so on.
0003
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 12
Printed 30/03/2014
UNTIL >
The FROM field dictates the time (if required) the job will be submitted
for processing. In the above example the job will be submitted at 21:00
hrs. It is important to note that if by 12:00 (midday) on the next day the
job has not run, Control-M by default will NOT allow/submit the job to
run.
If it is ok for the application to run any left over jobs on the next
scheduled odate (ie. after midday), then the greater than sign >
as indicated in the above example must be coded in the UNTIL
field.
2.8 Auto-Archive
AUTO-ARCHIVE Y
SYSDB
SYSOUT OP
(C,D,F,N,R)
MAXDAYS
MAXRUNS
FROM
AUTO-ARCHIVE
This field controls SYSDATA archiving. It allows the user to
decide whether or not to archive SYSDATA. The standard is to
code Y (for yes).
SYSDB
This field archives SYSDATA of all jobs to a common data set.
The standard is to code Y (for yes).
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
.
CODES U0034
INTERVAL 015
TO
.
A/O
Page 13
Printed 30/03/2014
%%CYL=50
RERUN - MAXRERUN 1
RERUNMEM
INTERVAL
ON PGMST ANYSTEP PROCST
CODES EXERR
DO IFRERUN
FROM $EXERR
.
TO
DO
ON PGMST CREATE
PROCST
CODES SB37
DO SET
VAR= %%CYL=100
DO RERUN
NEXT TIME
A/O
CONFIRM N
A/O
The initial SET VAR statement sets the value of %%CYL=50. If the
jobs fails in step CREATE, it is automatically rerun once after a 1
minute interval and with a value of 100 for %%CYL. If any other
step fails, the job will have to be manually restarted by the
Operations Analyst and the value of %%CYL remains at 50.
With an Automatic job Restart, if only one shout message is required
for multiple abends, then *REC0 must be coded (see example
below). *REC0 will determine if a rerun is needed but no more reruns
are available. Only when this status code is posted do we issue the
SHOUT command. In other words, only the last rerun will raise an
alert if the job fails.
ON PGMST ANYSTEP PROCST
CODES *REC0
DO SHOUT
TO U-ESO
URGENCY V
= ALERT=Y,PROBLEM=Y,SEVERITY=4,SYSID=VI2
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
A/O
Page 14
Printed 30/03/2014
.
CODES *****
TO
.
A/O
FRM
FRM
FRM H
STEP RANGE
This field contains a number of DO SYSOUT statements which
must be defined to allow Control-M to pass the SYSOUT of the
job to the relevant Output Management System (eg. OMCS).
ON PGMST
The standard is to code ANYSTEP this identifies the actions
Control-M needs to take (as specified in the subsequent DO
statements) when the job steps completes.
CODES
The standard is to code ***** - this causes the actions defined
in the subsequent DO statements to be applied to the job
whether it completes processing normally or abnormally.
DO SYSOUT
This is the DO statement instructing Control-M what to do with
the SYSOUT of the completed job.
- OPT N: will change the destination of the
SYSOUT
- PRM VIL: will place the new system ID (VIL in the above
example) on the SYSOUT of the job so that it is
routed to the required Lpar.
- OPT R: will release the SYSOUT from being held
(when Control-M receives the SYSOUT it
always places it in the held status)
- OPT C: will change the output class of the job's
SYSOUT.
- PRM 4: will place the SYSOUT in a new output class (4 in
the above example).
- FRM H: instructs Control-M that the output class is being
changed (from H in the above example).
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 15
Printed 30/03/2014
2.11
PROCST
FROM $EXERR
CODES EXERR
TO
A/O
CONFIRM N
In the above it is indicating for Control-R to restart the job from the
step which failed. By so doing this will automatically insert the failed
Step Name in the restart window that is invoked by the
Operators/Operations Analyst - ie. when they are performing a manual
restart. See examples below.
Note:
If Control-R CANNOT be used when restarting the job, then DO
IFRERUN must be omitted and the runbook must clearly state
that this job is not Control-R restartable.
Example 1: WITHOUT CONTROL-R
FILTER:
----- CONTROL-M ACTIVE ENVIRONMENT ----------------------(3)
COMMAND ===>
SCROLL===> CRSR
O NAME
OWNER
ODATE JOBNAME JOBID TYP --------- STATUS ----------- UP
====== >>>>>>>>>>>>>>>>>>>> TOP OF ACTIVE JOBS LIST <<<<<<<<<<<<<<<<<<<< ======
R QREB2440 PSREB01 030998 +--------------------------------------+
QREB2450 PSREB01 140998 | JOB
QREB2440
WILL BE RERUN |
====== >>>>>>>>>>>>>>>>>>> | PLEASE CONFIRM
(Y/N) | <<< ======
| WITH
RESTART N
(?/Y/N) |
| ---------------------------------- |
| FROM
STEP
.
|
| TO
STEP
.
|
| RECAPTURE ABEND CODES
(Y/N) |
| RECAPTURE COND CODES
(Y/N) |
| STEP ADJUSTMENT
(Y/N) |
| RESTART PARM MEMBER NAME QREB2440 |
+--------------------------------------+
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 16
Printed 30/03/2014
140998
+--------------------------------------------+
| COMMAND ==>
|
| O Num Pgm-stp Proc-stp Pgm=
Comp
|
|
001 DELETE
STEP01
IEFBR14
C0000 |
|
002 STEP02
IEBGENER C0000 |
|
003 STEP03
IEBGENER C0000 |
|
004 IOATEST STEP04
IOATEST
C0080 |
|
005 IOATEST STEP05
IOATEST
C0000 |
|
006 STEP06
IEBGENER C0000 |
|
007 STEP07
IEBCOPY
C0008 |
|
008 STEP08
IKJEFT01 C0000 |
|
009 STEP99
ABEND999 FLUSH |
|
|
| Opt: F From T To O Only
|
+--------------------------------------------+
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 17
Printed 30/03/2014
Page 18
Printed 30/03/2014
Standards
It is important to note that when processing COND or
IF/THEN/ELSE statements that are not stepname specific, errors
in restarts might occur. See the following example:
//STEP1
EXEC
PGM=...
//IF1 IF (RC = 0) THEN
//STEP2
EXEC PGM=...
//STEP3
EXEC PGM=...
//STEP4
EXEC PGM=...
//IF2 IF (RC LE 8 OR RC = 80) THEN
//STEP5
EXEC PGM=...
//STEP6
EXEC PGM=...
//IF2E ENDIF
//IF1E ENDIF
This is OK
Error
When Control-R tries to restart from STEP6, the job skips all steps
and ends OK. Control-R appears to retrieve CC=0080 from
STEP4 and applies this value to the IF1 statement thereby
determining that steps 2 to 6 must not be run.
To get around this problem, the IF statement must be coded
with the specific stepname to which it applies:
Eg. //IF1 IF (STEP1.RC = 0) THEN
Bypassing failed steps using Control-R
Exercise caution if attempting to use Control-R for restarts where
the resolution is to skip the failed step and continue from a
subsequent step. If there is condition code checking in the
jobstream there may be situations where a job will have a status
of ENDED OK but none of the job steps have executed apart
from the Control-R step. See the following example:
//STEP1
EXEC
//
IF (RC.STEP1 =
//STEP2
EXEC
//STEP3
EXEC
//STEP4
EXEC
//
ENDIF
PGM=...
0) THEN
PGM=...
PGM=...
PGM=...
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 19
Printed 30/03/2014
2.13 SHOUT
SHOUT information is used to prompt the automation tool (Solve
Operations) to automatically issue alerts and generate Problem
Dockets.
SHOUT WHEN
NOTOK
TO
U-ESO
MS
ALERT=Y,PROBLEM=Y,SEVERITY=4,SYSID=NI2
URGN
The following are valid parameters for the SHOUT WHEN field:
SHOUT WHEN NOTOK
Shouts a message everytime the job ends with an error code.
SHOUT WHEN LATESUB
Shout a message if the job has not been submitted by the
specified time (see example below).
SHOUT WHEN LATE
Shout a message if the job has not finished after a specified
period of time ie. after initial submission (see example below).
SHOUT WHEN EXECTIME >n
Shout a message if the execution time is greater than a specified
time period.
TO U-ESO
This will instruct Control-M to shout the message to the
automation tool Solve Operations.
URGN V
This will instruct Control-M that the message is very urgent and
to send it immediately.
MS ALERT=Y, PROBLEM=Y,SEVERITY=4, SYSID=NI2
This will instruct Solve Operations to: 1) raise an alert, 2)
generate a problem docket, 3) make the severity of the problem
docket 4 and 4) the system ID NI2 this refers to the lpar where
the job is executing. Higher severity number can be allocated for
critical jobs.
ALERT=Y,SEVERITY=n,TEXT='message' - this can be used to
send messages to the operator.
Examples
SHOUT WHEN
LATE 0600
TO U-ESO
URGN
MS
ALERT=Y,PROBLEM=Y,SEVERITY=4,SYSID=NI2,LATE=EXEC
In the above example Solve Operations will generate an alert if the job
hasn't finished executing by 0600.
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 20
Printed 30/03/2014
SHOUT WHEN
LATESUB 2100
TO U-ESO
URGN
MS
ALERT=Y,PROBLEM=Y,SEVERITY=4,SYSID=NI2,LATE=SUB
In the above example Solve Operations will generate an alert if the job
hasn't been submitted by 2100.
SHOUT WHEN
EXECTIME > mmm
TO U-ESO
URGN
MS
ALERT=Y,PROBLEM=Y,SEVERITY=4,SYSID=NI2,LATE=EXECTIME
In the above example Solve Operations will generate an alert if the job
hasn't finished executing within mmm minutes.
SHOUT WHEN
EXECTIME < mmm
TO U-ESO
URGN
MS
ALERT=Y,PROBLEM=Y,SEVERITY=4,SYSID=NI2,LATE=EXECTIME
In the above example Solve Operations will generate an alert if the job
finishes executing within mmm minutes
The examples illustrated below shows shout parameters that depend on the
existence of job statistics for the job in question. If the job has not run before,
the shout command won't work and an error message will be sent to the log
file. See example log statements below for job 'TESTSHEX'. This shows
shout parameters being ignored due to missing job statistics.
180394 112544 170394 IV04557
180394 112548 170394 IV04557
180394 112554 170394 IV04557
180394 112809 170394 IV04557
180394 112814 170394 IV04557
SHOUT WHEN
EXECTIME + nnn
TO U-ESO
URGN
MS
ALERT=Y,PROBLEM=Y,SEVERITY=4,SYSID=NI2,LATE=EXECTIME
In the above example Solve Operations will generate an alert if the job
elapsed runtime is nnn minutes more than its average elapsed runtime.
SHOUT WHEN
EXECTIME - nnn
TO U-ESO
URGN
MS
ALERT=Y,PROBLEM=Y,SEVERITY=4,SYSID=NI2,LATE=EXECTIME
In the above example Solve Operations will generate an alert if the job
total elapsed runtime is nnn minutes less than its average elapsed
runtime.
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 21
Printed 30/03/2014
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 22
Printed 30/03/2014
3.0
3.1
3.2
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 23
Printed 30/03/2014
| GROUP FLEXCAB-BILLING
MEMMNAME FLEXCAB
|
| OWNER
IV04702
|
| APPL
FLEXCAB
|
| DESC
GROUP SCHEDULING FOR TIPPS
| Group
Entity
| ADJUST CONDITIONS Y
|
| SET VAR
|
| DOCMEM FLEXCAB
DOCLIB
TPIOA.FLEXCAB.RUNBOOK
|
| =========================================================================== |
| SCHEDULE TAG FLEXCAB_MONTHLY
|
| DAYS
L01
DCAL
|
|
AND/OR A |
| WDAYS
1
WCAL
| Run:Last
day of
| MONTHS 1- Y 2- Y 3- Y 4- Y 5- Y 6- Y 7- Y 8- Y 9- Y 10- Y 11- Y 12- Y
| month is
Sunday
| DATES
|
| CONFCAL
SHIFT
RETRO N MAXWAIT 00
|
| =========================================================================== |
| SCHEDULE TAG FLEXCAB_MON_FRI
|
| DAYS
DCAL
|
|
AND/OR
|
Run:Monday-Friday
| WDAYS
2,3,4,5,6
WCAL
|
| MONTHS 1- Y 2- Y 3- Y 4- Y 5- Y 6- Y 7- Y 8- Y 9- Y 10- Y 11- Y 12- Y
|
| DATES
|
| CONFCAL
SHIFT
RETRO N MAXWAIT 03
|
| =========================================================================== |
| SCHEDULE TAG FLEXCAB_WEEKLY
|
| DAYS
DCAL
|
|
AND/OR
|
Run:Friday
| WDAYS
6
WCAL
|
| MONTHS 1- Y 2- Y 3- Y 4- Y 5- Y 6- Y 7- Y 8- Y 9- Y 10- Y 11- Y 12- Y
|
| DATES
|
| CONFCAL
SHIFT
RETRO N MAXWAIT 00
|
| =========================================================================== |
The idea behind the Group Scheduling concept is for individual jobs within the actual
jobflow to refer to the one Group Entity and Schedule Tags as defined above. In the
example below job QFCBSTRT is referring to the Schedule Tag
FLEXCAB_MON_FRI.
| MEMNAME
QFCBSTRT
MEMLIB
DUMMY
|
| OWNER
IV04702
TASKTYPE JOB
PREVENT-NCT2
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 24
Printed 30/03/2014
| APPL
FLEXCAB
GROUP FLEXCAB-BILLING
|
| DESC
|
| OVERLIB
|
| SET VAR %%SYMVARXX=VARPROD
|
| SET VAR
|
| CTB STEP AT
NAME
TYPE
|
| DOCMEM
QFCBSTRT
DOCLIB
TPIOA.FLEXCAB.RUNBOOK
|
|
============================================================
=============== |
| SCHEDULE TAG FLEXCAB_MON_FRI
|
| SCHEDULE TAG
|
| RELATIONSHIP (AND/OR) O
|
| DAYS
DCAL
|
|
AND/OR
|
| WDAYS
WCAL
|
| MONTHS 1- Y 2- Y 3- Y 4- Y 5- Y 6- Y 7- Y 8- Y 9- Y 10Y 11- Y 12- Y
|
| DATES
|
| CONFCAL
SHIFT
RETRO N MAXWAIT 00 D CATEGORY
|
| MINIMUM
PDS
|
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 25
Printed 30/03/2014
4.0
4.1
4.2
Schedule Libraries
The following is the naming standard for Applications Schedule
Libraries:
- TPIOA.application name.SCHEDULE (library from which jobs are
ordered from and referred to by the User Daily)
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 26
Printed 30/03/2014
4.3
JCL Library
All JCL that are executed by the Application within its Control-M
Production environment are done so from the following library:
TPIOA.application name.CNTL.D%%ODATE
When jobs are ordered into Control-M for processing, the D%
%ODATE value will be substituted to the current scheduling date of
Control-M.
For Example: if the current ODATE of Control-M is 940124, then the
JCL dataset when loaded into Control-M will be:
TPIOA.application name.CNTL.D940124
The above set-up allows the Operations Group to edit the JCL if
required but only affect the Current batch run of the application and
not any future runs.
Creation of the D%%ODATE JCL dataset
The TPIOA.application name.CNTL.D%%ODATE dataset must be
created at midday everyday as part of the New Day processing. When
the Application flows/jobs are initially set-up under Control-M a
Job/JCL (see below) must also be created to enable all JCL to be
copied from the Master JCL Library (TPIOA.application name.CNTL)
to the Odate JCL Library as described above.
To ensure consistency across Applications, the following is the
recommended naming standard for this JCL copy job:
QaaaCNTL
(where aaa = abbreviation of the application name)
Page 27
Printed 30/03/2014
4.4
OVERRIDE Library
The Override library may be used to store and execute one off version
of current production JCL. The naming standard for this library is as
follows:
TPIOA.application name.OVRD
4.5
RUNBOOK Library
The naming standard for the Runbook Library is as follows:
TPIOA.application name.RUNBOOK
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 28
Printed 30/03/2014
Note:
It is recommended that due to the critical nature of the User Daily, it is
set-up to generate a Problem Docket with a Severity of 3 for any
failures/abends.
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 29
Printed 30/03/2014
5.2
1/11/95
11:59 12:00
23:59 00:00
1/11/ 95
ODATE days
2/11/95
23:59
11:59 12:00
2/11/95
The top box represent normal calendar days and the lower box
represent a Control-M ODATE day.
This means to have a job run at 20:00 1/11/95, it must be defined (within the
Control-M Calendar) as ODATE 20:00 1/11/95.
To have a job run at 08:00 2/11/95, it must be defined (within the Control-M
Calendar) as ODATE 08:00 1/11/95.
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 30
Printed 30/03/2014
//IV00000A
//
//
//*
//STEP01
//DAJOB
//DAFLWPRM
/*
//STEP1.DAREPORT DD SYSOUT=A,DEST=T140DD11,HOLD=YES
//STEP1.DACHART DD SYSOUT=A,DEST=T140DD11,HOLD=YES
//STEP1.DACHART1 DD SYSOUT=A,DEST=T140DD11,HOLD=YES
//STEP1.DACHART4 DD SYSOUT=A,DEST=T140DD11,HOLD=YES
//STEP1.DACHART9 DD DSN=&&PRINT0,DISP=(NEW,PASS,DELETE),
//
SPACE=(CYL,40),UNIT=SYSDA,
//
DCB=(RECFM=FB,LRECL=180,BLKSIZE=4500,DSORG=PS)
//STEP1.PRTDBG
DD SYSOUT=A,DEST=T140DD11,HOLD=YES
/*
/*
//STEP2
EXEC PGM=KERIN1,COND=(0,LT)
//STEPLIB DD
DSN=IVPSUPP.CTMFLOW.LOAD,DISP=SHR
//FT05F001 DD DSN=&&PRINT0,DISP=(OLD,DELETE,DELETE)
//FT06F001 DD DSN=IVPSUPP.CTMFLOW.PRNTFILE,
//
DISP=(NEW,CATLG,DELETE),
//
SPACE=(TRK,40),UNIT=SYSDA,
//
DCB=(RECFM=FB,LRECL=180,BLKSIZE=4500,DSORG=PS)
//SYSPRINT DD SYSOUT=X,OUTLIM=20000
//SYSOUT
DD SYSOUT=X,OUTLIM=20000
/*
/*
//STEP3
EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=X
//SYSTSIN
DD *
VPSPRINT 'IVPSUPP.CTMFLOW.PRNTFILE' T140DD11 NONUM NOHDR CCHAR
/*
/*
//STEP4
EXEC PGM=IEFBR14,COND=EVEN
//DELETE DD DSN=IVPSUPP.CTMFLOW.PRNTFILE,DISP=(OLD,DELETE,DELETE)
/*
/*
//STEP5
EXEC PGM=IKJEFT01,COND=EVEN
//SYSTSPRT DD SYSOUT=X
//SYSTSIN
DD *
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 31
Printed 30/03/2014
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 32
Printed 30/03/2014
6.2
MAYBE Utility
The MAYBE utility is useful for instances where particular job inconditions will not be satisfied for that processing day and therefore
needs to be added to allow the job/flow to run as per normal. This might
be applicable in instances whereby a daily job is dependant on a
monthly job that is only schedule to run on the last day of the month.
This utility will be set-up to run as two separate jobs. The first job
executing program IOALDNRS will scan the AJF and check all the
prerequisite conditions. If any of the following scenarios exists, the
condition will NOT be added when running this utility:
- condition is to be added by a DO COND statement,
- condition specified as an Out-Condition on any job currently in AJF,
- condition already exits in the conditions/resources file
If none of the above apply, the condition will be added to the Manual
Condition File.
The following is a sample JCL for the IOALDNRS utility:
//QCIMLOAD JOB QPCIM199,'CONTROLM UTILITY,
//
CLASS=H,MSGCLASS=4,REGION=0M
/*XEQ VI2
//*
//* THIS JOB SCANS EVERY JOB IN THE AJF. ALL PREREQUISITE
//* CONDITIONS ARE CHECKED. IF THE IN CONDITION IS ADDED
//* BY EITHER A 'DO COND' STATEMENT OR AN OUT PARAMETER,
//* OR ALREADY EXISTS IN THE CONDITIONS/RESOURCES FILE,
//* THE CONDITION IS IGNORED. IF NOT,THE CONDITION IS LOADED
//* INTO THE MANUAL CONDITIONS FILE. THIS JOB WILL ALSO
//* IGNORE CONDITIONS SPECIFIED WITH THE PREFIX GIVEN IN
//* THE IGNORE STATEMENT BELOW. IF ADDMODE IS SPECIFIED,
//* THE EXISTING MANUAL CONDITIONS LIST IS NOT DESTROYED.
//*
//STEP1
EXEC IOALDNRS
//DALNRIN DD *
IGNORE IN CONFIRM
IGNORE IN HYP
CONTROLM YES
ADDMODE
/*
Notes:
1. The IGNORE statement mentioned in the JCL will exclude any
conditions (ie. In-Conditions) beginning with CONFIRM and HYP.
A number of ignore statements can be specified depending on the
Applications requirements.
2. It is important to note that this utility will scan the conditions of
EVERY jobs/applications currently in the AJF.
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 33
Printed 30/03/2014
The second jobs will check the manual condition file and add any
conditions with the specified prefix (in the example below
QCIM..) to the conditions & resource file. By so doing this will
achieve the end result of satisfying those conditions that will not be
met for that processing day.
The following is the sample JCL to perform the above:
//QCIMPOST JOB QPCIM199,CONTROLM UTILITY,
//
CLASS=H,MSGCLASS=4
/*XEQ VI2
//
EXEC CTMRKSL
*--------------------------------------------------------------*
*
FUNCTION:
*
*
UTILITY TO ADD A MANUAL CONDITION IN SCREEN 7.
*
*
*
*
BEFORE OPERATING THIS KSL, SCREEN 7 PERHAPS SHOULD
*
*
BE RE-FRESHED VIA UTILITY CTMLDNRS.
*
*
*
*
THIS CAN BE USED TO HANDLE 'MAY-BE JOBS' WITH
*
*
'MAY-BE CONDITIONS'. FOR ADDITIONAL INFORMATION
*
*
PLEASE REFER TO THE MANUAL.
*
*
*
*
ARGUMENT:
*
*
A1 PREFIX
PREFIX OF CONDITION(S) TO BE ADDED
*
*
A2 DATE
(DDMM), OR 'NULL' FOR ANY DATE
*
*
*
*
*
*--------------------------------------------------------------*
TRACE OFF
MAXCOMMAND 999999
CALLMEM SCRSET
CALLMEM ADDCOND7 QCIM NULL
END
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
Page 34
Printed 30/03/2014
7.0 Appendix A
Sample 'REQUEST FOR CONTROL-M ACCESS' Form
.
or
OIM ASSIGNMENT NAME :
.
HOST/DOMAIN APPLICATION RESIDES ON :
CONTROL-M HOST :
.
.
________________________________
/
/
.
please
Contact No. ________________
On
** Only send this form AFTER the Controlm batch userid has been created. **
** Please email this form to David J Timms, System Management. ph (03) 9253-7151. **
This section is to be completed and actioned by System Management.
app = __ __
__ ?
** Please email this form to System Security. **
This section is to be completed and actioned by System Security.
please
userid.SUBMIT
please
please
please
Page 35
Printed 30/03/2014
please
please
Completed by:
________________________________
/
/
.
On
.SCHEDULE
TPIOA.
.CNTL
TPIOA.
.OVRD
TPIOA.
.RUNBOOK
please
please
DATASETS CREATED :
indicate (Y/N) : ___
please
please
G:\Prodsupp\standard\PASTMPS.DOC
For Internal IBM GSA Use Only
Enterprise Services
This form :
Page 36
Printed 30/03/2014