DB2 graphic  QMF Version 8

Creating, changing, and deleting global variables using commands

You can set and delete global variables from the QMF command line by using these commands:

SET GLOBAL
Lets you create or change up to ten global variables

For example, to set a new global variable JOBTYPE with the value SECRETARY, enter the following command on the QMF command line:

SET GLOBAL (JOBTYPE='SECRETARY'

In QMF Version 7.2, the SET GLOBAL command has been modified. It now can copy from another global value:

SET GLOBAL(Variablename = &Variablename

If you use linear syntax for the SET GLOBAL command, the maximum length of the value is 55 characters. If you use the extended syntax for this command, the maximum length is 32,768 characters. For more information on the extended syntax of the SET GLOBAL command, see Developing DB2 QMF Applications.

RESET GLOBAL
Lets you delete some or all of your global variables- to delete a global variable, enter:
RESET GLOBAL (JOBTYPE
To delete all the global variables you created, enter:
RESET GLOBAL ALL

For full command syntax and other specific information on using QMF commands on global variables, see DB2 QMF Reference.


Go to the previous page Go to the next page

Downloads | Library | Support | Support Policy | Terms of use | Feedback
Copyright IBM Corporation 1982,2004 Copyright IBM Corporation 1982, 2004
timestamp Last updated: March, 2004