Defining Model Builder Tasks
Use the following procedure to create, add, and manage Model Builder Tasks.
The Model Builder Tasks tool provides you with the ability to build cost models based on current data from the CDB server. Once defined and scheduled, Model Builder Tasks generate the models required for the Software Contract Reporting, Monthly Reporting, and Planning tools.
You can build a variety of models to affect the scope of your analysis. In general, if you have multiple CDB servers, you have to define multiple Model Builder Tasks to run. If you have more than one workload type you want to process, you can define one Model Builder Task for all of the workloads. It is not necessary to create a separate task for each workload type.
However, if you want to run a Model Builder Task for multiple workload types, you can specify only one filter. If you need to specify different filters for different workloads, you need to create a separate Model Builder Task for each workload that you want to filter.
Model Builder tasks provide advanced options where you can:
- Exclude particular LPARs from the cost calculations
- Designate the LPARs that use zNALC licensing for z/OS products
- Enable trace messages to the log file to assist in diagnostics
Before you begin
You need to define at least one CDB Server profile before you can create a Model Builder Task. Defining the CDB Server profile enables Cost Analyzer to connect to the CDB database and retrieve the necessary data for the model. For more information, see Defining-connections-to-CDB-servers.
Cost models are built referencing the active Cost Table. If you have multiple cost tables, you need to ensure that the cost table you want to reference for cost calculations is set as the active cost table. For more information, see Managing-multiple-cost-tables.
To define Model Builder Tasks
- From the Cost Analyzer console, click Administration Tools.
In the Administration Tools window, click Manage Model Builder Tasks.The Manage Model Builder Tasks dialog opens, listing all of the tasks that have been defined:
:
From the dialog you can add, modify, or remove Model Builder Tasks.
Perform one of the following actions:
- To add a new Model Builder Task, click the Add button.
- To modify an existing Model Builder Task, select the icon of the task you want to modify from the list, and then click the Modify button.
The Add/Modify dialog is displayed as shown in the following figure:

Complete each field based on the following table:
Table: Add Model Build Task fields
Field
Description
Task name
Name to be assigned to the task
Task description
(optional) Description of the task
Workload type
Click one or more of the following types:
- Suites*
- Service Class*
- Report Class*
- Subsystem Address Space
- Importance
- Workload Manager
For more information, see Cost-Analyzer-workloads.
Workload Filter
Filter for the workload
Workload filters can be specified for Suites, Service Class, and Report Class workloads. For these workloads, you can enter a list of comma delimited workload names or wildcard character patterns to be used as a filter to reduce the size of the cost model.
Source CDB Server
Desired CDB Server Profile
Source CDB Database
Desired CDB Database accessible from the specified CDB Server
The database needs to be compatible with Cost Analyzer.
Time Zone Offset
Desired time zone offset
You can specify an offset from the time zone of the data in the CDB database.
(optional) If you want to exclude particular LPARs from the cost calculation, designate zNALC LPARs, specify NO89 commands, or enable Trace messages, click Advanced Options.The Advanced Options dialog displays as shown in the following figure:

To designate zNALC LPARs, enter the name of the zNALC LPAR you want to include, and then click Add.
To exclude LPARs from the cost calculation click the Exclude LPARs tab, enter the name of the LPAR you want to exclude and then click Add.
To specify the NO89 command for a MLC product or a priced feature that does not create SMF Type 89 records, click the NO89 command tab, then enter the command as follows:NO89 productID[:featureCode]=[CPCSN:]lparName,... | *All
The following table defines the value of the variables:
Variable
Description
productID
IBM product number
featureCode
IBM priced feature number
CPCSN
The CPC serial number
lparName
List of LPAR names separated by commas
To specify an EXCLUDE command for an interval that must be excluded from the peak R4HA calculation, click the EXCLUDE89 commands tab, then enter the command as follows:
EXCLUDE89 CPC=<xxxx> IMAGE_ID=<lparname>,... | *ALL
PRODUCT_ID=<productid>,...|*ALL
START=<yyyy m d h>
RESUME=<yyyy m d h>
ACTIVE=Y|NTo enable Trace messages, click the Trace tab, change the toggle switch to Yes.
- When finished with Advanced Options, click Accept.
- When finished with all selections, click Add Task.The task appears as a listing in the Model Builder Tasks dialog.
- Click Save Changes to save the Model Builder Task to the server.
Where to go from here
After defining your Model Builder Tasks, schedule them to run on a nightly basis for use with the Software Contract Reporting, Monthly Reporting, and Planning tools. For more information, see Scheduling-Model-Builder-Tasks.