Virtual replace rule example

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

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

As shown in the code above, the V replace rule allows replacing the CUSTOMER segment using its logical path as part of a concatenated segment.