Viewing and updating segment data

Use the Segment Data panel to update contents of the database segment data.

Procedure

Select option D in the Segment Prefix panel to display the Segment Data panel.

The default view of this panel shows the segment data in hex (dump) format. You can change the view to show the same data in character format. The character format, which is the readable format, helps you to verify the contents of the database segment. After you determine that the segment you are viewing is the segment you want to modify, you can switch back to the hex format panel to make the change.

The first few lines on this panel provide information that identifies the database, data set, and segment. The lower part of the panel consists of the segment data. A ruler (Ofst 0...2...) helps you to read the pointers and data. The data is displayed below the ruler. You can overwrite the data if you want to repair the data. Press Enter to accept your changes.

Restriction: Keys cannot be overwritten. If you attempt to do so, a message is displayed; this message not only indicates that you attempted a prohibited operation, but it also explains where the key fields are. An example of this message is as follows:
FABZ034W: KEY FIELD STARTING AT OFFSET 32 AND ENDING AT OFFSET 3B CANNOT BE MODIFIED.
If you try to change key and data on the same line, none of the changes are applied. You must reenter the data changes after the message is displayed.
Figure 1. Segment Data panel in hex format
                                  Segment Data                     
 Option ===>                                                                        

 S Show data in characters.                                           
 Update highlighted fields, ENTER to commit changes in DB. END to exit

 DBD: SMPORDP1  DSG: 01    DBORG: HIDAM   DSORG: OSAM     Blk addr: X'2000'
 DS name: IDL.DB.SMPORD1P.HIDAM.OSAM

 SC : 01  Name: SMP00210  RBA: 00002004  >4G: N  Keyofst: 32    Keylen: 10
 Key: 0000000001

 Data offset: 0032  Length:   340  Type: Fixed

 Ofst  0.1.2.3. 4.5.6.7. 8.9.A.B. C.D.E.F.  0.1.2.3. 4.5.6.7. 8.9.A.B. C.D.E.F.
 0020                                           F0F0 F0F0F0F0 F0F0F0F1 40E3C5E2 
 0040  E340C4C1 E3C140F0 F0F0F0F1 40404040  40404040 40404040 40404040 40404040 
 0060  40404040 40404040 40404040 40404040  40404000 00000000 01008800 0E000040 
 0080  4CC9D5C6 D6D9D4C1 E3C9D6D5 6E404040  4040C7D3 D6C24040 40404040 40404040 
 00A0  40404040 40404040 40404040 40404040  40404040 40404040 40404040 40404040 
   .
   .
Figure 2. Segment Data panel in character and hex format
                                   Segment Data                    
 Option ===>                                                                        

 S Show data in hex.                                                  
 Update highlighted fields, ENTER to commit changes in DB. END to exit

 DBD: SMPORDP1  DSG: 01    DBORG: HIDAM   DSORG: OSAM     Blk addr: X'2000'
 DS name: IDL.DB.SMPORD1P.HIDAM.OSAM

 SC : 01  Name: SMP00210  RBA: 00002004  >4G: N  Keyofst: 32    Keylen: 10
 Key: 0000000001

 Data offset: 0032  Length:   340  Type: Fixed

 Ofst  0.1.2.3. 4.5.6.7. 8.9.A.B. C.D.E.F.  0.1.2.3. 4.5.6.7. 8.9.A.B. C.D.E.F.
 0020                                           0 0  0 0 0 0  0 0 0 1    T E S  
                                                F0F0 F0F0F0F0 F0F0F0F1 40E3C5E2
 0040  T   D A  T A   0  0 0 0 1                                                
       E340C4C1 E3C140F0 F0F0F0F1 40404040  40404040 40404040 40404040 40404040
 0060                                                             H             
       40404040 40404040 40404040 40404040  40404000 00000000 01008800 0E000040
 0080  < I N F  O R M A  T I O N  >             G L  O B                        
       4CC9D5C6 D6D9D4C1 E3C9D6D5 6E404040  4040C7D3 D6C24040 40404040 40404040
 00A0                                                                           
       40404040 40404040 40404040 40404040  40404040 40404040 40404040 40404040
  .
  .

This panel contains the following fields:

Option
Enter an S to switch between the hex-only format and character and hex formats.
DBD
The name of the database, or for a partitioned database, the name of the partition.
DSG
The data set group number or, for a DEDB, the area number.
DBORG
The database organization type.
DSORG
The organization type of the data set.
Blk addr or CI addr
The address of the block or control interval.
DS name
The name of the data set.
SC
The segment code.
Name
The segment name.
RBA
The relative byte address of the segment.
>4G
N
Indicates that the segment is in the first 4 GB of the database.
Y
Indicates that the segment is in the second 4 GB of an OSAM database.
Keyofst
The offset of the key that is used to access the segment.
Keylen
The key length.
Key
The key that is used to access the segment.
Offset
The offset of the data from the beginning of the segment.
Length
The length of the displayed data.
Type
The data type, which can be one of the following types:
  • Fixed
  • Variable
  • Variable split

What to do next

Use PF3 to return to previous menus.
Important: Be sure to run the Pointer Checker utility after you change data or pointers. If errors are found, restart IMS Database Repair Facility and immediately select option 3. Undo changes from the Main menu. The changes that you made are recorded in the Undo file until you select option 2. View/Update database the next time.