Saving and restoring automatically

Saving and restoring automatically means that every time you finish a debugging session, z/OS® Debugger saves information about your debugging session. The next time you start a debugging session, z/OS Debugger restores that information. Setting up automatic saving and restoring requires that you allocate files and enter the appropriate commands that enable this feature. You can do this in one of the following ways:
  • You or your site can specify the EQAOPTS SAVESETDSNALLOC and SAVEBPDSNALLOC commands. These commands can create the files and enter the appropriate commands for you, your group, or your entire site. If you choose this method, you can skip the rest of this topic and follow the instructions in the topic EQAOPTS commands in the IBM® z/OS Debugger Reference and Messages or IBM z/OS Debugger Customization Guide.
  • Run the EQAWSVST job in hlq.SEQASAMP to create the data set and run the appropriate commands. The disadvantage to this method is that you have to determine if the values for the EQAOPTS SAVESETDSN and SAVEBPDSN commands have been altered, and then make a similar change to the job.
  • You can do the steps described in this topic.

To enable automatic saving and restoring, you must do the following steps:

  1. Pre-allocate a sequential data set with the default name where settings will be saved. If you are running in non-interactive mode (MVS batch mode without using full-screen mode using the Terminal Interface Manager), you must include an INSPSAFE DD statement that references this data set.
  2. Pre-allocate a PDSE or PDS with the default name where breakpoints, monitor, and LDD specifications will be saved. If you are running in non-interactive mode (MVS batch mode without using full-screen mode using the Terminal Interface Manager), you must include an INSPBPM DD statement that references this data set.
  3. Start z/OS Debugger.
    • If you are running in CICS®, you must log on as a user other than the default user and the CICS region must have update authorization to the SAVE SETTINGS and SAVE BPS data sets.
    • If you are running in non-interactive mode (MVS batch mode without using full-screen mode using the Terminal Interface Manager), you must add INSPSAFE and INSPBPM DD statements that reference the data sets you allocated in step 1 and 2.
  4. Enable automatic saving and restoring of settings by using the following commands:
    SET SAVE SETTINGS AUTO;
    SET RESTORE SETTINGS AUTO;
  5. If you want to enable automatic saving and restoring of breakpoints and LDD specifications or monitor and LDD specifications, use the following commands:
    SET SAVE BPS AUTO;
    SET RESTORE BPS AUTO;
    SET SAVE MONITORS AUTO;
    SET RESTORE MONITORS AUTO;

    You must do step 4 (enabling automatic saving and restoring of settings) if you want to enable automatic restoring of breakpoints or monitor specifications.

  6. Shutdown z/OS Debugger. Your settings are saved in the corresponding data set.

The next time you start z/OS Debugger, the settings are automatically restored. If you are debugging the same program, the breakpoints and monitor specifications are also automatically restored.