Space announcement This space provides the same content as before, but the organization of the home page has changed. The content is now organized based on logical branches instead of legacy book titles. We hope that the new structure will help you quickly find the content that you need.

Generating application recovery simulation JCL


You can generate application recovery simulation JCL for a specific BMC AMI Recovery Manager object set either online or in batch mode.

Procedures for both methods are provided. By generating and executing application recovery simulation JCL, you can verify that needed recovery resources are valid and available and that log apply can be done. (To generate application recovery simulation JCL for an entire subsystem, see Disaster recovery simulation—DB2 system resources.)


Before you begin

Before you can generate application recovery JCL for simulation purposes, you must perform the following steps:

  1. Establish a RESTARTRBA in the history file by running the ARMBSRR program (see Task-6-Generating-the-disaster-recovery-simulation-JCL in the System Recovery Simulation section).
  2. Create remote primary offsite copies for both the system and application objects.

Important

If you specify SITETYPE=RECOVERY, you must have RP or RB copies.

To generate application simulation JCL online

  1. From the main menu, specify Option 1, Application Object Set, and type J or JA beside the object set on the Object Set List panel.The Batch Object Set Recovery Point Specification and the Batch Object Set JCL Generation Options panels will display.

     


    ARMGJ01B ====== Batch Object Set Recovery Point Specification ============
    Command ===> _________________________________________________________________
                                                                                  
    Recover to . . . . . 8 1. Current         2. Image copy    
       3. Quiesce        4. Common recovery point
                           5. Specific Logpoint     6. Restart RBA  
                           7. Timestamp       8. Logmark                           
                                                                                  
      Full copy only . . . 2 1. Yes   2. No  (for option 2)                          
      Relative point . . . 0_ 0=Last to 99=99th previous (for options 2,3,4 or 8)      
      To Timestamp . . . . ___ - __ - __   __ : __ : __ : __ (Inflights resolved)
      To Timestamp Current minus hours.. ______ (1-960)(Inflights resolved)
      To Timestamp Current minus days.. ______ (1-40)     (Inflights resolved)       
      To Logpoint. . . . . ____________________ (option 5)                          
      To Logmark . . . . . ________________________________________ (option 8)      
      Resolve Inflights. . _ 1. Yes   2. No  (for options 5 and 8)
      Unrecover RC. . . .  __Range 0-254
      Email at EOJ. . . .  ______EMAILDST Entry name
    EOJ RC. . . . . .  __Range 0-254
      Email time exceeded. _______                    
    ARMGJ02B ====== Batch Object Set JCL Generation Options ============
    Command ===> _________________________________________________________________
                                                                                                       

    Log Only . . . . . . 2 1. Yes   2. No
    Sitetype . . . . . . 1 1. LOCAL 2. RECOVERY
    JCL Type . . . . . . 1 1. LOCAL 2. DR
    Checked unchanged. . 2 1. Yes   2. No (exclude unchanged from recovery)
    ObjectSet syntax . . 1 1. Yes2. No (for BMC RECOVER only)
    Analyze. . . . . . . 1 1. Yes   2. No   3. Only (for BMC RECOVER only)
    Simulate recovery. . 2 1. Yes   2. No           (for BMC RECOVER only)                               
    Backout. . . . . . . 3 1. Yes   2. No   3. Auto (Auto BMC RECOVER only)
    Recover clones only. 2 1. Yes2. No            
    Indep Outspace . . . 2 1. Yes   2. No(BMC RECOVER only)               
    Model. . . . . _________________________________________________________________________
    To SSID. . . . _______       
    Optional (for DB2 RECOVER only)
    LISTDEF dsn. . . . ________________________________________________________________________                                          
    LISTDEF. . . . _________________  (LISTDEF name)
  2. On the Batch Object Set JCL Generation Options panel, specify the following values to use application recovery simulation:

    Option

    Value

    Recover to

    Specify one of the following values:

    • Current
    • Common Recovery Point
    • Specific Logpoint
    • Restart RBA
    • Timestamp

    Sitetype

    Specify one of the following values:

    • RECOVERY 1
    • LOCAL

    Simulate recovery

    Yes

    Backout

    No

    1If you specify Sitetype=Recovery, you must have RP or RB copies

    Important

    Be aware of the following information:

    • SIMULATE YES is not valid with the

      Some content is unavailable due to permissions.

      LOGSCAN YES or UNLOADKEYS/BUILDINDEX options. If you specify either of these options when using simulation, ARMBGEN issues an error message and does not generate the JCL.
    • If you specify SIMULATE YES for an object set that uses Db2 DSNUTILB as the recovery utility, any JCL that is generated will not execute because of the JCL logic generated by simulate mode.
  3. Press Enter to generate JCL.The JCL Specification panel is displayed.
  4. When the JCL Specification panel appears, enter a fully qualified output data set name. Be aware of the following information:
    • The output data set is used for saving the JCL and must be cataloged. If not enclosed in quotes, the output data set will be prefixed by your TSO prefix.
    • The job statement must contain a symbolic variable (&#) for the job number.
    • If you selected Simulate recovery, BMC AMI Recovery Manager appends .SIM to the data set name if the final node does not end in SIM or .SIM. If you are using the Recovery Management for Db2 solution and you selected Estimate Yes, BMC AMI Recovery Manager appends .EST to the data set name if the final node does not end in EST or .EST. You must have created these GDG bases previously.
  5. Submit the generated JCL. For an example of the JCL that is generated by this procedure, see Disaster-recovery-simulation-JCL.

To generate application simulation JCL in batch mode

If you do not want to generate the JCL online, you can manually code the SET OPTIONS SIMULATE YES syntax for an ARMBGEN job. The ARMBGEN job generates JCL that you run on your local system to simulate the recovery of the application object set that you specify.

Use the following syntax in the ARMBGEN JCL:

SET OPTIONS BACKOUT NO SIMULATE YES SITETYPE RECOVERY

ARMBGEN control statement syntax for SET OPTIONS is shown in the following figure. For more information, see the BMC AMI Recovery Manager for Db2 documentation.

GUID-44D4A148-F4B5-498E-A692-16313E6D256A-low.png

 

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