When autoinstalled APPC connections are deleted
Any autoinstalled APPC connection entry is deleted if the connection is discarded
(using the CEMT DISCARD command). In addition, connection entries can be
deleted when the terminal or system logs off, or is disconnected from CICS. This
kind of “implicit deletion” occurs for the following types of APPC autoinstalled
connection:

Single-session connections installed via a CINIT

These are deleted when the terminal user logs off, after the expiry of the AILDELAY
system initialization value.

Synclevel 1 connections installed via a BIND

Synclevel 1-only APPC connections autoinstalled via a BIND request (
except
for
limited resource connections installed on a CICS generic resource member—see
next section) are implicitly deleted at the following times:
vWhen the connection is released
vIf VTAM abends
vWhen the VTAMACB is closed by CICS
vAfter the expiry of the AIRDELAYinterval following a warm or emergency start (if
the value of the AIRDELAYsystem initialization parameter is greater than zero).

Synclevel 2 connections installed via a BIND

Synclevel 2-capable APPC connections installed by a BIND request are implicitly
deleted
only
if they are installed on a CICS generic resource member, and an
affinity is ended. Otherwise, they are never implicitly deleted.
The same applies to synclevel 1-only, limited resource connections that are installed
on a CICS generic resource member.
The sample autoinstall control program for APPC connections
The sample control program for autoinstall of APPC connections is DFHZATDY. The
source code, in assembler-language only, is in library CICSTS13.CICS.SDFHSAMP.
As well as providing function to autoinstall APPC connections initiated by BIND
requests, DFHZATDYprovides the same function for terminal autoinstall as the
DFHZATDX program described in “Chapter10. Writing a program to control
autoinstall of terminals” on page485. Thus, you can use a customized version of
DFHZATDYto autoinstall both terminals and APPC connections.
Default actions of the sample program
The role of DFHZATDYin installing APPC connections is to choose the template to
be used (by supplying its NETNAME or SYSID), and to supply the name (SYSID) of
the new connection.

autoinstall control program at DELETE

520 CICS TS for OS/390: CICS Customization Guide