Please enable JavaScript to view this site.

Navigation: Technical Information > Cobwebb APIs & Commands

PRTXMLSPL - Print XML Cross References

Scroll Prev Top Next More

This command must be run on the IBM i and can be used to print an XML File, that has been pre-configured via the Work with XML Cross References, to a spooled file. Requires Cobwebb Server version 6.2.82 or above (with a licence to the Cobwebb XML module) and IBM i OS V6R1M0 or above.

Note: If you wish to automate the printing of your XML files then this can be done via the Cobwebb Folder Monitor using the Folder Monitor program FMXML2SPL.

Make sure that you have the CPPD library in your library list.  To do this, enter the following command: -

ADDLIBLE CPPD

If the library already exists in your library list, you will receive an error message, which you may ignore.  

Next enter PRTXMLSPL and press F4=Prompt.  

Running this command will create a spooled file called PRTXMLSPLF in the Output Queue QPRINT in library CPPD.        

Command Parameters

File ID Name (FILEID)

The File ID from the Work with XML Cross References to use as the print configuration for your chosen XML file.

File Path Name (FILENAME)

The full path to the XML file that you wish to print e.g. /test/XML/MyTest.xml

Print - Page Length (PAGLEN)

The page length for the generated spooled file. Valid entries are 1-255.

Default = 66

Print - Overflow Line (OVRFLW)

The overflow line for the generated spooled file. Valid entries are 1-255 but this entry must be less than or equal to the Page Length.

Default = 60

(ERROR)

This is just used by the program when it is being called via the Folder Monitor and may be ignored.