Step 1. Define Db2® objects to be used during verification
The first step in the ZDT/Db2 verification is to define the Db2® objects to be used.
Take a copy of the sample IVP member HFM2VER from the sample library.
Follow the instructions at the top of the sample. You need to review, and possibly change, the following values:
- SG name
- Change this to the name of a Db2® storage group of your choice. You can use an existing Db2® storage group name. To do this, change SG_name to the existing storage group name, and comment out the CREATE STOGROUP statement. If you use an existing Db2® storage group name, you can skip the customization for Vol_list and DB2_VCAT_name.
- VOL_list
- Change this, if required, to a list of valid disk volume names.
- DB2_VCAT_name
- Change this to the VCAT name used for Db2® user data sets, for the appropriate Db2® system.
To execute the DDL statements:
- Log on to a TSO user ID that is enabled to access and use ZDT/Db2.
- Start ZDT/Db2.
- If you have added an option for ZDT/Db2 to your ISPF Primary Options menu (see Adding ZDT/Db2 to the ISPF menu), type this option value, and press Enter. For example, if you have assigned ZD to ZDT/Db2, type ZD and then press Enter.
- If you defined ZDT/Db2 in an ISPF command table (see Defining ZDT/Db2 in an ISPF command table), verify that ZDT/Db2 can be started by entering the command ZD on any ISPF command line.
- If you have previously selected a Db2® subsystem, you
immediately see the Primary Option Menu.
If this is the first time you have used ZDT/Db2:
- The Copyright panel appears. After reading the panel text, press the Cancel key, PF12. In subsequent sessions this panel does not automatically appear.
- The Db2 Subsystem Selection menu is displayed, showing the Db2® subsystems you customized in your HFM2SSDM macro. Select the Db2® subsystem you want to use, or run the ZDT/Db2 IVP against, and press Enter to go to the ZDT/Db2 Primary Option Menu.
- Enter VER on the command line to display the release level and PTF level of
ZDT/Db2. A panel is displayed that gives you, as example, the
following information:
HCL Z Data Tools Version 1 Release 1 Modification 0 Db2 Component (not APF authorized) Service Levels of installed components Base IMS Db2 CICS English -NONE- -NONE- -NONE- -NONE-
- ZDT/Db2 is always shown as
APF not authorized
, even if you have made Z Data Tools APF-authorized, as Z Data Tools cannot run as APF-authorized under ISPF. - When you first install Z Data Tools,
-NONE-
is shown against each component. Subsequently, when you have applied service to Z Data Tools, a PTF number is shown, indicating the PTF level of each component you have installed. If you have not installed a component, that component is not be shown at all.
- ZDT/Db2 is always shown as
- Select the ZDT/Db2 system options by typing '0.0.2' on the
ZDT/Db2 main menu panel and pressing Enter. See ZDT/Db2 System Options panel. Ensure that:
- The
Translate Db2® object names
option is not selected. - The
Translate input SQL statements
option is not selected.
- The
- Press PF3 to return to the ZDT/Db2 main menu.
- Select the
Edit/Execute SQL (Data Set)
function by typing '4.4' on the ZDT/Db2 main menu panel and pressing Enter.See Edit/Execute SQL (Data Set) panel.
Enter a data set name, member name, and execution options, as shown in Edit/Execute SQL (Data Set) panel. Modify the data set and member names to reflect the data set and member name containing your modified copy of the HFM2VER sample.
- Press Enter to edit the sample DDL. When you have made any required changes, press PF3 to run
the DDL statements.
When the DDL samples run successfully, two SQL warning messages are displayed. See SQL Warning (1) panel and SQL Warning (2) panel. These warnings are expected. To continue running, press Enter.
When the SQL has run successfully, a box appears at the bottom of the screen with
173 statements executed
.
Move onto Step 2. Run the HFM2CHCK sample job of the IVP.