Make printer files capable of DBCS

In many cases, printer files are used by the server to produce data that will eventually be printed or displayed. In these cases, the data is first placed into a spooled file using one of the IBM-supplied printer files. The data is then taken from the spooled file and is displayed or printed based on the request of the user.

When the data involved contains double-byte characters, the printer file that is used to place the data into the spooled file must be capable of processing double-byte data. A printer file is capable of processing double-byte data when *YES is specified on the IGCDTA parameter for the file. In most cases, the server recognizes the occurrence of double-byte data and takes appropriate measures to ensure the printer file that is used is capable of processing double-byte data.

In some cases, however, the server cannot recognize the occurrence of double-byte data and might attempt to use a printer file that is not capable of processing double-byte data. If this occurs, the output at the display or printer cannot be readable. This can happen when object descriptions containing double-byte characters are to be displayed or printed on an alphanumeric device.

To ensure that you receive correct results when you display or print double-byte characters, some recommendations should be followed. Action is required on your part if you have a single-byte national language installed as a secondary language. Printer files that are received as part of the DBCS version of a product are always capable of processing DBCS data.

The following recommended actions should be performed after the product or feature has been installed:
  1. If all printers and display devices attached to your server are DBCS-capable, you can enable all printer files for double-byte data. For IBM-supplied printer files that are received as part of a single-byte secondary language feature, you can enable all printer files by issuing the following command:
    CHGPRTF FILE(*ALL/*ALL) IGCDTA(*YES)

    After this command has been completed, all printer files in all libraries will be enabled for double-byte data. The change will be a permanent change.

  2. If all printer and display devices attached to your server are not DBCS-capable, it is recommended that you do not enable all IBM-supplied printer files.

    Instead, use the library search capabilities of the server to control which printer files will be used for any particular job. When the potential exists that double-byte data will be encountered, the library list for the job should be such that the printer files that are DBCS-enabled will be found first in the library list. Conversely, if only single-byte data is expected to be encountered, the library list should be set up so the printer files that are not enabled for DBCS will be found first. In this way, the printer file capabilities will match the type of data that will be processed. The decision as to what type of printer file to use is made on the basis of what type of data will be processed. The device that will be used to actually display or print the data might also influence this decision.

    In some cases it might be desirable to make the printer file only temporarily DBCS-capable instead of making a permanent change. For a specific job, you can make this temporary change by using the OVRPRTF command.

    To temporarily enable a specific printer file, you can use the following command:
    OVRPRTF FILE(filename) IGCDTA(*YES)

    Where filename is the name of the printer file you want to enable.