Spooled file formats

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 2.0 format:

 

1.The spooled files are in version 2.0 stored in UTF-8, where the version 1.0 is using Base64. This makes a better performance, when you process spooled files in version 2.0, when you compare to version 1.0.

2.Each spooled file line has a separate node in version 2.0, where each complete page is stored in a separate node in version 1.0. Because of this it is easier to handle the detail lines in version 2.0 (with a simple repeat loop) compared to the setup for version 1.0, where you will need to introduce a variable and keep track of the current spooled file line with that.

 

The disadvantages with version 2.0 are:

 

1.The spooled file extractor only supports spooled files in the version 1.0 format - not version 2.0

2.The size of the internal .splf format is slightly larger for the version 2.0 format compared to version 1.0.

 

Please note, that your templates are built differently dependent on the spooled file format used. That means, that if you have an existing template, that has been built for spooled files in the version 1.0 format, then you cannot use the same template for a spooled file in the version 2.0 format without changing the template.

 

The spooled files are internally stored as XML (and normally you will not see this), and below you can see the difference between the two formats as they are used e.g. when you save a spooled file as a .splf file:

 

Here is a sample spooled file:

 

NG2SplfFormat0001

 

In version 1.0 the spooled file is stored in this way:

 

NG2SplfFormat0002

(The rightmost part is cut off)

Here you can see, that the first part contains some spooled file attributes followed by a page node for each page in the spooled file.

 

In version 2.0 the same spooled file is stored like this:

 

NG2SplfFormat0003

 

As you can see each spooled file line has its own line node.

    • Related Articles

    • Spooled file support

      InterFormNG2 is able to process spooled files, if you install InterFormNG2 on the IBM i platform. Please notice, that spooled file support, as well as Spool2XML, are modules for InterFormNG2, that are purchased separately. You can also use the ...
    • Transform a spooled file into XML

      InterFormNG2 can help you to transform a spooled file into XML. In order to do that you first need to load the spooled file in the library in the version 2 format. Next you need to setup a transformation of the spooled file in the designer. This will ...
    • Change spooled file attributes

      As a part of the processing of an input spooled file in the workflow, you might want to change one or more spooled file attributes e.g. to inform the end users, that the input spooled file has been processed successfully in InterFormNG2. To change ...
    • Spooled file actions

      As a part of spooled file processing in InterFormNG2 on the IBM i platform, you might want to delete, hold or move the input spooled file to let the end user know, that the specific spooled file has been successfully processed. You can also change a ...
    • Post-process spooled file

      As a part of spooled file processing in InterFormNG2 on the IBM i platform, you might want to delete, hold or move the input spooled file to let the end user know, that the specific spooled file has been successfully processed. You can also change a ...