The MERGE Statement

If the MERGE statement appears in a section that is not in an independent segment, then any output procedure referenced by that MERGE statement must appear:

If a MERGE statement appears in an independent segment, then any output procedure referenced by that MERGE statement must be contained: