Introduction to the Spooled file extractor

Introduction to the Spooled file extractor

IMPORTANT: The spooled file extractor is no longer supported. Any spooled file extractor definitions, that has previously been designed can still be used in the workflow, but they cannot be edited.

The better alternative is to use the designer for transformation.

 

When you refer to the contents of a spooled file either in the designer or in the workflow, then you can refer to the contents in two different manners:

 

Direct spooled file references

You can use the ng:spoolMap and the ng:spoolMapCond functions to extract and map the spooled file contents directly. The latter even supports conditions to only map specific spooled file lines.

 

Spooled file extractor

The alternative is to use the XML extractor for spooled files. This can help you to extract the contents of the spooled file and present it as an XML file instead. This is covered below.

 

The advantage with the extractor is, that you can format the data of the spooled file and identify the various fields before you start the design process. This makes it e.g. much easier to scan detail lines for various layouts.

 

Please note, that the spooled file extractor only supports the legacy format (version 1.0) of the spooled file. Spooled files in version 2.0 are not supported in the spooled file extractor, but for those the spooled file extractor is also not required as the format is much easier to handle in the designer.

 

You cannot combine the two in the same template.

 

These sections describes how to use the spooled file extractor:

 

1.Create a spooled file extractor. This describes how to create a new spooled file extractor and also how to open an existing extractor.

2.Splf extractor: Simple mapping. This is an introduction to simple mappings of the spooled file data. This also includes examples of simple repeats both vertical and horizontal.

3.Splf extractor: Delete a mapping. Description of how to delete a mapping. It is recommended to save the extractor before you delete a mapping.

4.Splf extractor: Conditioned mappings. This section introduce conditions. In order to setup a condition, you might need to setup a token first.

5.Splf extractor: Tokens. Tokens are texts, text types or expressions, that can be used for comparisons in conditions. There are several predefined tokens, and you can create your own tokens.

6.Splf extractor: Overlapping mappings. Describes how you can define and edit overlapping mappings e.g. to handle multiple page layouts.

7.Splf extractor: Expandable parent. Shows how to make a parent node expand to include all detail lines.

8.Splf extractor: How to save. How to save a spooled file extractor.

9.Splf extractor: How to use it in the workflow.


    • Related Articles

    • Create a spooled file extractor

      You can create a new spooled file extractor in the InterFormNG2 designer, if you first load a spooled file (.splf) from the Library. Then the designer will look like this: Here you can choose to open an existing Spooled file extractor with the icon, ...
    • Introduction to the designer

      This section contains an introduction to the InterFormNG2 designer. First you of course need to start the designer. You probably need to load some resources e.g. input files, images, fonts etc. That is loaded via the Library. Now you can either ...
    • Spooled file formats

      Whenever you load or process spooled files in InterFormNG2, then you can choose between two internal formats: Version 1.0 and version 2.0. It is recommended to use Version 2.0 if at all possible. These are the reasons why you should use the version ...
    • Splf extractor: How to save

      When you created a new spooled file extractor or edited an existing one via the editor, then the save icon in the top becomes blue, which indicates, that the definition has been changed. To save the current spooled file extractor you simply click on ...
    • Splf extractor: Simple mapping

      The spooled file extractor selects data from all the pages of the spooled file. The output XML file is a file with a node for each spooled file page, so it is very each to see from which spooled file page the XML data was extracted. First you need of ...