Remove original underline handling in spooled files

Remove original underline handling in spooled files

Input spooled files in InterformNG2 are always converted into a simple text representation, where one line represents a input spooled file line. This also includes multiple spooled file lines found in the spooled file, that are using overlapping (with 0 as the line in the left margin if you e.g. copy the spooled file into a file with the CPYSPLF command with the parameter: CTLCHAR(*PRTCTL)).

This overlapping is e.g. used in *SCS spooled files for creating a bold print out, but it is also used in combination with the underline character in order to underline a text or simply to insert a horizontal line.

When the underline is used for underlining a text, then InterformNG2 needs to decide, if you really need this underline or not. For the original underline support InterformNG2 will remove the underlines of a spooled file, if the underline seems wrong, but if you do want the underlines of the input spooled files (even though InterformNG2 thinks, that they should be left out), then you can with a special data area decide if you want the original underline handling or if you do want all the underlines to be included in the output.

The choice is setup with a data area called RMVUNDERLN in library IFORMNG2, which was introduced in version 4.0.2. This version was re-released, so if you are unable to find this data area, then you will with need to download the newest version from the Interform home page (www.interform400.com).

You can verify if the data area exists with this command:
WRKOBJ OBJ(IFORMNG2/RMVUNDERLN) OBJTYPE(*DTAARA)
If you can see this data area, then you need to change the value into 'Y', which will change the support for underline characters in the input spooled file, so that the underline characters of the spooled files are now included in the .splf file, that you can work with in InterformNG2.

You can change the value into 'Y' with this command:
CHGDTAARA DTAARA(IFORMNG2/RMVUNDERLN) VALUE('Y')
You can disable the option, if you change the data area into 'N' e.g. with this command:
CHGDTAARA DTAARA(IFORMNG2/RMVUNDERLN) VALUE('N')