Setting TPT Operator from a variable

Tools & Utilities
Enthusiast

Setting TPT Operator from a variable

The 14.10 manual says the TPT operator can be set from a variable but does not provide the syntax.

Can anyone provide an example of the syntax?  Does this only work for defined operators or can the templates (e.g., $LOAD, $STREAM, $INSERTER) be passed in a variable also?

APPLY $INSERT TO OPERATOR ($INSERTER()) SELECT * FROM OPERATOR ($FILE_READER());

works, but these do not:

(pass Op='$INSERTER') APPLY $INSERT TO OPERATOR (@Op()) SELECT * FROM OPERATOR($FILE_READER());

(pass Op='$INSERTER()') APPLY $INSERT TO OPERATOR (@Op) SELECT * FROM OPERATOR ($FILE_READER());

Tags (1)