Logical replace rule example

The following figure and the code that follows the figure show a logical replace rule example.

Figure 1. Logical replace rule example
Root: CUSTOMER (RULES=(--L)). Child is BORROW (RULES=any). Logical relationship between BORROW (LC) and LOANS (LP, RULES=(--L)). LOANS has LC named CUST (RULES=any).
Figure 2. Calls and status codes for logical replace rule example
GHU 'CUSTOMER'
    'BORROW/LOANS'  STATUS CODE='  '
REPL                STATUS CODE='  '

As shown in the preceding figure, the L replace rule prevents replacing the LOANS segment as part of a concatenated segment. Replacement must be done using the segment's physical path. However, the status code returned is blank. The BORROW segment, accessed by its physical path, is replaced. Because the logical child is accessed by its physical path, it does not matter which replace rule is selected.

The L replace rule allows replacing only the logical child half of the concatenation, and the return of a blank status code.