Using SHARED variables 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 MainView AutoOPERATOR

    MainView AutoOPERATOR 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.

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 RESET parameter in your BBI-SS PAS JCL. The default is NORESET. Refer to 'Cold Start of a BBI-SS PAS' in the MainView Administration Guide 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:

'IMFEXEC VDEL ALL SHARED'

CLIST example:

IMFEXEC VDEL ALL SHARED

This statement deletes all of the variables from the SHARED pool except the variables supplied by MainView AutoOPERATOR.

To display the contents of the variable pool, use the BBI control command DISPLAY VPOOL (parameters). Refer to the MainView Administration Guide for more information about the BBI control commands.

This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

Comments