How To
Summary
This document contains the steps for creating a Workstation Customizing Object (WSCST) to add a Form Feed (0C) to the end of the :RESETPRT tag.
Objective
The objective is to force the last page of a spooled file to print from the printer's buffer.
Environment
PCL-capable printer configured to use Host Print Transform.
Steps
| 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 a Workstation Customization Object, Then Using the Object in a Printer Device Configuration.
The following are the basic steps for creating a Workstation Customization Object (WSCST), then using the object in a printer device configuration. Regardless of the particular issues 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: More, in-depth details for creating a WSCST object can be found in the following document:
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 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 the name of 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:
| o | To use PDM, on the command line type the following: WRKMBRPDM FILE(QGPL/QTXTSRC) MBR(HP4) Press the Enter key. Select Option 2 to edit. |
| o | To use SEU, on the command line type the following: STRSEU SRCFILE(QGPL/QTXTSRC) SRCMBR(HP4) Press the Enter key. |
Step 3: Create the WSCST object by using the CRTWSCST command. On the 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.
| o | To add the WSCST to a device description, on the command line type the following: CHGDEVPRT DEVD(device_name) TRANSFORM(*YES) MFRTYPMDL(*WSCSTLETTER) WSCST(QGPL/HP4) Press the Enter key. |
| o | To add the WSCST to a remote output queue description, on the command line type the following: CHGOUTQ OUTQ(queue_name) TRANSFORM(*YES) MFRTYPMDL(*WSCSTLETTER) WSCST(HP4) Press the Enter key. |
| o | To add the WSCST to a PC5250 printer emulation session, do the following: A. In the PC5250 printer session, select Communication > Configure. B. On the left, select OS/400 Options. C. In the Host Print Transform box, specify Use HPT as Yes and select the Printer Manufacturer and Model value of *WSCST. D. In the same box, specify Use Customizing Object as Yes and enter the Customizing Object name and Object Library for the WSCST object created in the steps. E. Select OK until the printer session restarts. F. Select File > Save to save the configuration. |
Note: If any changes are made to the WSCST object source code after the CRTWSCST command, it is necessary to issue the CRTWSCST command again. The printer writer must be ended and restarted for the changes to take effect.
Additional Information
Adding 0C to the :RESETPRT Tag in the WSCST Source Code:
Locate the Reset Printer (:RESETPRT) tag in the WSCST source. The default setting for the :RESETPRT tag in the WSCST source code for *HP4 is as follows:
:RESETPRT
DATA ='1B45'X.
DATA ='1B45'X.
Add 0C (Zero C) to the end of the DATA value that is enclosed in single quotation marks:
:RESETPRT
DATA ='1B450C'X.
DATA ='1B450C'X.
To create the WSCST object and implement it, perform Steps 3 and 4.
Document Location
Worldwide
[{"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":"7.1.0"}]
Was this topic helpful?
Document Information
Modified date:
24 September 2020
UID
ibm16336915