K (Key)

Using the K line command you can change your current position in the database to another segment occurrence.

FM/IMS displays the Key Specification panel where you can enter key values for each segment in the hierarchical path to the segment where the K line was entered. The Key Specification panel is initialized with the key values for the segments in the hierarchical path.

You can only reposition on another occurrence of the same segment type as the segment where the K command was entered.

After the Key Specification panel is processed, FM/IMS redisplays the IMS Data panel, positioned on the segment which matches the concatenated key entered on the Key Specification panel.