Copy management for spooled files
This section covers the scenarios, where you want to output multiple copies of each output page in the sequence where page 1 is output multiple times, followed by page 2 multiple times etc.
For this example we have this simple template, which output the spooled file data of all the pages:
(This outputs position 1 to 76 in line 1 to 32)
In this case we want two copies of each page like described above. The first copy is to contain the text 'Original' and the second copy is to contain the text 'Copy'.
This can be implemented like below:
In the example above the number of copies is set as a fixed value in the template, but this value can of course also be set by retrieving a value from the input file or even dynamically retrieving a value from the current page to make it variable from page to page.
The number of copies can also be set via a workflow variable and in that way the workflow can also dynamically decide how many copies the template should generate.
Related Articles
Spooled files in the workflow
This section covers all topics concerning automatic processing of spooled files in the InterFormNG2 workflow: How to monitor an output queue. Load a sample spooled file in the workflow editor Convert a variable CPI spooled file How to condition the ...
Process spooled files with variable CPI attribute
Normal spooled files can be loaded and processed directly in InterFormNG2, but there is one deviation from this and this concerns spooled files where the attribute, Variable CPI is Y. You can identify such spooled files if you select option ...
Map spooled files in the designer
You can map spooled file data in the designer, after you have loaded a spooled file. Mapping is done with the either ng:spoolMap or the ng:spoolMapRel built-in functions. This section covers this: How to view the spooled file contents Spooled file ...
SPLF (spooled files)
Spooled files (splf) is one of the file types/payloads, that can be handled by the InterFormNG2 workflow. This is only relevant to the IBM i platform. The support for spooled file is covered here.
Spooled files in the designer
You can process spooled files in InterFormNG2, if you have installed InterFormNG2 on the IBM i platform. The spooled file actions related to the designer are: How to load a spooled file in the designer. How to map spooled file data in the designer. ...