IBM Support

Controlling the Font That Host Print Transform (HPT) Selects When Performing Computer Output Reduction (COR)

Troubleshooting


Problem

This document provides instructions for printing 132-character spooled files at 13.3 and 198 character spooled files at 20 CPI on rotated 8.5 x 11.0 inch paper by changing how Host Print Transform (HPT) does its font selection whenever it uses the Computer Output Reduction (COR) function.

Resolving The Problem

Document Overview

Note: This document used to be titled "Printing 132-Character SPLFs at 13.3 CPI and 198 Character SPLFs at 20 CPI Using Host Print Transform (HPT)".

This document provides instructions for printing 132-character spooled files at 13.3 and 198 character spooled files at 20 CPI on rotated 8.5 x 11.0 inch paper by changing how Host Print Transform (HPT) does its font selection whenever it uses the Computer Output Reduction (COR) function. This will cause 10 CPI/132 character spooled files to print in a larger font (so there will be far less wasted space) and will cause 15 CPI/198 character spooled files to print in a smaller font (so characters will not be truncated on the right).

This is done by retrieving and modifying a Workstation Customization Table (WSCST) and changing the CPI in COR Mode (CPICOR) tags to specify different values for the ASCII font (ASCIIFNT) and font width (FNTWTH). This document also discusses modifying the Raster Mode (RASTERMODE) tag for printers that do not support scalable fonts.

This document was last updated on 2 December 2013.

Caution: These instructions are provided as is. Any assistance with editing the Workstation Customization Table must be done through a consulting agreement.

History and Explanation of Computer Output Reduction (COR)

The Computer Output Reduction (COR) function was built into the hardware on the original twinax-attached IBM 3812 SCS printer. It was designed to take spooled files generated for a system printer and reformat them to print on a laser printer by printing in landscape and compressing the font and line spacing to fit on Letter sized (8.5 x 11 inch) paper without truncation.

Host Print Transform (HPT) added this same functionality for printing to ASCII laser printers. However, the laser printers available at that time, such as the HP LaserJet II, supported only a limited number of fonts and Characters per Inch (CPI) settings. Therefore the system-supplied MFRTYPMDL settings (such as *HPII and *HPIII) were set up so spooled files that were generated to print 132 columns at 10 Characters per Inch (CPI) on 13.2 inch wide "green bar" paper would be printed in landscape at 17.1 CPI on Letter sized paper leaving more than 2.0 inches of white space on the right side. Spooled files that were generated to print 158 columns at 12 CPI on 13.2 inch wide paper would be printed in landscape at 17.1 CPI on Letter sized paper leaving less than an inch of white space on the right side. Spooled files that were generated to print 198 columns at 15 CPI on 13.2 inch wide paper would be printed in landscape at 17.1 CPI on Letter sized paper, truncating the text at 172 columns.

Newer system-supplied MFRTYPMDL settings (such as *HP4, *HP5, *HP5SI, *HP4000, and so on) changed to print 15 CPI spooled files at 20 CPI when performing Computer Output Reduction (COR) processing. Therefore, 198 column spooled files would no longer be truncated at column 172; however, those would still print 10 CPI spooled files at 17.1 CPI when performing COR processing leaving a lot of white space on the right side.

Even more recent system-supplied MFRTYPMDL settings (such as *INFOPRINT1140 and *LEXOPTRAT) changed to remove all CPICOR tags and let HPT perform a best fit which causes 10 CPI spooled files to print at 13.3 CPI leaving less than half an inch of white space on the right side. 15 CPI spooled files are still printed at 17.1 CPI because that leaves less than an inch of white space on the right side.


Basic Steps for Creating and Using a Workstation Customization Object

The following are the basic steps for creating and using a Workstation Customization Object (WSCST). Regardless of the particular issue(s) you are attempting to resolve, these steps must always be taken. This information is intended to provide a 'quick start' to creating a WSCST object for users who have at least some familiarity with creating them and with configuring printers.

Note: Additional, in-depth details for creating a WSCST object can be found in the following document:

N1010140: Instructions for Modifying a Workstation Customizing Object (WSCST)

The following are the basic 'quick start' steps.

Step 1: Retrieve the WSCST source code. Type the following command on the operating system command line:

Important Note: Use the Manufacturer type and model (MFRTYPMDL) that is appropriate for your printer. Also, the Source member (in the following example, HP4) is a name that is appropriate to your customizing object. This is what you will be calling your workstation customizing object in Step 3.

