Deleting baseline generations by using baseline profiles in batch mode


You can automate the deletion of baselines in batch that were created using a baseline profile. You delete these baselines by copying and editing the JCL provided with BMC AMI Change Manager for Db2.

You identify baselines for deletion by specifying a generation number and a catalog baseline profile name. You can delete full-recovery baselines, but not protected baselines. The baseline profile is also not deleted. For more information, see DELETE-baseline-command.

To delete baseline generations in batch mode

  1. Make a copy of the JCL in the ACMBDELB member located in hlq.BMCCNTL.
  2. In an ISPF editor, perform the following actions for the placeholders in the JCL as follows:

    Placeholder

    Action

    <INSERT JOB CARD>

    Replace with a job card for your environment.

    <ACM DOPTS MODULE NAME>

    Replace with the Change Manager DOPTS module name that was used during installation. The default DOPTS module name is ACMDOPD1.

    <User lib HLQ>

    Replace with the HLQ that was used during the installation for your user libraries.

    <Run time HLQ>

    Replace with the HLQ that was used during the installation for your runtime libraries.

    <DSNEXIT>

    <DSNLOAD>

    If DSNEXIT and DSNLOAD are in your LINKLIST, remove them from JOBLIB statement.  Otherwise, replace with the data set names.

    <SSID>

    Replace with the ID of the Db2 subsystem on which you are running the utility.

  3. Remove the sample batch baseline commands in the ALUIN DD.
  4. Add the batch baseline delete command for the baseline that you want to delete. For more information about the batch baseline delete command, see DELETE-baseline-command.The following figure displays a sample of the batch delete baseline commands: 

    ***  
    ** DELETE THE EARLIEST GENERATION OF A BASELINE CREATED WITH A BASLINE PROFILE
    ***                                                                       
    DELETE BLPROFILE(PROFCR.MPSAMP3(-10))

    ***
    ** DELETE THE LATEST GENERATION OF A BASELINE CREATED WITH A BASELINE PROFILE
    ***
    DELETE BLPROFIILE(PROFCR.BPCAT01(0))

    ***
    ** GENERATE A REPORT THAT LISTS ALL BASELINES CREATED WITH A BASELINE PROFILE AND
    ** HIGHLIGHTS THE BASELINE IDENTIFIED FOR DELETION.
    ***
    DELETE BLPROFILE(PROFCR.MPSAMP1(-3)) REPORTONLY

  5. Submit the JCL.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*