(SPE2101)
BMC AMI DevOps lets you roll back the schema changes implemented by the current component process. Defining a rollback process enables you to restore your schema if you identify a problem.
This topic describes how:
You can include creating rollback artifacts in your component process. However, do not include running the generated rollback execution JCL in the same component process that it was created in.
To generate rollback artifacts
You can generate the following rollback artifacts to enable you to roll back the implemented schema changes:
| |
---|
| The CDL file that defines rollback schema changes |
| The worklist that Analysis generates to roll back the schema changes |
| The impact report that Analysis generates to roll back the schema changes |
| The execution JCL that runs the rollback worklist |
You can either use two different component processes or the same component process to generate the rollback CDL file and the other rollback artifacts respectively.
Click here for the procedure to use two different component processes to generate the rollback artifacts
This topic describes how to use two different component processes to generate the rollback CDL file and the other rollback artifacts respectively.
This topic describes how:
Important
If you are using plug-in variables file-based symbolic variables when specifying the PDS and member that contains rollback artifacts, you must specify the corresponding variable from the Data Set Names for Rollback section of the plug-in variables file. For more information, see Sample-plug-in-variables-file-AMI_DevOps-properties.
Use the following procedure to generate the rollback CDL file for your component process.
- Create a component process or open an existing component process for configuration. For more information, see the following topics:
Add the following process steps sequentially and configure them:
| |
---|
| BMC AMI DevOps Common - Authentication |
| - Schema Migration - Schema Mig: Cat to Cat Baseline Profile as Scope
- Schema Migration - Schema Mig: Cat to Cat Migrate Profile as Scope
- Schema Migration - Schema Mig: Cat to Cat Objects as Scope
- Schema Migration - Schema Mig: Cat to DDL-WL-BL
- Schema Migration - Schema Mig: Use Existing CDL File
|
| BMC AMI DevOps Schema Migration - Output Transmission |
| BMC AMI DevOps Common - JCL Execution |
| BMC AMI DevOps Common - Clean Up |
When configuring the BMC AMI DevOps Schema Migration process step, do the following:
- In the Select Baseline Type Before Execution field, select one of the following baseline types:
- Pre-Execution Baseline
- Full-Recovery Baseline
- Enter the baseline profile name in the Baseline Profile Name (before execution) field.
- Enter the baseline name in the Baseline Name (before execution) field.
- Select the Generate CDL to Rollback Schema Changes check box.
- Enter a partitioned data set (PDS) and member name in the Rollback PDS and Member Name (CDL) field.
- Click OK to save your BMC AMI DevOps Schema Migration process step configuration.
- Execute the component process. For more information, see To execute a component process.
This implements the defined schema changes and also generates the rollback CDL file.
After generating a rollback CDL file for your component process, you can use the following procedure to generate the other rollback artifacts, which can be used to roll back the implemented schema changes.
- Create a component process or open an existing component process for configuration.
Add the following process steps sequentially and configure them:
| |
---|
| BMC AMI DevOps Common - Authentication |
| BMC AMI DevOpsSchema Migration - Schema Mig: Use Existing CDL File |
| BMC AMI DevOpsSchema Migration - Output Transmission |
| BMC AMI DevOps Common - Clean Up |
When configuring the BMC AMI DevOps Schema Migration - Schema Mig: Use Existing CDL File process step, do the following:
In the Work ID Name field, enter a different work ID from the one you entered when configuring the component process that generated the rollback CDL file.
Tip
BMC recommends adding a _RB suffix to the work ID you entered when configuring the component process that generated the rollback CDL file.
Example
In the Work ID Name field, if you entered ${p:Job_ID} when configuring the component process that generated the rollback CDL file, you can enter ${p:Job_ID}_RB when configuring the component process that generates the other rollback artifacts.
- In the CDL PDS and Member Name field, enter the PDS and member name of the rollback CDL file.
- In the Worklist PDS and Member Name field, enter the PDS and member name of the rollback worklist.
- In the Impact Report PDS and Member Name field, enter the PDS and member name of the rollback impact report.
- In the Execution JCL PDS and Member Name field, enter the PDS and member name of the rollback execution JCL.
(optional) In the Additional Analysis Input Keywords field, add the following lines if you are rolling back schema changes using a full-recovery baseline that you created using the work ID of the component process that generated the rollback CDL file:
BLNAME baselineName
BLRECOVER
The baselineName variable represents the baseline name of the full-recovery baseline.
- Click OK to save your BMC AMI DevOpsSchema Migration - Schema Mig: Use Existing CDL File process step configuration.
When configuring the BMC AMI DevOps Schema Migration- Output Transmission process step, do the following:
Important
The BMC AMI DevOps Schema Migration - Output Transmission process step lets you download any or all of the rollback artifacts to the destination directory. To download a rollback artifact, enter its respective source PDS name.
You must enter the source PDS name for at least one rollback artifact.
- In the Source PDS Name (CDL) field, enter the PDS of the rollback CDL file.
- In the Source PDS Name (WORKLIST) field, enter the PDS of the rollback worklist.
- In the Source PDS Name (EXEC_JCL) field, enter the PDS of the rollback execution JCL.
- In the Source PDS Name (IMPACT REPORT) field, enter the PDS of the rollback impact report.
- In the Source Member Name field, enter the file name of the rollback member on the mainframe.
- In the Destination Directory Name field, enter the directory into which you want to download all the rollback artifacts.
- In the Destination File Name field, enter a value that can be used to generate the file names for all the rollback artifacts.
- Click OK to save your BMC AMI DevOps Schema Migration - Output Transmission process step configuration.
- Execute the component process. For more information, see To execute a component process.
This generates the rollback execution JCL.
Click here for the procedure to use the same component process to create all the rollback artifacts
The following procedure describes how you can use the same component process to create all the rollback artifacts.
- Create a component process or open an existing component process for configuration. For more information, see the following topics:
Add the following process steps sequentially and configure them:
| | |
---|
| BMC AMI DevOps Common - Authentication | |
| Select one of the following Schema Migration process steps: - BMC AMI DevOpsSchema Migration - Schema Mig: Cat to Cat Baseline Profile as Scope
- BMC AMI DevOps Schema Migration - Schema Mig: Cat to Cat Migrate Profile as Scope
- BMC AMI DevOps Schema Migration - Schema Mig: Cat to Cat Objects as Scope
- BMC AMI DevOps Schema Migration - Schema Mig: Cat to DDL-WL-BL
- BMC AMI DevOps Schema Migration - Schema Mig: Use Existing CDL File
| Generates the rollback CDL file |
| BMC AMI DevOps Schema Migration - Output Transmission 1 | Downloads the CDL file, worklist, impact report, and execution JCL, which implement the schema changes, to the specified directory |
| BMC AMI DevOps Common - JCL Execution | Implements the schema changes |
| BMC AMI DevOps Schema Migration - Schema Mig: Use Existing CDL File | Generates the other rollback artifacts |
| BMC AMI DevOps Schema Migration - Output Transmission 2 | Downloads all the rollback artifacts to the specified directory |
| BMC AMI DevOps Common - Clean Up | |
When configuring the BMC AMI DevOps Schema Migration process step, do the following:
- In the Select Baseline Type Before Execution field, select one of the following baseline types:
- Pre-Execution Baseline
- Full-Recovery Baseline
- Enter the baseline profile name in the Baseline Profile Name (before execution) field.
- Enter the baseline name in the Baseline Name (before execution) field.
- Select the Generate CDL to Rollback Schema Changes check box.
- Enter a partitioned data set (PDS) and member name in the Rollback PDS and Member Name (CDL) field.
- Click OK to save your BMC AMI DevOps Schema Migration process step configuration.
When configuring the BMC AMI DevOps Schema Migration - Schema Mig: Use Existing CDL File process step, do the following:
Enter a different work ID in the Work ID Name field from the one you entered when configuring the first BMC AMI DevOps Schema Migration process step.
Tip
BMC recommends adding a _RB suffix to the work ID you entered when configuring the BMC AMI DevOps Schema Migration process step.
Example
In the Work ID Name field, if you entered ${p:Job_ID} when configuring the BMC AMI DevOps Schema Migration process step, you can enter ${p:Job_ID}_RB when configuring the BMC AMI DevOps Schema Migration - Schema Mig: Use Existing CDL File process step.
- In the CDL PDS and Member Name field, enter the PDS and member name of the rollback CDL file.
- In the Worklist PDS and Member Name field, enter the PDS and member name of the rollback worklist.
- In the Impact Report PDS and Member Name field, enter the PDS and member name of the rollback impact report.
- In the Execution JCL PDS and Member Name field, enter the PDS and member name of the rollback execution JCL.
(optional) In the Additional Analysis Input Keywords field, add the following lines if you are rolling back schema changes using a full-recovery baseline that you created using the work ID of the first BMC AMI DevOps Schema Migration process step:
BLNAME baselineName
BLRECOVER
The baselineName variable represents the baseline name of the full-recovery baseline.
When configuring the BMC AMI DevOps Schema Migration - Output Transmission 2 process step, do the following:
Important
The BMC AMI DevOps Schema Migration - Output Transmission process step lets you download any or all of the rollback artifacts to the destination directory. To download a rollback artifact, enter its respective source PDS name.
You must enter the source PDS name for at least one rollback artifact.
- In the Source PDS Name (CDL) field, enter the PDS of the rollback CDL file.
- In the Source PDS Name (WORKLIST) field, enter the PDS of the rollback worklist.
- In the Source PDS Name (EXEC_JCL) field, enter the PDS of the rollback execution JCL.
- In the Source PDS Name (IMPACT REPORT) field, enter the PDS of the rollback impact report.
- In the Source Member Name field, enter the file name of the rollback member on the mainframe.
- In the Destination Directory Name field, enter the directory into which you want to download all the rollback artifacts.
- In the Destination File Name field, enter a value that can be used to generate the file names for all the rollback artifacts.
- Click OK to save your BMC AMI DevOps Schema Migration - Output Transmission 2 process step configuration.
- Execute the component process. For more information, see To execute a component process.
To run the generated rollback execution JCL
Use the following procedure to run the generated rollback execution JCL.
Important
- Perform this procedure only if you want to roll back the schema changes implemented previously. Do not include running the generated rollback execution JCL in your component process.
- You can alternatively submit the rollback execution JCL directly from the mainframe.
- Create a component process or open an existing component process for configuration.
Add the following process steps sequentially:
| |
---|
| BMC AMI DevOps Common - Authentication |
| BMC AMI DevOps Common - JCL Execution |
| BMC AMI DevOps Common - Clean Up |
When configuring the BMC AMI DevOps Common - JCL Execution process step, do the following:
- Select the Execute JCL from Mainframe PDS check box.
- In the Execution JCL PDS or Directory Name field, enter the name of the PDS that contains the rollback execution JCL.
- In the Execution JCL Member or File Name field, enter the name of the member that contains the rollback execution JCL.
- Click OK to save your BMC AMI DevOps Common - JCL Execution process step configuration.
- Execute the component process. For more information, see To execute a component process.
This runs the rollback execution JCL, which rolls back the schema changes implemented previously.