PARENT primary command

The PARENT primary command changes your position in the database from the current segment to any other segment occurrence in the hierarchical path to the current segment.

Syntax


1 PARent ?segment-name
segment-name
The name of the segment type you want to position on. The segment type must be a parent of the current segment type but it does not have to be an immediate parent.

When segment-name is not specified, the PARENT command positions on the immediate parent of the current segment.

When the PARENT command is issued and the current segment is a root segment, FM/IMS displays a message and does not change the current segment position.

Availability

Related tasks and examples

ROOT primary command