Insert Root Segment panel

In an Edit session, FM/IMS displays the Insert Root Segment panel when you enter one of the following commands on the IMS Data panel:
  • The REPEAT primary command, and the current segment is a root segment.
  • The INSERT primary command, and the root segment is either specified in the INSERT primary command or selected on the Insert : Segment Selection panel.
  • The I, R, or RA line command against a root segment.
You use this panel to:
  • Insert a root segment (if it is invoked by the REPEAT or INSERT primary commands, or the I or R line commands).
  • Insert a root segment and then duplicate all the dependent segments of the current segment under this new occurrence (if it is invoked by the REPEAT ALL primary command).
  • Insert a root segment and then duplicate, under this new occurrence, all the dependent segments of the segment against which the line command was issued (if it is invoked by the RA line command).

Panel and field definitions

Figure 1.  
  Process   Options   Help
 ───────────────────────────────────────────────────────────────────────────────
 FM/IMS                       Insert Root Segment
 Database DJ1E     Segment  SHIRE                            Insert Format SNGL
 -------------------------------------------------------------------------------
 Data                                                Top Field is 1    of 11
 Ref  Field           Typ Start   Len   Data
   1  1 SHIRE-TOWN    AN      1    53
   2   2 SHIRE-KEY    AN      1    20 K
   3    3 SHIRE-NAME  AN      1    20 K
   4   2 SHIRE-TYPE   AN     21     1
   5   2 SHIRE-CODE1  ZD     22     3   0
   6   2 SHIRE-CODE2  ZD     25     5   0
   7   2 SHIRE-YEAR   BI     30     2    0
   8   2 SHIRE-BRICK  PD     32     8    0
   9   2 SHIRE-WOODEN PD     40     8    0
  10   2 SHIRE-SCHOOL PD     48     4    0
  11   2 SHIRE-GOLF   BI     52     2    0
 ****  End of record  ****


 Command ===>                                                       Scroll PAGE
  F1=Help      F3=Exit      F4=CRetriev  F5=RFind     F6=RChange   F7=Up
  F8=Down      F9=Swap     F12=Cancel

The panel has a Header area and a Data area.

Header area
These details are displayed in the Header area:
Database
The name of the database you are editing.
Segment
The name of the root segment, followed by the segment description (when available).
Insert Format
The display format for the Data area.

FM/IMS supports four display formats: CHAR, HEX, LHEX, and SNGL. SNGL is only supported when you are using a view.

The Insert Format used when the panel is first displayed depends on the current display format of the IMS Data panel.

When the current display format is CHAR, HEX, LHEX or SNGL, the Insert Format is set to the current display format.

When the current display format is TABL, the Insert Format is set to SNGL.

To change the display format of the Data area, update this field.

Data area
In the Data area, you specify the key and the data of the root segment you are inserting.

This is a scrollable area. To scroll it, issue the UP (F7) or DOWN (F8) commands.

The key and the data that is initially displayed in this area depends on the command used to invoke this panel:

  • When the REPEAT primary command is used, the key and data of the current segment is displayed.
  • When the R or RA line command is used, the key and data of the segment that the line command is entered against is displayed.
  • When the INSERT primary command or the I line command is used, the initial display depends on whether or not you are using a view:
    • When you are not using a view, the key and the data is initialized to spaces.
    • When you are using a view, FM/IMS uses a segment layout when initializing the area. Numeric fields in the layout are set to zero and nonnumeric fields are set to spaces.

    For the I line command, FM/IMS uses the layout of the segment occurrence that the line command is entered against.

    For the INSERT primary command, FM/IMS uses the layout of the selected segment type or, if the segment type has multiple layouts, the selected segment layout.

When you have specified the key and data of the root segment you are inserting, press the Exit function key (F3) to insert the segment and return to the IMS Data panel.

To return to the IMS Data panel without inserting a segment, press the Cancel function key (F12).

Parent panels

Child panels

  • None.