QWP4019 program use

Following are examples that show how to use the QWP4019 program.

Example 1

Set the 4019 flag on and then off in the device description for PRT01.

QWP4019 CALL Result
CALL QWP4019 (PRT01 *ON) Sets the 4019 flag on in the device description for PRT01.
CALL QWP4019 (PRT01 *CHECK) The system returns 4019 because the 4019 flag is set on.
CALL QWP4019 (PRT01 *OFF) Sets the 4019 flag off in the device description for PRT01.
Note:
This CALL also sets flags *SIC and *COR off.
CALL QWP4019 (PRT01 *CHECK) The system returns 5219 or 3812 because the 4019 flag is off.

Example 2

Enable COR and the 4019 fonts for a 4019 printer attached to a 348x InfoWindow® display.

QWP4019 CALL Result
CALL QWP4019 (PRT01 *ON) Sets the 4019 flag on in the device description for PRT01. This supplies the 4019 fonts but disables computer output reduction.
CALL QWP4019 (PRT01 *COR) Sets the *COR flag on in the device description. This enables computer output reduction for PRT01.

Example 3

Enable near letter quality (NLQ) print quality for an IBM® Personal Printer Series II 2390 printer attached to a 3477 InfoWindow display.

QWP4019 CALL Result
CALL QWP4019 (PRT01 *IMP) Turns the *IMP flag on in the device description for PRT01.
CALL QWP4019 (PRT01 *CHECK) The system returns 5219 or 3812 because the 4019 flag is off. There is no check for *IMP, *SIC, and *COR flags.

Example 4

The following table provides a summary of the QWP4019 parameters, the call used to set flags on, and the call used to set flags off.

Parameter name
Call to set flag on
Call to set flag off
*ON
CALL QWP4019 (PRT01 *ON)
CALL QWP4019 (PRT01 *OFF)1
*IMP
CALL QWP4019 (PRT01 *IMP)
CALL QWP4019 (PRT01 *IMPOFF)
*SIC
CALL QWP4019 (PRT01 *SIC)
CALL QWP4019 (PRT01 *SICOFF)
*COR
CALL QWP4019 (PRT01 *COR)
CALL QWP4019 (PRT01 *COROFF)
*CNT
CALL QWP4019 (PRT01 *CNT)
CALL QWP4019 (PRT01 *CNTOFF)
*RST
CALL QWP4019 (PRT01 *RST)
CALL QWP4019 (PRT01 *RSTOFF)
*ON5256
CALL QWP4019 (PRT01 *ON5256)
CALL QWP4019 (PRT01 *OFF52)
*ON5262
CALL QWP4019 (PRT01 *ON5262)
CALL QWP4019 (PRT01 *OFF52)
*ON4214
CALL QWP4019 (PRT01 *ON4214)
CALL QWP4019 (PRT01 *OF4214)
Note:
1
Using the CALL QWP4019 (PRT01 *OFF) command sets the *SIC, *COR, and *ON flags off.