Was this helpful?
Sometimes text strings must be passed through the macro processor without being processed. In such cases the grave accent mark and apostrophe (' and ') must surround the literal text. For example, to pass the word ret through without converting it to retrieve type:
If you want to enter more than one word for substitution into a macro parameter, you must quote the parameter. For example, if you define a macro:
{define; r $1 $2; retrieve ($1) where $2}
and invoke it with the query:
r 'p.name, weight = p.qoh*p.stk' 'p.cnt10'
the query is evaluated as:
retrieve (p.name, weight = p.qoh*p.stk) where p.cnt10
Last modified date: 06/08/2023