The %%$POOLTYPE function returns the type of pool in Control-O as defined in the list of pools to be loaded (DAGLBLST). The valid format is
%%$POOLTYPE gblvar_pname
In this format, gblvar_pname is the global variable pool name, and is mandatory.
This function returns one of the following types:
UNKNOWN — Unknown pool.
INOUT— The database is loaded and updated using the LOADGLOBAL and WRITEGLOABAL commands.
INPUT — The database can be loaded, but not written to. This type can be used for AutoEdit variables whose initial values are specified in the database and do not require check pointing. The value of each AutoEdit variable can be changed, and new AutoEdit variables can be added to the database, during the INCONTROL product session. However, these new values and variables are not saved when the product session is ended.
PROT — The database cannot be updated during the INCONTROL product session, and no new AutoEdit variables can be assigned to the database. This type can be used for a database containing AutoEdit variables that are "constants."
TEMP — The database does not reside on the disk, and therefore cannot be loaded or written to. This type is useful for a database containing AutoEdit variables that do not need to be saved after the INCONTROL product session is ended.