RTVWSCST DEVTYPE(*TRANSFORM) MFRTYPMDL(*HP4) SRCMBR(HP4)
         SRCFILE(QGPL/QTXTSRC)

Press the Enter key.

Step 2: Edit the source code by using PDM or SEU:
oTo use PDM, on the operating system command line type the following:

WRKMBRPDM FILE(QGPL/QTXTSRC) MBR(HP4)

Press the Enter key. Select Option 2 to edit.
oTo use SEU, on the operating system command line type the following:

STRSEU SRCFILE(QGPL/QTXTSRC) SRCMBR(HP4)

Press the Enter key.
Make any changes necessary to the WSCST object source code. Refer to one of the following sections New Method -- Removing the CPICOR Tags, Old Method -- Modifying the CPICOR Tags, or Raster Mode Method -- for Printers That Do Not Use Scalable Fonts to make your changes, then save and exit. Continue with Step 3.

Step 3: Create the WSCST object using the CRTWSCST command. On the operating system command line, type the following:

Important Note: Match the SRCMBR name from Step 1 to the WSCST object name that is created in this step.

CRTWSCST WSCST(QGPL/HP4) SRCFILE(QGPL/QTXTSRC)

Press the Enter key.

Step 4: Add the WSCST to the printer configuration by using the Change Device Print command (CHGDEVPRT), the Change Output Queue command (CHGOUTQ), or by changing the PC5250 printer emulation session configuration.
oTo add the WSCST to a device description, on the operating system command line type the following:

CHGDEVPRT DEVD(device_name) TRANSFORM(*YES) MFRTYPMDL(*WSCSTLETTER)
          WSCST(QGPL/HP4)

Press the Enter key.
oTo add the WSCST to a remote output queue description, on the operating system command line type the following:

CHGOUTQ OUTQ(queue_name) TRANSFORM(*YES) MFRTYPMDL(*WSCSTLETTER)
        WSCST(HP4)

Press the Enter key.
oTo add the WSCST to a PC5250 printer emulation session, do the following:

a In the PC5250 printer session, click on Communication > Configure.
b Click on the Setup button.
c In the Configure PC5250 Printer Emulation window, select the box next to Transform Print Data to ASCII on the iSeries and select the Printer Model value of *WSCST.
d In the same window, specify the name of the WSCST in the Customizing Object parameter and the library where it is found in the Library parameter (for example, Customizing Object HP4 and Library QGPL).
e Click OK three times.
f Click File > Save to save the configuration.

Note: If any changes are made to the WSCST object source code after the CRTWSCST command has been issued, it is necessary to issue the CRTWSCST command again. The printer writer must be ended and restarted for the changes to take effect.

When you are editing the WSCST source code using either PDM or SEU, follow the instructions in one or more of the following sections:

