Change spooled file mappings

Change spooled file mappings

After you have mapped spooled file contents in either the designer or the workflow, then you might later want to change the mapping and e.g. select some other positions in the spooled file.

 

This section describes a tip of how you can see the currently mapped area in the spooled file - even if the mapped area is used in another Xpath function.

 

Lets us consider a simple spooled file mapping like the one below:

 

NG2ChgSplfMap0001

 

This template runs through all the pages in the input spooled file and prints the text found in line 6, positions 8 to 49. If you open the text element and then click the magnifying glass:

 

NG2ChgSplfMap0002

 

Then you can see the mapped text in a blue frame:

 

NG2ChgSplfMap0003

 

Here we can change to a different selection of line and positions with the mouse.

 

If we instead use any Xpath function, which use the spooled file data as an argument, then you will normally not see the blue frame in the spooled file view.

 

If we e.g. use the ng:trim() function to remove any leading and trailing blanks like below:

 

NG2ChgSplfMap0004

 

Then the selected spooled file area might no longer highlighted in the spooled file view (shown with the magnifying glass):

 

NG2ChgSplfMap0005

 

If you now go back to the text properties you can now select the exact spooled file reference, that you want to mark out (with the blue frame) by placing the cursor anywhere inside the function - in the example above it is the substring function:

 

NG2ChgSplfMap0006

 

and then the spooled file reference is now again marked with the blue frame, where you can e.g. drag the edges or the complete frame to select the spooled file data, that you want to remap:

 

NG2ChgSplfMap0003

 

The advantage with this is, that if you e.g. refer to multiple areas in the spooled file e.g. with a concat like so:

 

NG2ChgSplfMap0007

 

Now you can click on either the first or the second substring command to choose which one you want to highlight in the spooled file view.

    Notice: Help Center Transition Update

    As of January 13, 2025, we are excited to announce that our new Help Center is in the final stages of development. While the Knowledge Base is already accessible, our current JIRA system will continue to manage support tickets during this transition period. For assistance with InterForm Output Management Software, please refer to the Support for InterForm Output Management Software.

    We appreciate your patience and understanding as we work to enhance your support experience. If you have any questions or encounter any issues, please do not hesitate to reach out via the existing support channels.

    Best regards,
    The InterForm Support Team


      • Related Articles

      • 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 ...
      • Change attributes of spooled file

        As a part of spooled file processing in InterFormNG2 on the IBM i platform, you might want to change one or more spooled file attributes of the input spooled file to let the end user know, that the specific spooled file has been successfully ...
      • Change page breaks of a spooled file

        When you merge an input spooled file with a template in InterFormNG2 e.g. for PDF or print output, then you normally want the same page breaks in the output as in the original input spooled file. You are however not necessarily limited by that and ...
      • Splf extractor: Overlapping mappings

        Mappings always refer to the contents of the spooled file and when you want to create a new mapping, then you start out by selecting the upper left corner of the area, that you want to map. So it is a bit of a challenge, if you want to create two ...
      • 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 ...