RESPOND Statement

The RESPOND statement is used to enable a program to issue a positive or negative response to an offer for subfile dialog establishment or a request for orderly termination. Networks that support this function can be found in the I/O Subsystem Programming Guide. The program is notified of requests for dialog establishment or termination through the CHANGEEVENT and FILESTATE attributes.

<respond statement>

── RESPOND ── ( ──<respond file part>── , ──<respond options>── ) ─────┤

<respond file part>

──<file designator>─┬──────────────────────────────────┬───────────────┤
                    └─ [SUBFILE ──<subfile index>── ] ─┘

<respond options>

──<respondtype option>─┬──────────────────────────────┬────────────────┤
                       └─ , ──<associateddata option>─┘

<respondtype option>

── RESPONDTYPE ── = ─┬─ ACCEPTOPEN ──┬─────────────────────────────────┤
                     ├─ REJECTOPEN ──┤
                     └─ ACCEPTCLOSE ─┘

The RESPOND statement can be used only when the KIND of the file designator is PORT and only when the SERVICE file attribute is set to a network type that supports this feature.