Adding global variables in procedures
Follow these steps to add a global variable in a procedure:
- Create or open a procedure.
- Add global information to the procedure such as:
SET GLOBAL(MY_GLOBAL=20
- Optional: Add multiple variables, such
as:
- With a string of variables:
SET GLOBAL(MY_GLOBAL=2,START_DATE=&DATE,DEPARTMENT=&DEPT
- With a list of each variable that uses the SET GLOBAL command
only for the first line:
SET GLOBAL(MY_GLOBAL=2,
+START_DATE=&DATE,
+DEPARTMENT=&DEPT
- Type the following command as the last line in the procedure:
RESET GLOBAL ALL
Editing a global variable
Click Edit to change the name or
value of a user-defined global variable.
Deleting a global variable
Click Delete to remove a user-defined
global variable.
