SHARED variables usage and pools
SHARED variables are a pool of GLOBAL variables maintained in CSA.
Variables in this pool are
Created by a user who uses the IMFEXEC VPUT statement in an EXEC
REXX EXEC example:
N=1 /* creates a TSO variable in TSO pool*/
'IMFEXEC VPUT N SHARED' /* IMFEXEC VPUT cmd places variable in SHARED
pool*/CLIST example:
SET &N=1 /* SET command creates a TSO variable in TSO pool*/
IMFEXEC VPUT N SHARED/* IMFEXEC VPUT cmd places variable in SHARED pool*/These examples store variables from the TSO pool to the SHARED pool.
Supplied by BMC AMI Ops Automation
BMC AMI OpsA supplies a set of read-only SHARED variables that begin with the prefix Q.
If you create your own new variables, do not use a prefix of Q.
BMC AMI OpsA also supplies SHARED variables that represent MVS system symbols
These SHARED variables begin with the prefix QMSYM. Updating or reloading the MVS system symbols will automatically refresh the QMSYM SHARED variables
For example, the SHARED variable for the MVS system symbol &SYSCLONE. is &QMSYM_SYSCLONE. In this example, the SHARED variable drops the ampersand (&) and the period (.) of &SYSCLONE.
Another example is where the SHARED variable for system symbol &VAR1 which is &QMSYM_var1.
If a BBI-SS PAS warm start is performed
The SHARED variable pool is kept, and all variables have the same values as before the warm start.
If a BBI-SS PAS cold start is performed
The SHARED pool will be reset only if you specify the VPOOL=RESET parameter in your BBI-SS PAS JCL. The default is NORESET. See "Cold Start of a BBI-SS PAS" in Administering for more information on resetting the variable pool at BBI-SS PAS cold start.
You can also reset the pool by issuing the following statement in an EXEC:
REXX EXEC example:
CLIST example:
This statement deletes all of the variables from the SHARED pool except the read-only variables supplied by BMC AMI OpsA. You can also delete SHARED variables using the BBI control command:
.DEL V <variableName>
To display the contents of the variable pool, use the BBI control command .DISPLAY VPOOL (parameters). See BBI control commands.
This section contains the following topics:
Related topic