Insert rules
The insert rules apply to the destination parent segments, but not to the logical child segment.
A destination parent can be a logical or physical parent. The insert rule has no meaning for the logical child segment except to satisfy the RULES= macro's coding scheme. Therefore, any insert rule (P, L, V) can be coded for a logical child. A logical child can be inserted provided:
- The insert rule of the destination parent is not violated
- The logical child being inserted does not already exist (it cannot be a duplicate)
A description of how the insert rules work for the destination parent is a follows:
- When RULES=P is specified, the destination parent can be inserted only using the physical path. This means the destination parent must exist before inserting a logical path. A concatenated segment is not needed, and the logical child is inserted by itself.
- When RULES=L is specified, the destination parent can be inserted either using the physical path or concatenated with the logical child and using the logical path. When a logical child/destination parent concatenated segment is inserted, the destination parent is inserted if it does not already exist and the I/O area key check does not fail. If the destination parent does exist, it will remain unchanged and the logical child will be connected to it.
- When RULES=V is specified, the destination parent can be inserted either using the physical path or concatenated with the logical child and using the logical path. When a logical child/destination parent concatenated segment is inserted, the destination parent is replaced if it already exists. If it does not already exist, the destination parent is inserted.