Viewing and updating the database

Select option 2. View/Update database to view or update a database.

Before you begin

The IMS system ID that you want to work with must be defined to IMS Database Repair Facility. Complete the steps in Setting up IMS environment to define the IMS system ID.

About this task

Before you can make changes to the data and pointers, you must provide information that identifies the initial segment or record that you want to display, and then specify the format in which you want the data displayed.

Procedure

  1. Select option 2. View/Update database in the Main menu and press Enter.
  2. In the Select IMS system panel, select the IMS system ID that you want to work with by entering an S in the input field that corresponds to the IMS system ID. Then, press Enter.
    Figure 1. Select IMS system panel
                                   Select IMS system  
     Command ===>
    
     S Select IMS system ID.  END to exit
    
       IMS ID  Release
     _ IMSA      15.2
     _ IMSB      15.2
     _ IMSC      15.2
     ******************************* Bottom of data *******************************
  3. In the Specify database panel, specify the database name or, for a partitioned database, the master DBD name in the DBD name field. Then, press Enter.
    Figure 2. Specify database panel
                                    Specify database
     Command ===>
    
     Specify field.  END to exit 
    
     IMS ID             . . IMSA
     IMS release        . . 15.2
    
     DBD name           . . SMPORDP1

    IMS Database Repair Facility determines the database organization type and the access method that is associated with this database. This information determines which panel is displayed next. Typically, the Update libraries panel is displayed.

  4. In the Update libraries panel, examine the libraries and, if necessary, update the libraries. Then, press Enter.

    The library names that are displayed on the Update libraries are the names that you specified on the Setup- Specify libraries panel. If you change the library names on the Update libraries panel, the new names become the default library names for this database until you modify them again.

    Figure 3. Update libraries panel (when IMS management of ACBs is disabled)
                                     Update libraries
     Command ===>
     Press ENTER to continue, or update highlighted fields.  END to exit
    
     IMS ID                       . . IMSA              
     IMS release                  . . 15.2
     IMS management of ACBs       . . Disabled
    
     DBD name                     . . SMPORDP1
    
     IMS RESLIB                   . . IMS.IMSA.RESLIB
     Randomizer load library      . . IMS.IMSA.RESLIB                             
    
     DBD library                  . . IDL.SAMPLE.DBDLIB                           
     ACB library                  . .                                             
     Dynamic allocate library     . . IDL.SAMPLE.DYNLIB                           
        - or -
     List of DB data set names    . .                                             

    The Dynamic allocate library field and the List of DB data set names field are displayed only for a non-partitioned database. These fields are mutually exclusive; if you use one field, you must leave the other field blank.

    If the database is not contained in the dynamic allocation library, you can specify the name of a data set or a PDS member that contains a list of DD names and the data set names that are associated with the database in the List of DB data set names field. If you specify this field and press Enter, the TSO edit panel is displayed.

    If the data set or PDS member was defined and the list is in the required format, IMS Database Repair Facility displays the contents. If the format is incorrect, IMS Database Repair Facility deletes the contents and formats the data set or member. If this data set or PDS member does not exist, IMS Database Repair Facility allocates or creates it and formats it.

    In the TSO edit panel, enter or modify the data as needed. Then, press END (PF3).

    Figure 4. TSO edit panel
     EDIT        VNDMEIR.TST                                    Columns 00001 00072
     Command ===>  _______________________________________________ Scroll ===> PAGE
     ****** ***************************** Top of Data ******************************
     000001 -List of data sets associated with DBD: SMPORDP1
     000002 -
     000003 -DD name       Data set name
     000004 --------  --------------------------------------------
     000005 SMPORD1P  IDL.DB.SMPORD1P.HIDAM.OSAM
     ****** **************************** Bottom of Data ****************************
  5. The Initial selection panel is displayed. Continue with either of the following steps: