z/OS Communications Server: SNA Programmer's LU 6.2 Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Application termination

z/OS Communications Server: SNA Programmer's LU 6.2 Guide
SC27-3669-00

There is a field in the RPL extension called RPL6LAST. This field is completed by APPC/VTAM when it schedules the ATTN(LOSS) exit. RPL6LAST is a 2–bit field that indicates whether the session being terminated is:
  • Not the last session to this LU for this particular modename. (Other sessions remain active for this modename.)
  • The last session to this LU for this particular modename.
  • The last session to this LU for all non-control mode modenames. (SNASVCMG and CPSVCMG are control modes).
  • The last session to this LU for all modenames.

The safest way to terminate an application is to perform the following tasks:

  1. Issue an APPCCMD (DEFINE) to set session limits to 0 for all modes. This stops a CNOS from the partner from starting sessions successfully.
  2. Issue an APPCCMD (CNOS, ALL) to set session limits to 0 for all non-control mode modenames.
  3. When RPL6LAST indicates all non-control mode sessions are ended, issue an APPCCMD (CNOS) to set SNASVCMG session limits to 0.
  4. Repeat these steps for all partner LUs.
  5. When RPL6LAST indicates all sessions are ended for all LUs, CLOSE the ACB.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014