ILE COBOL Programmer's Guide


Accessing Printer Devices

You can create printed output on a printer device from an ILE COBOL program by issuing a WRITE statement to one or more printer files. You can use one of the IBM-supplied printer files, such as QPRINT, or you can create your own printer files using the Create Print File (CRTPRTF) command. For further information on the CRTPRTF command, see the CL and APIs section of the Programming category in the iSeries 400 Information Center at this Web site -http://publib.boulder.ibm.com/pubs/html/as400/infocenter.htm.

To use a printer file in an ILE COBOL program, you must:

The file operations that are valid for a printer file are WRITE, OPEN, and CLOSE.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]