Using scripts
A script is a predefined set of ordered steps that is needed to perform a
BMC AMI Change Manager for Db2
process.
Each task ID that you create uses a script. The script that you choose determines which panels are displayed and their sequence in creating and executing a Task ID.
Script steps
Command ===> SCROLL ===> PAGE
Script . . : RDACRJ.SCR01
Type one or more action codes. Then press Enter.
Steps 1 to 7 of 7
E=Edit O=Options More:
Act Step Process Current Options
************************************** TOP ************************************
001 BASELINE Catalog Baseline
002 COMPARE Compare CATALOG to CATALOG
003 IMPORT CDL
004 REPORT Baseline from step 1
005 ANALYSIS Do not create a full recovery baseline
006 EXECUTION No dataset sizing No additional baseline or compare step
007 BASELINE Catalog Baseline
************************************* BOTTOM **********************************
Some scripts require existing Change Manager objects. For example, a script might require that an alter-type work ID with data structure changes specified in it exists. When you create a task ID that uses this script, you specify the alter-type work ID.
You select a script from the Script Selection List (see the following figure), which is displayed when you create a new Task ID.
Command ===>
Select a Script to create a TASKID. Then press Enter.
_ 1. Change data structures using a Compare trigger
2. Change data structures using a DML trigger
3. Migrate data structures using a DML trigger
4. Change data structures using an existing WORKID
5. Migrate data structures using an existing WORKID
6. Receive data structure changes (strong sender)
7. Receive data structure changes (strong receiver), create Baseline
8. Receive DDL to create data structures
9. Create a Full-Recovery Baseline
10. Recover data structures with current data
11. Recover data structures with old data
12. Select a user defined script
13. Replicate a WORKID
14. Delete one or more WORKIDs
Type an user defined script, or type a wildcard pattern for a selection list
if script is 12.
Script . . .
Commands: HELP END CANCEL
If you use a script to perform a change management task repeatedly, you can reuse the same task ID each time. For more information, see To reuse a task ID.
The following table describes the actions that you can perform with scripts. The procedural steps that are needed to perform actions, along with the related information, are described.
Task | Reference |
---|---|
Creating a script | |
Listing scripts | |
Editing a script | |
Listing the steps for a script | |
Executing a user-defined script | |
Browsing a script | |
Deleting a script | |
Creating a task ID from a script | |
Listing task IDs for a script | |
Copying a script supplied by BMC | |
Copying a user-defined script |
Related topic