IBM AS/400 Service


Technical Document



Document Number - 8003615
____________________________________________________________

Functional Area:

Print

Product:

Operating System/400 - OS/400 - PRINT/SPOOL (5716SS1SP)
Operating System/400 - OS/400 - PRINT/SPOOL (5763SS1SP)

Release:

ALL

Last Update:

10/06/97

____________________________________________________________

TITLE: ... Using QPRTVALS Data Area to Control AFP Printing


Using QPRTVALS Data Area to Control AFP Printing

This document contains information on the AFP printing functions controlled through the QPRTVALS data area.

The supported functions include:

o

Removing no print border adjustments made by the writer for printers using AFP. Check the printer device description to see if the advance function printing parameter is set to *YES.

o

If you want *COR printouts to have a 1/4-inch top margin instead of default 1/2-inch.

o

If you do not want FRONTMGN and BACKMGN to affect the positioning of overlays (*COR value does not use FRONTMGN or BACKMGN).

o

If you have a d/t3835 Model 2 and want it print the same as the d/t3835 Model 1 with the 1/6-inch print shift top and left margin.

o

Controlling the system font selection on 3935, 3130, 3160, and some 3900s Printers.


Note: This function is available on R310 and above.

For all functions, create the data area, change object ownership, and grant object authorities as follows. The printer writer needs to be ended and started again to activate the changes.

On the OS/400 command line, type the following:

CRTDTAARA DATAARA(QUSRSYS/QPRTVALS) TYPE(*CHAR) +
LEN(256) VALUE( )

The VALUE parameter varies depending on the function being requested.

CHGOBJOWN OBJ(QUSRSYS/QPRTVALS) OBJTYPE(*DTAARA) +
NEWOWN(QSYS) CUROWNAUT(*SAME)

GRTOBJAUT OBJ(QUSRSYS/QPRTVALS) OBJTYPE(*DTAARA) +
USER(*PUBLIC) AUT(*ALL)

To remove the no print border for AFP(*YES), do the following:

1

In the CRTDTAARA command above, set VALUE('YY'), the Y in the 1st & 2nd position. If you have the data area created already, on the OS/400 command line type the following:

CHGDTAARA DATAARA(QUSRSYS/QPRTVALS (1 2)) VALUE('Y')

To complete the function, changes may be needed in the printer settings to change the logical printing area.

Examples:

a. 4028: Set the printer to EDGE-TO-EDGE printing.
If model AS1 - Set switch 14 to 01
Set switch 13 to 00
If model NS1 - Set switch 38 to 01
Set switch 36 to 00
Set switch 35 to 01

b. 3912/16: Go into the Print Offset menu on the 3116 printer setup and change the X and Y offsets to 0.

2

If you want *COR printouts to have a 1/4-inch top margin instead of 1/2- inch, do the following:

In the
CRTDTAARA command above, set VALUE(' Y'), the Y in the 5th position.

If you have the data area created already, on the OS/400 command line type the following:

CHGDTAARA DATAARA(QUSRSYS/QPRTVALS (5 1)) VALUE('Y')

3

If you do not want FRONTMGN and BACKMGN to affect the positioning of overlays (*COR value does not use the FRONTMGN or BACKMGN).

In the
CRTDTAARA command above set VALUE(' Y'), the Y in the 4th position.

If you have the data area created already, on the OS/400 command line type the following:

CHGDTAARA DATAARA(QUSRSYS/QPRTVALS (4 1)) VALUE('Y')

4

If you have a d/t3835 Model 2 and want it print the same as the d/t3835 Model 1 with the 1/6-inch print shift top and left margin.

In the
CRTDTAARA command above, set VALUE(' Y'), the Y in the 3rd position.

If you have the data area created already, on the OS/400 command line type the following:

CHGDTAARA DATAARA(QUSRSYS/QPRTVALS (3 1)) VALUE('Y')

5

Controlling the system font selection on 3935, 3130, 3160 and some 3900s (available at R310 and above).

When the QPRTVALS data area is set up according to the following instruction, the AS/400 system always selects a scaleable font for printing with MULTIUP or computer output reduction or when the spooled file attributes specify FONT(*CPI). If the font identifier in the printer device description is between 300 and 511 (inclusive), this font is selected and scaled to an appropriate point size. If the font in the device description is not between 300 and 511, the AS/400 system uses font 304.

Font 304 is a scaleable Gothic font that is supported by these printers for almost all SBCS code pages except Arabic, Cyrillic Greek, Hebrew, Latin 2/3/4/5, and Symbols. Another recommended font is 416, a scaleable Courier Roman font that is supported for almost all SBCS code pages except Japanese Katakana.

To activate this new function, follow these instructions:

In the
CRTDTAARA command above, set VALUE(' Y'), placing a 'Y' in the sixth position.

If you have the data area created already, on the OS/400 command line type the following:

CHGDTAARA DTAARA(QUSRSYS/QPRTVALS (6 1)) VALUE('Y')

To change the default to something other than 304, on the OS/400 command line type the following:

CHGDEVPRT DEVD(printername) FONT(416 12.0)

If you wish to deactivate this new function, change the data area and restart the printer writers. On the OS/400 command line, type the following:

CHGDTAARA DTAARA(QUSRSYS/QPRTVALS (6 1)) VALUE('N')


Document Info

Related APARs/PMRs:

Keywords:

____________________________________________________________
IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright (c) 1994, 1995, 1996, 1997 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark information.