oNew Method -- Removing the CPICOR Tags
oOld Method -- Modifying the CPICOR Tags
oOther ASCIIFNT and FNTWTH Parameters
oRequesting a Particular Font in a CPI in COR Mode (CPICOR) Tag
oDefault Font Strings sent by Host Print Transform (HPT)
oFor More Information on Composing an HP PCL5 Font String
oChanging the Line Spacing
oRaster Mode Method -- for Printers That Do Not Use Scalable Fonts

    • - New Method -- Removing the CPICOR Tags



      Once you are editing the WSCST source code using PDM or SEU, find the CPICOR entry in the table by typing "CPICOR" (without the quotes) on the SEU command line, and press the F16 (Repeat find) key. The CPI in COR Mode (CPICOR) tag tells Host Print Transform (HPT) which font to use for each Character per Inch (CPI) value when performing the Computer Output Reduction (COR) function. The COR function is used to rotate and shrink output in cases where the pages in the spooled file are too large to fit on the page. For example, if you have a report that prints on US Fan-Fold (13.2 by 11.0-inch) paper on your system printers, it is too large to print on Letter (8.5 by 11.0-inch) without rotating the output and using a smaller font.

      The old method consists of modifying the CPI in COR Mode (CPICOR) tags to use different values. This method causes Host Print Transform (HPT) to print 10 CPI spooled files at 13.3 CPI rather than 17.1 CPI by modifying the CPICOR tag for 10 CPI to set the ASCIIFNT to 204 and the FNTWTH to 108. The new method removes the CPICOR tags completely.

      Type a "DD" (Block Delete) on the first line of the first CPICOR tag, and type another "DD" on the last line of the last CPICOR tag, where it has "DATA =''X.". Press the Enter key. For for example:

       Columns . . . :    1  71            Edit                       QSECOFR/QTXTSRC
       SEU==>                                                                     HP4
       FMT **  ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
      0001.06       DATA ='1B266C00000043'X.
      DD          :CPICOR
      0001.08       CPI=10
      0001.09       ASCIIFNT=  255
      0001.10       FNTWTH=   84
      0001.11       FNTATR=    1
      0001.12       DATA =''X.
      0001.13     :CPICOR
      0001.14       CPI=12
      0001.15       ASCIIFNT=  255
      0001.16       FNTWTH=   84
      0001.17       FNTATR=    1
      DD            DATA =''X.
      0001.19     :PRTORIENT
      0001.20       ORIENT=PORTRAIT
      0001.21       DATA ='1B266C304F'X.
      0001.22     :PRTORIENT

       F3=Exit   F4=Prompt   F5=Refresh   F9=Retrieve   F10=Cursor   F11=Toggle
       F16=Repeat find       F17=Repeat change          F24=More keys
      String CPICOR found.

      Next, press the Enter key, which will remove all of the lines for the CPICOR tags.

      Note: This new method has a number of requirements, including:

      1.The printer must be an HP PCL3, HP PCL4, HP PCL5e, HP PCL5c or HP PCL6 compatible printer, such as an IBM Infoprint 1140, HP LaserJet 4, HP DeskJet 500 or Lexmark Optra T printer. To find out if a particular printer uses HP PCL3, HP PCL4, HP PCL5e or HP PCL6, refer to the following Rochester Support Center knowledgebase document, or contact the printer manufacturer:

      N1019605: Information on Printers from Various Manufacturers
      2.The printer must support scalable fonts. If the printer does not support scalable fonts, or does not have a printer-resident 13.3 CPI font, then use this New Method (removing the CPICOR tags) along with the Raster Mode method mentioned below.
      3.The IBM System i system must be running V5R1 or V5R2 operating system, or higher.
      4a.If running the V5R1 operating system, PTF SI08528 or any superseding PTFs must be applied.
      4b.If running the V5R2 operating system, PTF SI08548 or any superseding PTFs must be applied.

      To create the WSCST object and implement it, perform Steps 3 and 4 (above).

      • - Old Method -- Modifying the CPICOR Tags



        Once you are editing the WSCST source code using PDM or SEU, find the CPICOR entry in the table by typing "CPICOR" (without the quotes) on the SEU command line, and press the F16 (Repeat find) key. The CPI in COR Mode (CPICOR) tag tells Host Print Transform (HPT) which font to use for each Character per Inch (CPI) value when performing the Computer Output Reduction (COR) function. The COR function is used to rotate and shrink output in cases where the pages in the spooled file are too large to fit on the page. For example, if you have a report that prints on US Fan-Fold (13.2 by 11.0-inch) paper on your system printers, it is too large to print on Letter (8.5 by 11.0-inch) without rotating the output and using a smaller font.

        The old method consists of modifying the CPI in COR Mode (CPICOR) tags to use different values. This causes Host Print Transform (HPT) to print 10 CPI spooled files at 13.3 CPI rather than 17.1 CPI by modifying the CPICOR tag for 10 CPI to set the ASCIIFNT to 204 and the FNTWTH to 108. The original settings for the CPICOR tags are:

        Columns . . . :    1  71            Edit                       QSECOFR/QTXTSRC
         SEU==>                                                                     HP4
         FMT **  ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
        0001.06       DATA ='1B266C00000043'X.
        0001.07     :CPICOR
        0001.08       CPI=10
        0001.09       ASCIIFNT=  255
        0001.10       FNTWTH=   84
        0001.11       FNTATR=    1
        0001.12       DATA =''X.
        0001.13     :CPICOR
        0001.14       CPI=12
        0001.15       ASCIIFNT=  255
        0001.16       FNTWTH=   84
        0001.17       FNTATR=    1
        0001.18       DATA =''X.
        0001.19     :PRTORIENT
        0001.20       ORIENT=PORTRAIT
        0001.21       DATA ='1B266C304F'X.
        0001.22     :PRTORIENT

         F3=Exit   F4=Prompt   F5=Refresh   F9=Retrieve   F10=Cursor   F11=Toggle
         F16=Repeat find       F17=Repeat change          F24=More keys
        String CPICOR found.

        Typically, these are changed to use ASCIIFNT 204 and FNTWTH 108 for the CPICOR tag where CPI=10 prints at 13.3 CPI (because 1440 / 13.3 CPI = 108) and to use ASCIIFNT 223 and FNTWTH 96 for the CPICOR tag where CPI=12 prints at 15 CPI (because 1440 / 15 CPI = 96). For example:

        Columns . . . :    1  71            Edit                       QSECOFR/QTXTSRC
         SEU==>                                                                     HP4
         FMT **  ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
        0001.06       DATA ='1B266C00000043'X.
        0001.07     :CPICOR
        0001.08       CPI=10
        0001.09       ASCIIFNT=  204
        0001.10       FNTWTH=   108
        0001.11       FNTATR=    1
        0001.12       DATA =''X.
        0001.13     :CPICOR
        0001.14       CPI=12
        0001.15       ASCIIFNT=  223
        0001.16       FNTWTH=   96
        0001.17       FNTATR=    1
        0001.18       DATA =''X.
        0001.19     :PRTORIENT
        0001.20       ORIENT=PORTRAIT
        0001.21       DATA ='1B266C304F'X.
        0001.22     :PRTORIENT

         F3=Exit   F4=Prompt   F5=Refresh   F9=Retrieve   F10=Cursor   F11=Toggle
         F16=Repeat find       F17=Repeat change          F24=More keys
        String CPICOR found.

        You can also add the following CPICOR tag for CPI=15 with ASCIIFNT 281 and FNTWTH 72 to print at 20 CPI (since 1440 / 20 CPI = 72); however, this is usually not necessary:

        :CPICOR
              CPI=15
              ASCIIFNT = 281                   /* ASCII Font ID = 281                 */
              FNTWTH   = 72                    /* Font width: 1440 / 20 CPI = 72      */
              FNTATR=    1
              DATA =''X.

        Notes:
        1.Not all printers support the fonts calculated by the operating system. For example, the HP LaserJet III printer does not have 20 Characters per Inch (CPI) fonts in fixed or proportional, nor do they support a 13.3 CPI fixed pitch font. On the other hand, the HP LaserJet 4 printer and most newer HP LaserJet printers, as well as HP LaserJet 4 compatible printers, support scalable fonts, which can print characters in varying sizes, such as 11.0 CPI, 12.0 CPI, 13.0 CPI, 13.3 CPI, 15.0 CPI and so on.
        2.The source code for system-supplied WSCST objects often do not list a CPICOR tag for CPI=15. In these instances, Host Print Transform (HPT) will use its default action for performing Computer Output Reduction (COR) on 15 CPI spooled files. However, a CPICOR tag for CPI=15 can be added to the source code when 15 CPI spooled files are not printing as expected or as desired.
        3.The CPI parameter refers to the current Characters per Inch (CPI) specified in the spooled file before Computer Output Reduction (COR) processing is performed rather than the desired CPI after reducing or compressing the font.
        4.CPICOR tags are valid only for CPI=10, CPI=12 and CPI=15. Any other entry (such as CPI=5, CPI=13.3, CPI=16.7, CPI=18 or CPI=20) would be ignored.
        5.If adding CPICOR tags to WSCST source code that has no CPICORs, it is recommended that they be added immediately before the PRTORIENT tags.

        • - Other ASCIIFNT and FNTWTH Parameters



          Spooled files can be printed at other Characters per Inch (CPI) settings by specifying different values for the ASCIIFNT (ASCII Font ID) and FNTWTH (Font Width) parameters. For example:

          CPISettings for ASCIIFNT and FNTWTH portion of CPICOR tag
          10.0 :CPICOR
                CPI=10, 12, or 15
          ASCIIFNT = 11            /* ASCII Font ID = 11                  */
               FNTWTH   = 144           /* Font width: 1440 / 10.0 CPI = 144   */

                FNTATR=    1
                DATA ='1B2873307031302E3068307330623430393954'X.
          10.4 :CPICOR
                CPI=10, 12, or 15
                ASCIIFNT=  11            /* ASCII Font ID = 11                  */
                FNTWTH=   138            /* Font width: 1440 / 10.4 CPI = 138   */
                FNTATR=    1
                DATA ='1B2873307031302E3468307330623430393954'X.
          12.0 :CPICOR
                CPI=10, 12, or 15
          ASCIIFNT = 85            /* ASCII Font ID = 85                  */
               FNTWTH   = 120           /* Font width: 1440 / 12.0 CPI = 120   */

                FNTATR=    1
                DATA ='1B2873307031322E3068307330623430393954'X.
          12.5 :CPICOR
                CPI=10, 12, or 15
                ASCIIFNT=  85            /* ASCII Font ID = 85                  */
                FNTWTH=   115            /* Font width: 1440 / 12.5 CPI = 115   */
                FNTATR=    1
                DATA ='1B2873307031322E3568307330623430393954'X.
          13.3 :CPICOR
                CPI=10, 12, or 15
          ASCIIFNT = 204           /* ASCII Font ID = 204                 */
               FNTWTH   = 108           /* Font width: 1440 / 13.3 CPI = 108   */

                FNTATR=    1
                DATA ='1B2873307031332E3368307330623430393954'X.
          15.0 :CPICOR
                CPI=10, 12, or 15
          ASCIIFNT = 223           /* ASCII Font ID = 223                 */
               FNTWTH   = 96            /* Font width: 1440 / 15.0 CPI = 96    */

                FNTATR=    1
                DATA ='1B2873307031352E3068307330623430393954'X.
          15.6 :CPICOR
                CPI=10, 12, or 15
                ASCIIFNT=  222           /* ASCII Font ID = 222                 */
                FNTWTH=   92             /* Font width: 1440 / 15.6 CPI = 92    */
                FNTATR=    1
                DATA ='1B2873307031352E3668307330623430393954'X.
          16.67 :CPICOR
                CPI=10, 12, or 15
                ASCIIFNT = 400           /* ASCII Font ID = 400                 */
                FNTWTH   = 86            /* Font width: 1440 / 16.67 CPI = 86   */
                FNTATR=    1
                DATA ='1B2873307031362E363768307330623430393954'X.
          17.1 :CPICOR
                CPI=10, 12, or 15
                ASCIIFNT = 255           /* ASCII Font ID = 255                 */
                FNTWTH   = 84            /* Font width: 1440 / 16.67 CPI = 86   */
                FNTATR=    1
                DATA ='1B2873307031372E3168307330623430393954'X.
          17.6 :CPICOR
                CPI=10, 12, or 15
                ASCIIFNT=  281           /* ASCII Font ID = 281                 */
                FNTWTH=   82             /* Font width: 1440 / 17.6 CPI = 82    */
                FNTATR=    1
                DATA ='1B2873307031372E3668307330623430393954'X.
          18.0 :CPICOR
                CPI=10, 12, or 15
          ASCIIFNT = 281           /* ASCII Font ID = 252                 */
                FNTWTH   = 80            /* Font width: 1440 / 18.0 CPI = 80    */
                FNTATR=    1
                DATA ='1B2873307031382E3068307330623430393954'X.
          20.0 :CPICOR
                CPI=10, 12, or 15
          ASCIIFNT = 281           /* ASCII Font ID = 281                 */
                FNTWTH   = 72            /* Font width: 1440 / 20.0 CPI = 72    */
                FNTATR=    1
                DATA ='1B2873307032302E3068307330623430393954'X.
          21.4 :CPICOR
                CPI=10, 12, or 15
                ASCIIFNT=  281           /* ASCII Font ID = 281                 */
                FNTWT=    67             /* Font width: 1440 / 21.4 CPI = 67    */
                FNTATR=    1
                DATA ='1B2873307032312E3468307330623430393954'X.
          25.0 :CPICOR
                CPI=10, 12, or 15
          ASCIIFNT=  285           /* ASCII Font ID = 285                 */
                FNTWTH=   58             /* Font width: 1440 / 25.0 CPI = 58    */
                FNTATR=    1
                DATA ='1B2873307032352E3068307330623430393954'X.
          27.3 :CPICOR
                CPI=10, 12, or 15
                ASCIIFNT=  281           /* ASCII Font ID = 281                 */
                FNTWTH=   53             /* Font width: 1440 / 27.3 CPI = 53    */
                FNTATR=    1
                DATA ='1B2873307032372E3368307330623430393954'X.

          • - Requesting a Particular Font in a CPI in COR Mode (CPICOR) Tag



            Further refinement can be accomplished by specifying a PCL Font Selection control, or PCL font string, in the DATA parameter within the CPICOR tag. This allows the selection of a particular typestyle (such as Courier), a different pitch (such as 13.2 rather than 13.3 CPI), or a different stroke weight (such as Semi Bold rather than Medium).

            To print 10 CPI spooled files at 13.3 CPI, you can set the ASCIIFNT = 204, and the FNTWTH = 108. However, you can also add an HP PCL5e Font Selection command to select a specific font. For example, 10 CPI spooled files can be printed using a Courier 13.3 CPI font by using the following CPICOR tag:

            :CPICOR                    /* Compress 10 CPI to Courier 13.3 CPI */
                  CPI=10                   /* font when performing COR            */
                  ASCIIFNT = 204           /* ASCII Font ID = 204                 */
                 FNTWTH   = 108           /* Font width: 1440 / 13.3 CPI = 108   */

                  FNTATR=    1
                  DATA ='1B2873307031332E3368307330623430393954'X.

            10 CPI spooled files can be printed using a Letter Gothic 13.3 CPI font by using the following CPICOR tag:

            :CPICOR                            /* Compress 10 CPI to Letter Gothic    */
                  CPI=10                           /* 13.3 CPI font when performing COR   */
                  ASCIIFNT = 204                   /* ASCII Font ID = 204                 */
                  FNTWTH   = 108                   /* Font width: 1440 / 13.3 CPI = 108   */
                  FNTATR=    1
                  DATA ='1B2873307031332E3368307330623431303254'X.


            10 CPI spooled files can be printed using a LinePrinter 16.67 CPI font however spaced out to 13.3 CPI by using the following CPICOR tag:

                :CPICOR                            /* Compress 10 CPI to LinePrinter      */
                  CPI=10                           /* 16.67 CPI font, spaced at 13.3 CPI  */
            ASCIIFNT = 204                   /* ASCII Font ID = 204                 */
                 FNTWTH   = 108                   /* Font width: 1440 / 13.3 CPI = 108   */

                  FNTATR=    1
                  DATA ='1B28313255'X
                        '1B2873307031362E363668382E3576307330623054'X
                        '1B266B3948'X.

            Note: The DATA portion of this CPICOR tag includes a Symbol Set command to select the PC-850 symbol set, a Font command to select the LinePrinter 16.67 font (which will only print at 16.67 CPI) and a Horizontal Motion Index (HMI) command to space the font out to 9 decipoints (9/120 of an inch) or 13.3 CPI.

            15 CPI spooled files can be printed using a Letter Gothic 20 CPI font by using the following CPICOR tag:

                :CPICOR                            /* Compress 10 CPI to LinePrinter      */
                  CPI=15                           /* 16.67 CPI font, spaced at 20 CPI    */
            ASCIIFNT = 223                   /* ASCII Font ID = 223                 */
                 FNTWTH   = 96                    /* Font width: 1440 / 15 CPI = 96      */

                  FNTATR=    1
                  DATA ='1B2873307032302E3068307330623431303254'X.

            • - Default Font Strings sent by Host Print Transform (HPT)



              This section contains a list of default font strings sent by Host Print Transform (HPT) when performing Computer Output Reduction (COR) on 10, 12, and 15 CPI spooled files when printing with a Manufacturer type and model (MFRTYPMDL) setting of *HP4 (which contains CPICOR tags for 10 and 12 CPI) or *INFOPRINT1140 (which contains no CPICOR tags at all).

              10 CPI printed using *HP4

              When performing Computer Output Reduction (COR) on a 10 CPI spooled file using *HP4, the CPICOR tag for CPI=10 is:

                  :CPICOR
                    CPI=10
                    ASCIIFNT=  255
                    FNTWTH=   84
                    FNTATR=    1
                    DATA =''X.

              and the default font sent by Host Print Transform (HPT) is:

              1B2873307031372E313068303037763073306230303054 or <esc>(s0p17.10h007v0s0b000T

              This selects a fixed-spaced, 17.10 CPI, 7 point, solid upright (non-italized), medium stroke weight font with a typeface of 000 (LinePrinter).


              10 CPI printed using *INFOPRINT1140

              When performing Computer Output Reduction (COR) on a 10 CPI spooled file using *INFOPRINT1140, there is no CPICOR tag for CPI=10. In this case, the default font sent by Host Print Transform (HPT) is:

              1B2873307031332E333068303039763073306230303554 or <esc>(s0p13.30h009v0s0b005T

              This selects a fixed-spaced, 13.30 CPI, 9 point, solid upright (non-italized), medium stroke weight font with a typeface of 005 (which is not a listed typeface).


              12 CPI printed using *HP4

              When performing Computer Output Reduction (COR) on a 12 CPI spooled file using *HP4, the CPICOR tag for CPI=12 is:

                  :CPICOR
                    CPI=12
                    ASCIIFNT=  255
                    FNTWTH=   84
                    FNTATR=    1
                    DATA =''X.

              and the default font sent by Host Print Transform (HPT) is:

              1B2873307031372E313068303037763073306230303054 or <esc>(s0p17.10h007v0s0b000T

              This selects a fixed-spaced, 17.10 CPI, 7 point, solid upright (non-italized), medium stroke weight font with a typeface of 000 (printer default).


              12 CPI printed using *INFOPRINT1140

              When performing Computer Output Reduction (COR) on a 12 CPI spooled file using *INFOPRINT1140, there is no CPICOR tag for CPI=12. In this case, the default font sent by Host Print Transform (HPT) is:

              1B2873307031362E363068303038763073306230303654 or <esc>(s0p16.60h008v0s0b006T

              This selects a fixed-spaced, 16.60 CPI, 8 point, solid upright (non-italized), medium stroke weight font with a typeface of 006 (which is not a listed typeface).


              15 CPI printed using *HP5 or *INFOPRINT1140

              When performing Computer Output Reduction (COR) on a 15 CPI spooled file using *HP5 or *INFOPRINT1140, there is no CPICOR tag for CPI=15. In this case, the default font sent by Host Print Transform (HPT) is:

              1B2873307032302E303068303036763073306230303554 or <esc>(s0p20.00h006v0s0b005T

              This selects a fixed-spaced, 20.00 CPI, 6 point, solid upright (non-italized), medium stroke weight font with a typeface of 005 (which is not a listed typeface).

              Note: If the page width in the spooled file attributes is larger than 198 characters, the default font sent by Host Print Transform (HPT) is:

              1B2873307032352E303068303035763073306230303554 or <esc>(s0p25.00h005v0s0b005T

              This selects a fixed-spaced, 25.00 CPI, 5 point, solid upright (non-italized), medium stroke weight font with a typeface of 005 (which is not a listed typeface).

              • - For More Information on Composing an HP PCL5 Font String



                For more information on composing a particular PCL font string, refer to the following document:

                N1010138: Breakdown of HP PCL5 Font Strings

                Note: All laser printers that support PCL5, PCL5e or PCL6 will accept a PCL5 font string, but not necessarily support scalable fonts. If not, the PCL font string can be used to specify a particular typestyle or stroke weight, but only certain pitches will be accepted. Also, the typestyle selected must be resident in the printer hardware.

                • - Changing the Line Spacing



                  When Host Print Transform (HPT) performs Computer Output Reduction (COR), it not only compresses the font, but also compresses the line spacing so the lines of text are closer together. For step-by-step instructions on increasing the line spacing, refer to the following document:

                  N1010125: Manipulating Line Spacing

                  To create the WSCST object and implement it, perform Steps 3 and 4 (above).

                  • - Raster Mode Method -- for Printers That Do Not Use Scalable Fonts



                    Some HP LaserJet compatible printers, including certain HP DeskJet printers, do not support scalable fonts. For example, some HP DeskJet printers only support 5, 10, 16.67 and 20 Characters per Inch (CPI) when using the Courier font. In these cases, the only way to print 132 character spooled files at 13.3 CPI is to modify the Workstation customizing object (WSCST) to do the above changes, and to change the Raster Mode (RASTERMODE) tag to turn on raster mode for both SCS and AFPDS spooled files.

                    The default setting of the Raster Mode (RASTERMODE) tag is as follows:

                    :RASTERMODE
                          SCS=NO
                          AFP=NO.

                    This indicates that mapping mode should be used for both SCS or AFPDS spooled files. To use raster mode for the SCS-to-ASCII Transform and the AFPDS-to-ASCII Transform, change both the SCS and AFP parameters to YES. For example:

                    :RASTERMODE
                          SCS=YES
                          AFP=YES.

                    To create the WSCST object and implement it, perform Steps 3 and 4 (above).

                  [{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0"}]

                  Historical Number

                  5381803

                  Document Information

                  Modified date:
                  18 December 2019

                  UID

                  nas8N1018530