Troubleshooting
Problem
This document provides instructions for modifying the printer initialization and printer reset controls sent to the printer when using Host Print Transform (HPT).
Resolving The Problem
This is done by retrieving and modifying a Workstation Customization Table (WSCST) and changing the values in the Initialize Printer (INITPRT) and Reset Printer (RESETPRT) tags.
Note: Examples in this document are using the HP PCL printer language.
| Caution: These instructions are provided as is. Any assistance with editing the Workstation Customization Table must be done through a consulting agreement. |
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 Instructions for Modifying a Workstation Customizing Object (WSCST) document.
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:
- To 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.
- To 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 the following section Customizing the INITPRT and RESETPRT Tags 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.
- To 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.
- To 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.
- To add the WSCST to a PC5250 printer emulation session, do the following:
a) In the ACS PC5250 printer session, click on Communication > Configure.
b) Click OS/400 Options setting.
c) Select Use HPT as Yes.
d) Select Use Customizing Object as Yes.
e) Specify the Customizing Object and Object Library names. For example, Customizing Object HP4 and Library QGPL.
f) Click OK to create the printer session.
g) 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.
Customizing the INITPRT and RESETPRT Tags
These are the tags that cause the initialization and reset on the printer:
:INITPRT
DATA ='1B45'X.
:RESETPRT
DATA ='1B45'X.
In unique situations, it is sometimes useful to send some additional initialization controls in the datastream. One sure way they will get to the printer is through the Initialize Printer (INITPRT) tag because it is always included in the datastream. There are also cases where controls need to be issued at the end of every spooled file, using the Reset Printer (RESETPRT) tag prevents subsequent spooled files from printing incorrectly.
Disabling the Perforation Skip
To disable the perforation, skip on an HP LaserJet or compatible printer, add the Perforation Skip Disable PCL control to the end of the Initialize Printer (INITPRT) tag, as follows:
:INITPRT
DATA ='1B451B266C304C'X.
:RESETPRT
DATA ='1B45'X.
To create the WSCST object and implement it, perform Steps 3 and 4 (above).
Was this topic helpful?
Document Information
Modified date:
19 March 2026
UID
nas8N1010121