Using custom code pages

Code Page Editor

Custom code pages can be used when you set up BARR/SPOOL printers, send files with Print Utility, view documents, configure RJE devices, and configure LPD print queues. Use one of the following options to activate custom code pages.

See also:


Setting up BARR/SPOOL printers

  1. Open the Printer Properties dialog box using one of the following methods.

  2. Right-click the printer in the Spool Window and select Configure. To access this option, the printer must be disabled and you must have the Configure - Printer and Disk Settings user access right.

  3. Open the Configuration Utility. From the Spool Printers tab, select the spool printer, and then click Modify.

  1. Under Options, Click Advanced. The Advanced Printer Options dialog box displays.

    Advanced Printer Options Dialog Box

  2. From the Code page list, select the custom code page.

  3. Click OK to exit the Advanced Printer Options dialog box.

  4. Click OK to exit the Printer Properties dialog box.

Sending files with Print Utility

Select whether you want to manually or automatically add files with Print Utility and follow the appropriate steps. From the Format tab click Code Pages to select the code page.

Create an override table

Create an override table entry that will force all jobs requiring translation to use a specific code page. This is accomplished by creating an action to change the value of the NDHBCPAG (Code translation page) field to the desired code page number.

For example, use the following steps to apply the custom code page 3030 to all jobs with a job name (NJHGJNAM) of "spanish".

  1. Open the Configuration Utility.

  2. On the Override Table tab, click Add.

    Override Table Tab

  3. Enter a name for the override table and click OK. The Rules Editor dialog box displays.

    Rules Editor Dialog Box

  4. In the Rules box, select Data Set Header Overrides, and then click Add.

  5. Under Conditions, select <None>, and then click Modify. The Rule Conditions dialog box displays.

    Rule Conditions Dialog Box

  6. In the Header Fields text box, select Job Header and then General Section.

  7. Select the NJHGJNAM (Job name) field.

  8. Under Conditions construction, click FIELD .

  9. Click the equal (=) button.

  10. Type spanish in the text box and click VALUE.

  11. Click OK to return to the Rules Editor.

  12. In the Rules box, under Actions select <None>, and then click Modify. The Rule Action dialog box displays.

    Rule Actions Dialog Box

  13. Under Data Set Header choose Internal Custom Section and select the NDHBCPAG (Code translation page) field.

  14. Set the field's Value to 3030.

  15. Click OK several times to close the Configuration Utility.

Configuring LPD print queues

You can select a custom code page when you assign LPD type properties to LPD print queues.

  1. Open BARR/PRINT TCP/IP.

  2. Click the plus sign (+) next to the queue you want to modify.

  3. Select the LPR control file command you want to modify, and then click Modify | Conversions. The Input Conversion Utility displays.

  4. On the Options tab, click Code Pages to open the Select Code Pages dialog box.

  5. From the Incoming data format or Outgoing data format drop-down lists, select the desired code pages and click OK.

  6. Click OK to close the utility.

Configuring TCP/IP sockets

You can select a custom code page when you assign LPD type properties to LPD print queues.

  1. Open BARR/PRINT TCP/IP.

  2. Select the Port number, and then click Modify | Conversions. The Input Conversion Utility displays.

  3. On the Options tab, click Code Pages to open the Select Code Pages dialog box.

  4. From the Incoming data format or Outgoing data format drop-down lists, select the desired code pages and click OK.

  5. Click OK to close the utility.