Was this helpful?
Macro Evaluation
When you write a {define} statement, it is not processed immediately; macro processing occurs when the query buffer is evaluated.
The Terminal Monitor commands \go, \list, and \eval evaluate the workspace. You can use the \eval and \list commands to test a macro invocation before executing it explicitly with the \go command.
For example, to test the "get" macro, type:
{define;get;SELECT}\eval
get * FROM iitables\list
The Terminal Monitor types:
SELECT * from iitable
The statement is not executed.
To execute the "get" statement, type:
{define;get;SELECT}\eval
get * FROM iitables\go
\reset
The \reset command assures that the workspace is cleared before the next query is entered.
Last modified date: 08/29/2024