You can create global variables for the current work session. These are known as user-defined variables. These variables are lost when you close QMF for Windows because the variables are session variables.
Follow these steps to retain user-defined global variables:
HKEY_CURRENT_USER\SOFTWARE\IBM\RDBI\Options
The user-defined variables will be retained between sessions.
After you update the registry, the global variables that you create will be stored in the Windows Registry and will be kept from one instance to another.
You can add your own global variables manually or during a procedure.
Also, you cannot change the value of a global variable with a DSQAO prefix.