VTAM® supports the following
two classes of USERVARs:
- User-managed USERVAR
- Automatic (or VTAM-managed) USERVAR
- User-managed USERVAR
- This class is explicitly set using the MODIFY USERVAR operator
command. The MODIFY USERVAR command can be issued either manually
by a human operator or automatically by a NetView® command list or a VTAM application program (as is done by IMS™ or CICS® for XRF).
VTAM does not attempt to change the value of a USERVAR that has been
set explicitly using the MODIFY USERVAR operator command, so existing
command lists and procedures for propagating USERVAR changes across
domains in a network should continue to work as is. However, a MODIFY
USERVAR command can be used to delete a user-managed USERVAR to subsequently
allow that USERVAR name to be managed by VTAM.
At least one host in the network
must have a user-managed USERVAR from which other hosts can obtain
the USERVAR value and type. In XRF situations, IMS and CICS both set the USERVAR value at the site of the XRF active application
program.
Notes: - For XRF application programs, VTAM deletes user-managed USERVARs when the application program
terminates or enters a specific state, such as CONCT or INACT.
- In a subarea-only network, the user-managed USERVAR can be defined
on the VTAM that owns the real
destination resource, on the VTAM where the session originates, or on any VTAM along the session path. However, because
there might be attempts from many different VTAMs to establish sessions
with the destination resource using the USERVAR name, the best results
are achieved when the user-managed USERVAR is defined on the VTAM that owns the real resource,
or on a VTAM that is as close
to the owning VTAM as possible.
- In an APPN network, or in a mixed APPN and subarea network, the
location of the user-managed USERVAR is more restrictive than in other
networks. If the real resource resides on a VTAM end node (EN), a network node (NN), or
a migration data host (MDH), the user-managed USERVAR must be defined
on that VTAM (the owning VTAM). Therefore, when the real
resource is on an EN, define the USERVAR on the EN but do not define
it on its network node server (NNS). If the real resource resides
on an interchange node (ICN), or on a VTAM located in or through a subarea network attached to an
ICN, the user-managed USERVAR must be defined on the ICN or on one
of the VTAMs along the subarea portion of the session path.
When
the MODIFY USERVAR command is issued on an EN, the USERVAR name is
registered to the NNS of the EN unless the value UVEXIT=NO is coded
(or is the default value) and the real resource name is either a dynamic
CDRSC or is not defined.
- Automatic (or VTAM-managed) USERVAR
- This class is created automatically by VTAM in one domain as a copy of
a user-managed USERVAR of the same name in another domain. You do
not have to do anything to allow VTAM to create automatic USERVARs. When a VTAM SSCP sends a cross-domain session-initiation
request to another domain and receives a reply indicating that the
name specified in the original session request is really a USERVAR
with a particular value and not the name of a logical unit, the SSCP
creates an automatic (VTAM-managed) USERVAR to save the information.
The cross-domain session request is then resent using the real LU
name, which was passed back in the original reply.