IBM Support

Using QPRTVALS Data Area to Control AFP Printing

Troubleshooting


Problem

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

Resolving The Problem

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

The supported functions include:

oWhen printing to an *IPDS AFP printer and this printer has an unprintable border, PSF/400 will shift the output down and to the right to get it out of this border. When printing to a printer without an unprintable border, this shift does not occur. So the same spooled file will be positioned differently depending on what type of printer is being used. You can use this data area to tell PSF/400 not to shift the output out of this unprintable border.
oWhen IBM OS/400 or IBM i5/OS performs Computer Output Reduction (COR), you will get an approximate half inch top margin. You can use this data area to get a 3/4" top margin instead.
oThe FRONTMGN and BACKMGN printer file parameters can be used to shift the positioning of *AFPDS spooled files on the printed page (when not using COR). This data area can be used to tell PSF/400 to not shift overlays and just shift the text in the spooled file.
oThe Model 1 3835 printer has an unprintable border around the perforation of the forms. OS/400 or i5/OS will shift output out of this unprintable border. The model 2 3835 does not have as great an unprintable border. This data area can be used to shift output on a model 2 3835 to match the shift of the Model 1.
oWhen performing COR or MULTIUP printing, OS/400 or i5/OS will select a fixed pitch font to use for the output. With this data area, you can specify to use scalable fonts when printing to 3935, 3130, 3160, and some 3900 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 must be ended and started again to activate the changes.

On the operating system command line, type the following:

Note: The VALUE parameter varies depending on the function being requested.

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

Press the Enter key. Then, type the following:

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

Press the Enter key. Then, type the following:

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

Press the Enter key.

To remove the no print border for AFP(*YES), do the following:
1.In the CRTDTAARA command above, set VALUE('YY'), placing the Y in the 1st and 2nd position. If you have the data area created already, on the operating system command line type the following:

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

Press the Enter key.
2.If you want *COR printouts to have a 3/4-inch top margin rather than 1/2- inch, do the following:

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

If you have the data area created already, on the operating system command line type the following:

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

Press the Enter key.
3.If you do not want FRONTMGN and BACKMGN to affect the positioning of overlays (*COR rotation does not use the FRONTMGN or BACKMGN).

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

If you have the data area created already, on the operating system command line type the following:

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

Press the Enter key.
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'), placing the Y in the 3rd position.

If you have the data area created already, on the operating system command line type the following:

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

Press the Enter key.
5.Controlling the system font selection for MULTIUP and COR processing on printers that have scalable font support.

When the QPRTVALS data area is set up according to the following instruction, OS/400 or i5/OS always selects a scalable 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, OS/400 or i5/OS uses font 304.

Font 304 is a scalable 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 scalable 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 operating system command line type the following:

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

Press the Enter key. To change the default to something other than 304, on the operating system command line type the following:

CHGDEVPRT DEVD(printername) FONT(416 12.0)

Press the Enter key. To deactivate this new function, change the data area and restart the printer writers. On the operating system command line, type the following:

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

Press the Enter key.
6.Controlling whether CHRSIZ dds keyword is ignored, or not, for DEVTYPE(*SCS) printer files.

Starting in Version 5, Release 3 of the operating system, the CHRSIZ dds keyword will be honored for all DEVTYPE(*SCS) printer files. Earlier, it would only be honored for DEVTYPE(*SCS) printer files if the system was a Double Byte system. All systems are now considered to be Double Byte systems. If you would like the earlier functionality for CHRSIZ follow these instructions:

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

If you have the data area created already, on the operating system command line type the following:

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

Press the Enter key.

To deactivate the function:

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

Press the Enter key.

[{"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":"6.1.0"}]

Historical Number

8003615

Document Information

Modified date:
18 December 2019

UID

nas8N1010247