Please enable JavaScript to view this site.

InterFormNG Manual 2020

Navigation: Modules for InterFormNG > Spool2XML > Putting Spool2XML into Production

Converting the printer file into a new ‘XML’ printer file

Scroll Prev Top Next More

In this case we want to create a new ‘XML’ printer file with the same name as the original and then place it higher in the library list of the printing application to make it use the new printer file.

The conversion is done with the CVTPRTFXML command:

 

IFORMNG/CVTPRTFXML FROMFILE(KSE/NG402PR) TOFILE(KSE_HIGH/NG402PR) OUTQ(QUSRSYS/IFORMNG)

 

The original printer file KSE/NG402PR is converted into KSE_HIGH/NG402PR and the new printer file will print to the monitored output queue, QUSRSYS/IFORMNG.

 

 

In order to use the output queue monitor you need to set this up on the jobs, that creates the spooled files:

 

1.Change the library list of the job, so that the converted (XML) printer file is higher in the library list, so that this printer file will be used instead of the normal printer file. You can ensure, that the right printer file is used by looking at the contents of the spooled file. You should be able to see the normal XML tags <> inside.

2.The spooled files must be moved to or created on the monitored output queue. The spooled files also need to have status *RDY in order to be seen by the monitor, that is monitoring the output queue. The monitor will then convert the XML spooled file into an XML file.

 

If you want to process a spooled file twice, then you can hold and release the spooled file to add a data queue entry and make the monitor job react again.