Deleting multiple work IDs
The CM/PILOT DELETE_WORKID script contains the steps to delete multiple work IDs.
To help control the size of the CM_WORKID and CM_SYNC tables, as well as other product CD tables, you can delete any unwanted work IDs. For information about controlling the size of sync tables, see Product-table-maintenance.
In this task, you perform the following subtasks:
- Create a task ID.
- Create a DML statement.
- Execute the task ID.
To create a task ID
- On the BMC AMI Change Manager for Db2 Main Menu, select CM/PILOT, and press Enter.
- On the CM/PILOT Main Menu, select TASKIDs and press Enter.
- On the TASKID Action Menu, type the name of a new TASKID and select Create a TASKID. Then, press Enter.
- On the Script Selection List, select Delete one or more WORKIDs and press Enter.
- On the Create TASKID panel, specify the information for a task ID.
- (optional) Specify a Comment to describe the task ID.
- Type S to select Create or Edit DML.
- Press Enter.
To create the DML statement
On the WORKID Detail for Delete WORKID DML panel, create a DML statement.
Type an operator and a value for the WHERE clause.
- Press END.
The DML is displayed in the ISPF Editor.
Edit your DML statement in the ISPF Editor as shown in the following figure, if necessary.For information about DML syntax, see CM-PILOT-Data-Manipulation-Language-DML.
DELETE WORKID
WHERE
(WKOWNER LIKE 'ABC%' OR
WKOWNER LIKE 'DEF%')
AND DATE(MODDATE) < DATE('2009-11-01')
;- When you have finished editing the statement, press END until the TASKID Action Menu is displayed.The task ID containing the DML statement for the script is created.
To execute the task ID
- On the TASKID Action Menu, select Execute a TASKID and press Enter.
- On the TASKID Interface panel, specify the data set names to be used by CM/PILOT.
- Type the data set name for the CM/PILOT Worklist.
- Type the data set name for the CM/PILOT JCL.
- Type the data set name for Diagnostics or type SYSOUT.
- Select the method of executing the CM/PILOT worklist.For more information about executing a CM/PILOT worklist, see Processing-CM-PILOT-worklists.
On the TASKID Interface panel, create a CM/PILOT worklist and select your options for processing the worklist.
- Type S to select Create Worklist. Then, press Enter.
- To edit the CM/PILOT worklist, type S to select Edit Worklist.
- To create the JCL to run the worklist, type S to select Create JCL.
- To review or modify the JCL, type S to select Edit JCL.
- To submit the JCL to run the CM/PILOT worklist, type S to select Submit JCL.
- Press Enter.CM/PILOT deletes the work IDs.
Related topic