Example 2 Batch workload
- Jobs that finish in two minutes or less (initiator class A)
- Jobs that finish in one hour or less (class B)
- Jobs that finish in two hours or less and do not require a tape mount (class K)
- Jobs that finish in more than two hours, or jobs that do require a tape mount (class Q)
Begin by examining each step that is involved in creating the first workload that contains jobs in initiator class A:
To create a workload to monitor all nightly batch updates
- Display the WKLIST view.
On the command line, type ADD to display the Add Workload panel, as shown in following figure:
BMC Software -------------- ADD WORKLOAD ---------------------------------
COMMAND ===> _
Enter Workload Name, Type and Description.
Name ===>
Type ===> (ASCH, BAT, OMVS, STC, TSO, COMP)
Description ===>
Press END when all entries are complete.
Enter CANCEL to CANCEL request.- Enter the following data:
- In the Name field, type ACCTCLSA —to designate this workload as Accounting jobs running in class A.
- In the Type field, type BAT —to identify the workload as a batch workload.
In the Description field, type a description of the workload.Your screen looks like Add Workload panel for ACCTCLSA.
BMC Software -------------- ADD WORKLOAD ---------------------------------
COMMAND ===> _
Enter Workload Name, Type and Description.
Name ===> ACCTCLSA
Type ===> BAT (ASCH, BAT, OMVS, STC, TSO, COMP)
Description ===> Acct jobs in class A 7pm-6am
Press END when all entries are complete.
Enter CANCEL to CANCEL request.
Press PF3 (END) to display the Characterize Batch Workload panel, which looks like Characterize Batch Workload panel for ACCTCLSA.
BMC Software ----------- CHARACTERIZE BATCH WORKLOAD ----------------------
COMMAND ===> _
Enter O to specify workload service objectives
Workload - ACCTCLSA
Description - Acct jobs in class A 7pm-6am
Initial status ===> ACTIVE (Initial collection status, Active/Inactv)
Specify the following selection criteria:
Jobname ===> *
Job class ===>
Service class ===>
Programmer name ===>
Accounting Information
Data ===>
Field # ===> Offset ===>
I/E ===> (Include/Exclude Address space if account data matches)
Enter END when all entries are complete.
Enter CANCEL to cancel workload characterization.- Look at the fields on this panel:
- The contents of the Workload and Description fields are what you specified on the Add Workload panel.
The default value in the Initial Status field is ACTIVE, meaning that BMC AMI Ops Monitor for z/OS begins collecting data for this workload as soon as the product itself is initialized.
However, for this workload, you are interested only in those jobs that are active between 7:00 P.M. and 6:00 A.M., so there is no need to collect data on Accounting batch jobs on an on-going basis.
- Change this status to INACTV. OpsM for z/OS will not begin collecting data for ACCTCLSA until 7:00 P.M. (which you will specify later).You can use the next few fields to specify selection criteria for ACCTCLSA.
- In the Job class field, type A to select all batch jobs running in class A.As in the preceding example, you need to type the appropriate accounting code in the Accounting Information fields to select only those batch jobs that are submitted by members of the Accounting department. Remember that the data you specify here is compared to the information about the ACCT keyword on the JCL JOB or EXEC statement.
- In the Data field, type ACCTNG.
- In the Field # field, type 5 to indicate that ACCTNG appears in the fifth field of the JCL JOB statement.
- In the Offset field, type 2 to indicate the character string’s position within the field.
To include all jobs into the workload that match the JCL JOB statement, type I (Include) in the I/E field.The screen now looks like following figure:
BMC Software ----------- CHARACTERIZE BATCH WORKLOAD ----------------------
COMMAND ===> _
Enter O to specify workload service objectives
Workload - ACCTCLSA
Description - Acct jobs in class A 7pm-6am
Initial status ===> INACTV (Initial collection status, Active/Inactv)
Specify the following selection criteria:
Jobname ===> *
Job class ===> A
Service class ===>
Programmer name ===>
Accounting Information
Data ===> ACCTNG
Field # ===> 5 Offset ===> 2
I/E ===> I (Include/Exclude Address space if account data matches)
Enter END when all entries are complete.
Enter CANCEL to cancel workload characterization.On the command line, type O and press Enter to display the Specify Batch Service Objective panel, as shown in following figure:
BMC Software ----------- SPECIFY BATCH SERVICE OBJECTIVE -------------------
COMMAND ===> _
Workload - ACCTCLSA
Description - Acct jobs in class A 7pm-6am
Turnaround time of ===> 0 minutes
for ===> 0 percent of all jobs
and ===> 0 minutes
for ===> 0 percent of all jobs
Between ===> 00:00 (Begin time hh:mm)
and ===> 23:59 (End time hh:mm)
JES queue time ===> N (Y/N, Include queue time in turnaround time)
Enter END when all entries are complete.
Enter DELETE to delete service objectives.
Enter CANCEL to cancel service objective specification.Fill in each field as follows:
Turnaround time fieldsAccording to the specifications that were given at the beginning of this example, the jobs in ACCTCLSA should not take longer than two minutes to complete. Fill in the fields as follows:
Turnaround time of
===>
1
minutes
for
===>
90
% of all jobs
and
===>
2
minutes
for
===>
100
% of all jobs
These values tell OpsM for z/OS that 90 percent of the batch jobs in class A should complete in one minute and 100 percent should complete in no more than two minutes.
Begin and end time fieldsYou want the product to monitor ACCTCLSA between 7:00 P.M. and 6:00 A.M., type the following:
Between
===>
19:00
(Begin time hh:mm)
and
===>
06:00
(End time hh:mm)
- JES queue time Keep the default value of N. (If you specify Y in this field, the amount of time that each job spends in a JES queue will be factored into how well the workload as a whole meets its service-level objectives.)
Press PF3 twice to exit the Specify Batch Service Objective panel and return to WKLIST.ACCTCLSA is added to WKLIST in alphabetical order, which places it just before your other workload, ACCTTSO, as shown in following figure:
W1=WKLIST===========CXTSTH===*========DDMMMYYYY==HH:MM:SS=====MVMVS====D=====53
C Workload Type Description Istatu Cstatu Obj Begin End
- -------- ---- -------------------------- ------ ------ --- ----- ---
ACCTCLSA BAT Acct jobs in class A 7pm-6am Inactv Inactv YES 19:00 06:00
ACCTTSO TSO Acct TSO User Active Actvtv NO 07:00 20:00
ALLASC ASCH All ASCH Address Spaces Active Active NO 00:00 00:00
ALLBAT BAT All Batch Address Spaces Active Active NO 00:00 00:00
ALLOMVS OMVS All Open MVS Address Spaces Active Active NO 00:00 00:00
ALLSTC STC All Started Tasks Active Active NO 00:00 00:00
ALLTSO TSO All TSO Address Spaces Active Active NO 00:00 00:00
ALLWKLDS COMP All Address Spaces Active Active NO 00:00 00:00
APPC WKLD APPC Workload Active Active YES 00:00 23:59
APPCHOT SCLS APPC Hot Transactions Active Active YES 00:00 23:59
APPCNRM SCLS APPC Normal Transactions Active Active YES 00:00 23:59
BATCH WKLD Batch Workloa Active Active YES 00:00 23:59
BATHAL SCLS Batch Hal Jobs Active Active YES 00:00 23:59
BATHOT SCLS Batch Hot Jobs Active Active YES 00:00 23:59
BATNRM SCLS Batch Normal Jobs Active Active YES 00:00 23:59
BATPROD SCLS Batch Production Jobs Active Active YES 00:00 23:59
BPY3205 COMP test/3205 Active Inactv NO 00:00 00:00ACCTCLSA remains on WKLIST until you either delete it or rename it.
Other useful information about WKLIST is as follows:
- The Obj field for ACCTCLSA has a value of YES, which reflects the fact that you specified service objectives for the workload.
- The Istatus (Initial Status) field for ACCTCLSA is INACTV, which means that OpsM for z/OS will not collect data for the workload by default, but will collect only when you use the R command to start data collection.
- The Cstatus (Current Status) field is also INACTV. Because you want OpsM for z/OS to collect data for ACCTCLSA while its service objectives are active--from 7:00 P.M. to 6:00 A.M.—you must explicitly start collection activity by using the R (Rename) line command either at or before 7:00 P.M.
Now that you have created the first workload for Accounting’s nightly batch updates, it should be a simple matter to create the other three workloads. The steps are exactly the same, except that you give each workload a different name (say, ACCTCLSB, ACCTCLSK, and ACCTCLSQ), specify different values in the Job Class field (B, K, and Q, respectively), and assign appropriate turnaround times to each workload.
When you have finished, WKLIST will look like following figure:
W1 =WKLIST===SYSC======+=======DDMMMYYYY==HH:MM:SS========MVMVS====D=======28
L Workload Type Description Istatus Cstatus Obj Begin End
- -------- ---- ----------------------------- ------ ------ --- ----- ----
ACCTCLSA BAT Acct jobs in class A 7pm-6am Inactv Inactv YES 19:00 06:00
ACCTCLSB BAT Acct jobs in class B 7pm-6am Inactv Inactv YES 19:00 06:00
ACCTCLSK BAT Acct jobs in class K 7pm-6am Inactv Inactv YES 19:00 06:00
ACCTCLSQ BAT Acct jobs in class Q 7pm-6am Inactv Inactv YES 19:00 06:00
ACCTTSO TSO Acct TSO Users Active Actvtv NO 07:00 20:00
ALLASCH ASCH All APPC Address Space Active Active NO 00:00 00:00
ALLBAT BAT All Batch Address Spaces Active Active NO 00:00 00:00
ALLSTC STC All Started Tasks Active Active NO 00:00 00:00
ALL TSO All TSO Address Spaces Active Active NO 00:00 00:00
ALLWKLDS COMP All Address Spaces Active Active NO 00:00 00:00
COMP01 COMP Test Workload Active Active YES 08:00 17:00
HOTBATCH BAT Hot Batch Active Active NO 00:00 00:00
ENGBAT BAT All Engineering Batch Jobs Active Active NO 00:00 00:00