Sharing variables among dialogs
The shared pool allows dialog functions and selection panels to share access to dialog variables.
The SELECT service creates shared pools when it processes the ISPSTART or ISPF command, and when you specify the NEWAPPL or NEWPOOL keywords with the SELECT service. When SELECT returns, it deletes the shared pool and reinstates any previous shared pool.
A function can copy dialog variables from its function pool to the shared pool by using the VPUT service. In addition, another function can directly copy these variables to its function pool by means of the VGET service. Because a panel displayed by the SELECT service does not belong to any function, any dialog variables used in the panel are read from and stored into the shared or profile pool.