<OUTPUT>
The <OUTPUT> command sets which output or outputs Enrichment will send a document to.
The <OUTPUT> command syntax is as follows:
<OUTPUT> name
where name is the name of an Output group in which to place the document. For example:
DOCUMENT:
IF %%varname = 9 THEN
<OUTPUT> output1
ELSE
<OUTPUT>output2
<OUTPUT>output3
ENDIF
You can place the same document in multiple output files using multiple <OUTPUT> commands. You can also place multiple copies of a document in a single output by using multiple <OUTPUT> commands with the same output name.
You can specify <OUTPUT> NONE to discard documents.
The <OUTPUT> command has a slightly different function depending on which section of the rule file you use it in. The table below explains how to use the <OUTPUT> command in each rule file section.
Rule File Section | <OUTPUT> Command |
---|---|
START | <OUTPUT> defines the output where a banner or banners will go. For example:
The example above would place banner |
DOCUMENT | <OUTPUT> is normally set in the DOCUMENT section to route the current document to one or more outputs. |
PAGE | <OUTPUT> NONE can be used to discard pages. |
PRESORTED | <OUTPUT> changes the output (for example, you can use it to reroute residual mail to another output). |
FINISH | <OUTPUT> defines the output where a banner or banners will go. For example:
The example above would place banner You can also use <OUTPUT> to reference output-specific system variables. For example:
The example above would write two different total page numbers, the first for |