TERMSESS OPTCD=TERMQ is used to terminate a queued session or pending
active session in which the application program is acting as the SLU.
For example, if REQSESS has been issued and completed successfully,
but the subsequent BIND has not been received, OPTCD=TERMQ could be
used to terminate this session. When this OPTCD code is used a name
must be provided via the NIB. All sessions that match this name pair
and are queued or pending active will be terminated. Active sessions
are not affected.
Note: - The SLU application program that issues TERMSESS OPTCD=UNBIND
must process the RTNCD, FDB2, and possibly sense information in the
RPL to determine if it can discard its representation of the session,
or perform some other process (retry the TERMSESS, ABEND, or issues
other appropriate macroinstruction).
- If the SLU application program issues TERMSESS in lieu of SESSIONC
to reject a pending active session (BIND received, BIND response not
sent), then OPTCD=UNBIND must be used.
- If you are using OPTCD=UNBIND with the TERMSESS macroinstruction,
you must specify the CID address in either the ARG or NIB operand.
The NIBCID field is only used if PARSESS=YES is coded on the APPL
definition statement. If you use the NIB operand, NAME cannot be used.
- The PLU can examine the SON code and the SENSE information on
the UNBIND only if it has an SCIP exit and if SONSCIP=YES is specified
on its APPL definition statement.
- The SCIP exit routine is strongly recommended.