Many Unibase clients utilize Macro Procedures and Keystroke Macros to automate their repetitive work flow processes. A DMAC client came up with a need for using data stored in some global variables of a group of batches used by an operator. So DMAC added a new Keystroke Macro variable.
Keystroke Macros are enhanced with a new op_code of ‘GV’. ‘GV’ stands for Global Variable. In the keystroke Macro the next two characters have to be the number of the global variable. Global variables range from $var00 to $var99.
The processing of the ‘GV’ variable allows the work flow process to ask the current operator’s process for information from a global variable in that process; perhaps the name of a file to be output.
This request would be in the Macro Procedure that will call the Keystroke Macro. The global variable has to be of type alphanumeric, NOT NUMERIC. Then, when the keystroke macro encounters the GV op_code, Unibase uses the characters stored in the specified global variable and processes them as if those characters were stored in the keystroke macro.
When all the characters in the global variable have been processed, Unibase picks up executing the op_code char combinations in the remainder of the keystroke macro.
