Adding Inserts with Dynamic File Names
The following diagram illustrates appending an insert. Because the insert value is a variable, Enrichment can specify the file name dynamically, which can greatly reduce the size of your rule file.

Do the following to append documents in this manner:
Note: If you are adding insert records, replace references to Insertpage and <INSERTPAGE> in this process with Insertrec and <INSERTREC>.
- Create the supplemental inserts and save them.
- In the control file, use one set of Insertpage group tags to identify each type of insert you might use while processing the application. The <INSERTPAGE> command indicates to Enrichment how to process these documents, regardless of which document is actually being added.
- Use the <INSERTPAGE> tag to specify the name of a variable, such as %%form, whose value is the name of the file to add. The name should be unique for each <INSERTPAGE> tag.
- Set the variable you specified in step 3 to the name of the insert file to add.
- Use <APPEND> commands in the rule file to designate which inserts to add and where to add them. The order in which Enrichment executes the <APPEND> commands in the rule file determines the order in which it assembles the documents.
You can use this process to add documents to existing print streams or for document assembly, as shown below.
