Printer Device Programming
Printer Device Programming
iSeries
Printer Device Programming
Version 5
SC41-5713-04
iSeries
Printer Device Programming
Version 5
SC41-5713-04
Note
Before using this information and the product it supports, be sure to read the information in
“Notices” on page 551.
Contents v
HP printer job language (PJL) . . . . . . . . 273 Chapter 14. Working with the image
| Simple network management protocol (SNMP) . . 273 print transform function . . . . . . . 303
Benefits of using ASCII TCP/IP network-attached What is the image print transform function? . . . 303
printers . . . . . . . . . . . . . . . 273 Why use the image print transform function? . . 303
How ASCII TCP/IP network-attached printing Printing with image print transform function . . . 304
works . . . . . . . . . . . . . . . . 274 Printing to an ASCII printer . . . . . . . 304
Restrictions when using ASCII TCP/IP Printing to an IPDS printer . . . . . . . . 304
network-attached printers . . . . . . . . 276 Printing with remote output queues . . . . . 305
Printer device description parameters that support How output attributes are derived . . . . . 305
ASCII TCP/IP network-attached printers . . . . 277 Determining if input data stream is in final form 305
Configuring and starting ASCII TCP/IP Printing with convert image API . . . . . . . 306
network-attached printers . . . . . . . . . 280 Image configuration objects. . . . . . . . . 306
Special values of image configurations . . . . 306
Chapter 13. Working with the host Converting postscript data streams . . . . . . 312
print transform function . . . . . . . 283 Fonts . . . . . . . . . . . . . . . 312
Why use the host print transform function? . . . 283 User supplied fonts . . . . . . . . . . 313
How the host print transform function works . . 284 Font substitutions . . . . . . . . . . . 314
Using AFP-to-ASCII transform function . . . . 285 PostScript data streams . . . . . . . . . 315
Using bar codes . . . . . . . . . . . 286 How page size is determined . . . . . . . . 315
Limitations of AFP-to-ASCII transform function 286 Troubleshooting . . . . . . . . . . . . 315
Using the host print transform in raster mode . . 287 Additional documentation . . . . . . . . . 316
Why use raster mode? . . . . . . . . . 287
Enabling raster mode. . . . . . . . . . 287 Chapter 15. Other printing functions
Limitations of raster mode . . . . . . . . 287 provided by the OS/400 program . . . 317
Enabling the host print transform function using PrintManager/400 . . . . . . . . . . . . 317
printer device description parameters . . . . . 288 Data Description Specifications (DDS) . . . . . 318
Parameters supporting the host print transform Advanced Printer Function . . . . . . . . . 318
function . . . . . . . . . . . . . . 288 Functions of APF . . . . . . . . . . . 318
Working with printer device descriptions . . . . 289 Graphical Data Display Manager (GDDM) . . . 319
Creating printer device descriptions using a Required AS/400 System Hardware . . . . . 319
command . . . . . . . . . . . . . 290 Required AS/400 System Software . . . . . 320
Automatically creating printer device Required Knowledge . . . . . . . . . . 320
descriptions . . . . . . . . . . . . . 290 QWP4019 Program . . . . . . . . . . . 321
Changing an existing printer device description 290 QWP4019 Parameter Names and Functions . . 321
Displaying the printer device description . . . 291 How Does the QWP4019 Program Work? . . . 323
Using the host print transform function with an QWP4019 Program Examples . . . . . . . 323
emulator . . . . . . . . . . . . . . . 291
Using the host print transform function with the
IBM Client Access Express work station function 291
Chapter 16. Other printing functions
Using the host print transform function with the provided by licensed programs and
3486/3487/3488 InfoWindow display . . . . 293 AS/400 system hardware . . . . . . 325
Using the host print transform function with the Advanced function printing utilities/400 . . . . 325
3477 InfoWindow display . . . . . . . . 294 What is AFP utilities/400? . . . . . . . . 325
Using the host print transform function with the Overlay utility . . . . . . . . . . . . 325
3197 display station . . . . . . . . . . 295 Print format utility . . . . . . . . . . 327
Using the host print transform function with the Resource management utility . . . . . . . 328
ASCII work station controller . . . . . . . 296 Advanced DBCS printer support/400 . . . . . 329
Using the host print transform function with Business graphics utility (BGU) . . . . . . . 330
OS/2 5250 work station feature . . . . . . 297 What is BGU? . . . . . . . . . . . . 330
Using the host print transform function with Data access capability . . . . . . . . . 331
OS/2 5250 emulation . . . . . . . . . . 299 Client Access Express. . . . . . . . . . . 332
Using the host print transform function with the Network printer function . . . . . . . . 332
RUMBA/400 program . . . . . . . . . 299 Printer emulation . . . . . . . . . . . 333
Using the host print transform function with the Introducing sharing personal printers . . . . 334
IBM enhanced 5250 or the IBM S36/38 work IBM InfoWindow 3477, 3486, 3487, and 3488
station emulation program . . . . . . . . 300 printer support . . . . . . . . . . . . . 335
Using the host print transform function with the ASCII work station controller . . . . . . . . 335
IBM remote 5250 emulation program . . . . 301 Sending and printing files with TCP/IP . . . . 336
| Chapter 18. The IBM Internet Printing Appendix D. Working with Fonts, Font
| Protocol (IPP) server for AS/400 . . . 351 Character Sets, Code Pages, CHRIDs,
| What is the Internet Printing Protocol? . . . . . 351 and Coded Fonts . . . . . . . . . . 387
| Why use the IPP server?. . . . . . . . . . 351 Fonts and the AS/400 System . . . . . . . . 387
| What is supported by the IPP server? . . . . . 351 Downloading . . . . . . . . . . . . 387
| Setting up the IPP server . . . . . . . . . 352 Font Character Sets and Font Global Identifiers
| Setting up your Internet browser . . . . . . 352 (FGID) . . . . . . . . . . . . . . . 388
| Using the Administrator Interface . . . . . 352 Font Character Sets . . . . . . . . . . 388
| Configuring the IPP server . . . . . . . . . 353 Font Global Identifiers (FGIDs) . . . . . . 390
| Creating an IPP Printer Configuration . . . . 354 Code Pages . . . . . . . . . . . . . . 392
| Viewing an IPP printer configuration . . . . 354 Standalone Code Pages . . . . . . . . . 393
| Deleting an IPP printer configuration . . . . 354 Character Set and Code Page Combination
| Managing the IBM IPP server . . . . . . . . 354 (CHRIDs). . . . . . . . . . . . . . 395
| Troubleshooting . . . . . . . . . . . . 355 Coded Fonts. . . . . . . . . . . . . 396
Font Capturing . . . . . . . . . . . . . 397
Activating Font Capturing . . . . . . . . 397
Part 6. Appendixes . . . . . . . . 357 Making Character Sets and Code Pages Eligible
for Capturing . . . . . . . . . . . . 397
Appendix A. Examples of Working Eligibility Rules . . . . . . . . . . . 398
with Printing Elements . . . . . . . 359 Migrating Font Libraries from Other Operating
Structure of Examples in This Appendix . . . . 359 Environments . . . . . . . . . . . . 398
Working with Your User Profile . . . . . . . 359 Considerations . . . . . . . . . . . . 398
Displaying Your User Profile . . . . . . . 359 Font Substitution Tables . . . . . . . . . . 400
Changing Your User Profile . . . . . . . 360 Font Attributes . . . . . . . . . . . . 400
Working with System Values . . . . . . . . 360 Font Substitution . . . . . . . . . . . 400
Displaying the System Value for the System Font Substitution by Font ID Range . . . . . 401
Printer. . . . . . . . . . . . . . . 360 Host Resident to Printer Resident Font
Changing System Values . . . . . . . . 361 Character Set Mapping . . . . . . . . . 401
Working with Output Queues . . . . . . . . 361 Printer Resident to Host Resident Font
Using the Printer File to Select a Different Character Set Mapping . . . . . . . . . 401
Output Queue . . . . . . . . . . . . 362 Printer Resident to Host Resident Code Page
Moving a Spooled File to a Different Output Mapping . . . . . . . . . . . . . . 401
Queue . . . . . . . . . . . . . . . . 363 Character Identifier (CHRID) Values Supported 402
Different Methods to Move Spooled Files . . . 363 Host Resident to Printer Resident Code Page
Working with Printer Writers (WRKWTR) . . . . 365 Mapping . . . . . . . . . . . . . . 402
Assigning a Printer to a Different Output Queue 365 Lines Per Inch (LPI) Values Supported . . . . 402
Locating Spooled Files . . . . . . . . . . 367 Characters Per Inch (CPI) Values Supported . . 402
Using the Work with Spooled Files (WRKSPLF) 4019 Printer Information. . . . . . . . . 402
Command . . . . . . . . . . . . . 367 4234 Compressed Font Substitution . . . . . 402
Using the Work with Job (WRKJOB) Command 367
Options You Can Select Using WRKSPLF or Appendix E. Printer Data Streams . . 493
WRKJOB . . . . . . . . . . . . . . 367 SNA Character String (SCS) . . . . . . . . 493
How Print Attributes Are Implemented by SCS 493
Contents vii
Final-Form Text: Document Content Architecture Examples of using QPQCHGCF . . . . . . 529
(FFT DCA) . . . . . . . . . . . . . . 494 Restrictions on using the QPQCHGCF program 530
Advanced Function Printing Data Stream (AFPDS) 495 Coded fonts whose font character sets are
Source Programs That Generate AFPDS . . . 495 resident in the 3130 . . . . . . . . . . 530
Advanced Function Printing . . . . . . . 496 QPQCHGCF instructions for marking coded
Intelligent Printer Data Stream (IPDS) . . . . . 496 fonts. . . . . . . . . . . . . . . . 531
Introduction to IPDS Architecture . . . . . 496
The IPDS Page Environment . . . . . . . 498 Appendix G. Feedback Area Layouts 533
Processing IPDS Commands . . . . . . . 502 Open Feedback Area for Printer . . . . . . . 533
The IPDS Command Format . . . . . . . 503 Device Definition List . . . . . . . . . 536
IPDS Operating States . . . . . . . . . 503 I/O Feedback Area . . . . . . . . . . . 537
Default Handling . . . . . . . . . . . 505 Common I/O Feedback Area . . . . . . . . 538
Mixed Object: Document Content Architecture I/O Feedback Area for Printer Files . . . . . 540
(MO:DCA) . . . . . . . . . . . . . 505
American National Standard Code for Information
Appendix H. Using DDS with
Interchange (ASCII) . . . . . . . . . . . 508
PostScript . . . . . . . . . . . . . . 508 High-Level Languages (HLL) . . . . . 541
Data Description Specifications (DDS) . . . . . 541
DDS Coding Example Using the Row/column
Appendix F. Double-Byte Character
Method of Positioning . . . . . . . . . 541
Set Support . . . . . . . . . . . . 511 DDS Coding Example Using the Absolute
Double-Byte Character Set Fundamentals . . . . 511 Method of Positioning . . . . . . . . . 541
DBCS Code Scheme . . . . . . . . . . 512 COBOL and RPG Source Code . . . . . . . 542
Shift-Control Characters . . . . . . . . . 514 Example Output from the DDS, COBOL, and RPG
Invalid Double-Byte Code and Undefined Source . . . . . . . . . . . . . . . . 545
Double-Byte Code . . . . . . . . . . . 515 Example 1: DDS and Row/Column Positioning 545
Using Double-Byte Data . . . . . . . . . 515 Example 2: DDS and Absolute Positioning. . . 546
Double-Byte Character Size. . . . . . . . 515
Processing Double-Byte Characters . . . . . . 516
Appendix I. What Does a Font Look
Basic Characters . . . . . . . . . . . 516
Extended Characters . . . . . . . . . . 516 Like? . . . . . . . . . . . . . . . 547
What Happens When Extended Characters Are Getting Started . . . . . . . . . . . . . 547
Not Processed . . . . . . . . . . . . 516 DDS Source Code . . . . . . . . . . . 548
Device File Support . . . . . . . . . . . 517 C Source Code . . . . . . . . . . . . 549
What a DBCS File Is . . . . . . . . . . 517 Pascal Source Code . . . . . . . . . . 549
When to Indicate a DBCS File . . . . . . . 517 RPG Source Code . . . . . . . . . . . 549
How to Indicate a DBCS File . . . . . . . 517 COBOL Source Code . . . . . . . . . . 550
Improperly Indicated DBCS Files . . . . . . 519
Making Printer Files Capable of DBCS . . . . 519 Notices . . . . . . . . . . . . . . 551
Printer Support. . . . . . . . . . . . . 521 Programming Interface Information . . . . . . 552
Special DBCS Printer Functions . . . . . . 521 Trademarks . . . . . . . . . . . . . . 552
Double-Byte Character Printing Considerations 523
Spool Support . . . . . . . . . . . . . 527 Bibliography . . . . . . . . . . . . 555
Applying Overrides in Printing . . . . . . 527
3130 Printer Resident Font Support . . . . . . 528
Index . . . . . . . . . . . . . . . 557
How to use the QPQCHGCF program. . . . . 528
For more information on Operations Navigator, see the iSeries Information Center.
The iSeries Information Center contains advisors and important topics such as CL
commands, system application programming interfaces (APIs), logical partitions,
With every new hardware order, you receive the following CD-ROM information:
v iSeries 400 Installation and Service Library, SK3T-4096-00. This CD-ROM contains
PDF manuals needed for installation and system maintenance of an IBM ~
iSeries 400 server.
v iSeries 400 Setup and Operations CD-ROM, SK3T-4098-00. This CD-ROM contains
IBM iSeries Client Access Express for Windows and the EZ-Setup wizard. Client
Access Express offers a powerful set of client and server capabilities for
connecting PCs to iSeries servers. The EZ-Setup wizard automates many of the
iSeries setup tasks.
The OS/400 printing function continues to support line printers and a subset of
IBM IPDS printers and print functions when PSF/400 is not installed.
Full support for all IPDS printers is provided by the integrated AFP printing
function. The printing function used to process application output is determined
by the device description of the target printer. Only printers defined as
DEVTYPE(*IPDS) and AFP(*YES) (both specified in the printer device description)
are controlled by the AFP printing function.
DDS Keywords
v Box (BOX)
v Coded font (CDEFNT)
v Data Stream Command (DTASTMCMD)
v Document Index Tag (DOCIDXTAG)
v End Page (ENDPAGE)
v End Page Group (ENDPAGGRP)
v Font character set (FNTCHRSET)
v Graphic data file (GDF)
v Invoke medium map (INVMMAP)
v Line (LINE)
v Overlay (OVERLAY)
v Page segment (PAGSEG)
v Position (POSITION)
v Start Page Group (STRPAGGRP)
v Text rotate (TXTRTT)
v Z fold (ZFOLD)
v Force (FORCE)
v Duplex (DUPLEX)
v Outbin (OUTBIN)
PrintManager/400
PrintManager/400 remains part of the OS/400 operating system. Print Services
Facility for OS/400 is required if you use PrintManager/400 to place data on
AS/400 spool or select page and form definition resources (AFP print objects as
used on System/390 and RS/6000).
To know the answer to these and other printing questions you need to:
v Understand the elements that make printing happen.
v Understand which elements have precedence over other elements. For example;
your job description has precedence over your user profile in determining which
printer your output will print on.
After reading through this chapter and the examples in Appendix A. Examples of
Working with Printing Elements, you will be familiar with the elements that make
printing happen and you will be able to:
v Display your user profile.
v Change your user profile.
v Create an output queue.
v Move spooled files from one output queue to a different output queue.
v Start printers printing.
v Stop printers from printing.
v Assign a printer to print spooled files from an output queue that it is currently
not assigned to.
Note to Readers:
Read through the following list to familiarize yourself with the elements, but do
not worry about trying to memorize each definition. A thorough explanation of the
elements and how they interact with each other will follow.
Printing Elements
Element Definition
Spooled File
A file that holds output data waiting to be printed.
Application
An application program is run
Program
or the Print key is pressed.
Runs or a
Print Key
Is Pressed
A system-supplied program
Printer Writer takes spooled files from
Program output queues and sends
them to a printer.
As the diagram illustrates, there are many elements (such as printer files and
output queues) and many actions (creating spooled files, starting printer writer
programs) involved in processing your printing requests.
The remainder of the chapter explains the elements and the processes that combine
to produce printed output.
Generally, when the user initiates a print request or runs a program, a printer file
is accessed, a spooled file is generated, and that spooled file is sent to an output
queue. The next three topics discuss the relationship between printer files, spooled
files, and output queues.
Printers attached to the AS/400 system are supported by the operating system
through printer files. Printer files describe how the system is to operate on the
data as it passes between your application program and a printer.
A printer file handles every request for printing. You can create your own printer
files by using the Create Printer File (CRTPRTF) command, or you can use
system-provided printer files.
Note: There is one exception to this. It applies only to the Print key when the
display station has an attached remote workstation controller. In this
situation, the printer that is named in the device description for that display
station receives the printed version of the screen. The remote work station
controller, not the AS/400 system, handles this.
Printer files contain many parameters that tell the system how the output should
be formatted, what font to use for the printed output, whether to print on both
sides of the page, and more. The parameters that control how your output is
handled and where it goes are:
1 Spool the data (SPOOL)
2 Device (DEV)
3 Spooled output queue (OUTQ)
4 Spooled File Owner(SPLFOWN)
| If another printer file is not specified, the printer uses the default printer file. The
| default printer file for the system is QSYSPRT. The following page identifies the
| SPOOL, DEV, OUTQ, and SPLFOWN parameters on the default printer file,
| QSYSPRT.
Display Spooled File
When the SPOOL parameter is set to *YES, the output from an application
program (a spooled file) is sent to an output queue (OUTQ). When SPOOL = *YES,
the system looks at the OUTQ parameter in the printer file to find out which
output queue (OUTQ) to send the spooled file to. For example, the OUTQ value in
your printer file could be OUTQ1.
However, in the default printer file, QSYSPRT, the value specified is *JOB. This
means that the QSYSPRT printer file tells the system to look at your job’s OUTQ
attribute to determine the name of the output queue (OUTQ).
For example, for debugging purposes, you might want the current job to spool and
own all service dumps, instead of an individual user. To accomplish this, you
could set the parameter to the special value of *JOB for the QPSRVDMP printer
file.
Spooling is a system function that saves data in a database file for later processing
or printing. This data, which is saved and eventually printed, is called a spooled
file.
When spooling is used, spooled files) are created from the application program, a
system program, or the pressing of the Print key. These files are put on disk in
places called output queues.
The diagram below shows an AS/400 system with three application programs.
When these application programs are run, they take information from a printer
file.
Information in the printer file determines if the output should be spooled, and
which output queue the spooled file is sent to.
A key concept to remember is that you can create and use multiple printer files
and multiple output queues to accomplish your printing needs. Also, two different
AS/400
Output Queue
Application Program Name = OUTQONE
Using a Printer File
Called PRTFONE Spooled File
Printer File Spooled File
Name = PRTFONE Spooled File
OUTQ = OUTQONE
Printer File
Application Program
Using a Printer File Name = PRTFTWO
Called PRTFTWO OUTQ = OUTQTWO
Output Queue
Name = OUTQTWO
Application Program
Using a Printer File Spooled File
Called PRTFTHREE Spooled File
Printer File
Spooled File
Name = PRTFTHREE
OUTQ = OUTQTWO
RV2H326-0
By creating and using your own printer file instead of using a system-supplied
printer file, you can specify the printing control instructions that your application
program receives.
You can use the Create Printer File (CRTPRTF) command to create your own
printer file.
For more detailed information and examples about printer files, see Chapter 2.
Printer file support.
System-created output queues are commonly called device output queues and have
the same name as the printer device.
For example: when you configure a printer using the Create Device Description
(Printer) (CRTDEVPRT) command, if you assign the printer name PRT01 in the
DEVD parameter, the system creates an output queue named PRT01.
For example: let us assume that you have only one printer available. One of your
application programs creates a job that has 600 pages of printed output. Since all
users are using the same printer, you do not want to print the 600-page job until
everyone has finished working for the day.
One solution is to create two separate output queues. One output queue receives
the spooled files from the application program that creates the 600 pages of printed
output. The other output queue receives the spooled files from the jobs run by
other users, as shown in the diagram below.
Output Queue
Application
Program Spooled File
(600-page job) Printer
Output Queue
Other Users’
Jobs Spooled Files
(all other jobs)
RV2H325-0
The program that creates the 600-page job sends the spooled file to a specific
output queue. That output queue does not have a printer assigned to it. Therefore,
the 600-page spooled file has to wait until a printer is assigned; meanwhile, the
spooled files that are in the other output queue can be printed.
Multiple output queues can also be used with deferred printing. To print a large
spooled file which exceeds the current limit for the printer’s output queue, the
printer can be assigned to an output queue without any limit. Another solution is
to set the maximum spooled file size to print during a specified time. For example,
a maximum spooled file size of 100 pages could be set from 08:00:00 to 17:30:00
hours. During this time, only spooled files of 100 or less pages would print. After
5:30 PM, any spooled file prints. Spooled files which are too large are placed in
deferred status (*DFR) until they can be printed. See “Controlling printing from an
output queue by spooled file size” on page 131 and “Controlling multiple output
queues” on page 136 for more information on using multiple output queues with
deferred printing.
The remainder of this chapter discusses the elements that control or direct the
printing activity.
v The printer writer program.
This element is identified by 2 in the diagram below.
Note: The Start Remote Writer (STRRMTWTR) command is similar to the Start
Printer Writer (STRPRTWTR) command. The STRRMTWTR command
provides function that allows spooled files to be sent to a remote system
for printing. For more information, see “Chapter 4. Remote System
Printing” on page 159.
+ v Printer files, job attributes, user profiles, workstation descriptions, job
+ descriptions, and system values.
+ These elements are identified by 3 in the diagram below.
These important attributes, common to the elements that control printing, are:
v Output queues
v Printer devices
Note: Do not confuse the printer writer program with an actual printer device or a
printer file. The printer device is a physical printer and the printer writer is
the program that allows you to assign an actual printer device to an output
queue and select spooled files from the output queue to be printed.
The diagram below illustrates how the printer writer program interacts with the
output queue and the physical printer to take spooled files from an output queue
and send them to a printer.
Application
Program
Runs or a
Print Key
Is Pressed
Printer Writer
Printer File
Program
System-Supplied (system-
or User-Created supplied)
Output Queue
Spooled File
Spooled File Printed
Spooled File Output
RV2H324-0
|
Printer device descriptions have to be created for each printer attached to the
system. If you use automatic configuration, this is done for you by the system,
with the exception of printers attached to an ASCII work station controller. Or you
can use the Create Device Description (Printer) (CRTDEVPRT) command to assign
a name to each printer.
The Start Printer Writer (STRPRTWTR) command and the Work with Writers
(WRKWTR) command provide you with the ability to assign any configured
printer to any output queue.
Notes:
1. Even though the name of the command (Work with Writers) indicates you are
working with printer writers, you are actually using the printer writer program
to make a match between an output queue and a physical printer.
2. If your printer stops for any reason (out of paper, for example), the AS/400
system does not automatically assign a different printer to continue printing the
jobs in the output queue that your printer was assigned to. You have to
manually assign another printer to that output queue.
| Assuming that the method used to start the job does not override the output
| queue or printer device values specified in the device description, the order
| followed for job initiation is: job description, user profile, workstation description,
| For job run time, the order followed is printer file and job attributes. In the
| following diagram you can see how these stages work. For additional information
| about job attributes and manipulating job attributes, see the Work Management
| topic in the online Information Center.
|
Note: If the printer identified in the system value does not exist on your AS/400
system, the output goes to output queue QPRINT.
| For more detailed information about job attributes, see the Work Management
| topic in the AS/400 Information Center.
To become a user of the system you must have a user profile. In most cases,
someone having security officer authority adds new users to the system. A user
profile is created for each new user added to the system. The user profile has three
parameters (highlighted on the following page) that provide information to
determine where the user’s printed output will go.
1 Job Description
2 Output Queue
3 Printer Device
Job description: In the example user profile, this parameter and its value of
QDFTJOBD (item 1 in the following example) mean that when the user requests
a printing job, the system scans the QDFTJOBD job description to determine which
output queue (OUTQ) and printer device (PRTDEV or DEV) it should use. If the
job description has the value of *USRPRF specified for these parameters, the
system comes back to the user profile and continues to look for the printer and the
output queue to use.
The system looks, in the user profile, at the parameters of output queue and
printer device.
Output queue: In the example user profile, you can see the output queue value
(item 2) specified is *WRKSTN. This tells the system to use the value specified in
the output queue (OUTQ) parameter of the workstation description as the output
queue name.
Each user signs on to the system at a display station. Many display stations can be
attached to an AS/400 system. Each display station that is attached to the system
has a workstation description.
From a printing standpoint, the parameters labeled 1 Printer device and 2
Output queue are very important.
When you sign on to the system, if no defaults or system values have been
changed, your output will be sent to the output queue and the printer device
specified in the workstation description of the display station where you are
signed on.
Note: Any batch job submitted from the interactive job would use the same printer
device or output queue that is currently specified in the workstation
description.
Output queue: In the example workstation description, you can see the output
queue value (item 2) specified is *DEV. This tells the system to use the value
specified in the printer device parameter of the printer file as the output queue
name.
| In our example, the value in the PRTDEV parameter of the job description is
| *USRPRF, which tells the system to look at the PRTDEV parameter in the user
Printer device: In the example workstation description, you can see the printer
device value (item 1) specified is *SYSVAL. This tells the system to look at the
system value QPRTDEV. This IBM-supplied system value has a printer assigned to
it. For example: PRT01 could be the value assigned to the system value QPRTDEV.
| As you learned earlier in this chapter, printer files contain many parameters that
| describe how the system is to operate on the data as it passes between your
| application program and the printer. One of these parameters, the output queue
| (OUTQ) parameter, tells the system which output queue receives your spooled
| files.
| This means that the QSYSPRT printer file tells the system to look at your job
| attributes to determine the name of the output queue (OUTQ).
| For more detailed information about job attributes, see the Work Management
| topic in the AS/400 Information Center.
| Display Spooled File File . . . . . : QPDSPFD
| Control . . . . . Columns 1 - 78
| Find . . . . . .
| 2/09/98 Display File Description
|
| DSPFD Command Input
| File . . . . . . . . . . . . . . . . . . . : FILE QSYSPRT
| Library . . . . . . . . . . . . . . . . . : *LIBL
| Type of information . . . . . . . . . . . . : TYPE *ALL
| File attributes . . . . . . . . . . . . . . : FILEATR *ALL
| System . . . . . . . . . . . . . . . . . . : SYSTEM *LCL
| File Description Header
| File . . . . . . . . . . . . . . . . . . . : FILE QSYSPRT
| Library . . . . . . . . . . . . . . . . . . : QSYS
| Type of file . . . . . . . . . . . . . . . : Device
| Device type . . . . . . . . . . . . . . . . : Printer
| Auxiliary storage pool ID . . . . . . . . . : 01
| Device File Attributes
| Externally described file . . . . . . . . . : No
| File level identifier . . . . . . . . . . . : 0980109013920
| Creation date . . . . . . . . . . . . . . . : 01/09/98
| Text 'description' . . . . . . . . . . . . : TEXT System non-describ
| Spool the data . . . . . . . . . . . . . . : SPOOL *YES
| Maximum devices . . . . . . . . . . . . . . : 1
| User specified DBCS data . . . . . . . . . : IGCDTA *NO
| Maximum file wait time . . . . . . . . . . : WAITFILE *IMMED
| Share open data path . . . . . . . . . . . : SHARE *NO
| Record format level check . . . . . . . . . : LVLCHK *NO
| Number of record formats . . . . . . . . . : 1
| User buffer length . . . . . . . . . . . . : 0
| Number of devices . . . . . . . . . . . . . : 1
| Separate indicator area . . . . . . . . . . : INDARA No
| Coded character set identifier . . . . . . : CCSID 0
| Printer Attributes
| Device . . . . . . . . . . . . . . . . . . : DEV *JOB
| Printer device type . . . . . . . . . . . . : DEVTYPE *SCS
| Page size PAGESIZE
| Length . . . . . . . . . . . . . . . . . : 34
| Width . . . . . . . . . . . . . . . . . . : 132
| Measurement Method . . . . . . . . . . . : *ROWCOL
| Lines per inch . . . . . . . . . . . . . . : LPI 6
| Characters per inch . . . . . . . . . . . . : CPI 10
| Front margin . . . . . . . . . . . . . . . : FRONTMGN *DEVD
| Back margin . . . . . . . . . . . . . . . . : BACKMGN *FRONTMGN
| Overflow line number . . . . . . . . . . . : OVRFLW 30
| Fold records . . . . . . . . . . . . . . . : FOLD *NO
| Degree of page rotation . . . . . . . . . . : PAGRTT *AUTO
| Hardware justification . . . . . . . . . . : JUSTIFY 0
| Print on both sides . . . . . . . . . . . . : DUPLEX *NO
| Defer Write . . . . . . . . . . . . . . . . : DFRWRT *YES
| Unprintable character action RPLUNPRT
| Replace character . . . . . . . . . . . . : *YES
| Replacement character . . . . . . . . . . : ' ' X'40'
| Print text . . . . . . . . . . . . . . . . : PRTTXT *JOB
| Align page . . . . . . . . . . . . . . . . : ALIGN *NO
| Control character . . . . . . . . . . . . . : CTLCHAR *NONE
The name of the system value that specifies the name of the default system printer
is QPRTDEV. The value supplied by IBM for the system value QPRTDEV is
PRT01.
Displaying the QPRTDEV system value: As a user of the system, you can
display any of the IBM-supplied system values.
To display the QPRTDEV system value, type DSPSYSVAL QPRTDEV and press the
Enter key.
If the value supplied by IBM has not been changed, the name of the system printer
is PRT01.
If you are the person responsible for adding new users to the system, you can
avoid confusion by specifying the necessary print device values you want in the
user’s user profile.
Go to “Examples: where your printing would go” on page 23 for some examples
that show how the printing elements work with each other.
You can do one or more of the following to affect your print activity:
v You can use the spooled file owner parameter to store the printed output under
a different job and user.
| Also assume that there has not been a switch to an alternate user profile.
| The system looks a the PRTDEV parameter in the job description, that value is
| *USRPRF. This tells the system to look at the PRTDEV parameter in the user
| profile. In this example, that value is *WRKSTN. This tells the system to look at
| the PRTDEV parameter in the workstation description. This tells the system to look
| at hte system value QPRTDEV and to use the output queue on the system that has
| the same name as the system printer named in the system value QPRTDEV. In this
| example, that is PRT01. PRT01 is stored in the job attribute PRTDEV.
| When a spooled file is to be created, the system looks at the OUTQ parameter in
| the printer file for the output queue name. In this example, that value is *JOB. This
| tells the system to look at the OUTQ attribute for the job. The OUTQ job attribute
| was set to *DEV during the job initiation stage. The OUTQ job attribute, *DEV, tells
| the system to look at the DEV parameter in the printer file. The value in the DEV
| parameter of the printer file is *JOB. That value tells the system to look at the
| PRTDEV attribute of the job. If the IBM-supplied value for QPRTDEV has not been
| changed, the printer device name is PRT01 and the output queue name is PRT01.
| If the IBM-supplied value for QPRTDEV has not been modified, the printer device
| name is PRT01 and the output queue name is PRT01.
| In example 2, the output queue would be PRT04. The system found the output
| queue parameter value of PRT04 in the printer file rather than a value that would
| point it to your OUTQ job attribute.
| Also assume:
| v The job did not switch to an alternate user profile.
| v The current user has a group profile GRP.
|
|
|
| Note: Because the SPLFOWN parameter of the printer file is *CURGRPPRF, the
| spooled file will be created under job xxxxxx/GRP/QPRTJOB (where xxxxxx
| is 000000–999999). For more information on the SPLFOWN parameter see
| the CL Reference topic in the AS/400 Information Center.
| The system looks at the OUTQ value in the current job description. The value
| *USRPRF, in the job description, tells the system to look at the OUTQ parameter in
| the user profile. The value in the OUTQ parameter of the user profile is
| *WRKSTN. This tells the system to look at the OUTQ parameter in the workstation
| description. In the workstation description, the OUTQ parameter is *DEV. In the
| job attributes, the OUTQ job attribute gets set to *DEV.
| The system looks PRTDEV parameter in the job description. The value *USRPRF, in
| the job description, tells the system to look at the PRTDEV parameter in the user
| profile. The value *WRKSTN, in the user profile, tells the system to look at the
| PRTDEV parameter in the workstation description. The value *SYSVAL, in the
| workstation description, tells the system to look at the system value and use the
| value set for QPRTDEV. The value in QPRTDEV is PRT01. PRT01 becomes the
| value for the PRTDEV job attribute.
| Also assume that there has been a switch to an alternate user profile USR.
|
|
|
| Note: The SPLFOWN parameter of the printer file is *JOB, and the job has
| switched to user profile USR. The current job will create the spooled file. For
| more information on the SPLFOWN parameter see the CL Reference topic in
| the AS/400 Information Center.
+ The system looks at the OUTQ parameter in the printer file for the output queue
+ name. The value, in this example, *JOB, tells the system to look at the OUTQ job
+ attribute. Because the SPFLOWN parameter is set to *JOB, the job attribute OUTQ
+ of the current job is used. The value is PRT03. In this example, the spooled file
+ goes to output queue PRT03.
| Note: The SPLFOWN parameter of the printer file is *CURUSRPRF, and the job
| has switched to user profile USR. The spooled file will be created under job
| xxxxxx/USR/QPRTJOB (where xxxxxx is 000000–999999). For more
| information on the SPLFOWN parameter see the CL Reference topic in the
| AS/400 Information Center.
| The system looks at the OUTQ parameter in the job description. That value, PRT04
| tells the system that it does not need to look any further and sets the OUTQ job
| attribute to PRT04.
| The value *USRPRF in the PRTDEV parameter of the job description, tells the
| system to look at the PRTDEV attribute of the user profile. In the user profile, the
| value *WRKSTN tells the system to look at the PRTDEV parameter in the
| workstation description. That value, *SYSVAL tells the system to look at the system
| value QPRTDEV and to use the output queue that is named in that value. In this
| example, the value is PRT01 and it is stored in the job attribute PRTDEV.
| The system looks at the OUTQ parameter in the printer file for the output queue
| name. That value *JOB, tells the system to look at the OUTQ attribute of the job.
| There is a data area, QPRTJOB in QUSRSYS, that is owned by the user profile
| QSPL that has a logical value of false. Because of this data area, the system will
| look at the OUTQ attribute for job xxxxxx/USR/QPRTJOB. In the
| xxxxxx/USR/QPRTJOB, the OUTQ attribute value *DEV tells the system to look at
| the DEV parameter in the printer file. The value *JOB in the DEV parameter of the
| printer file, tells the system to look at the PRTDEV attribute of the current job.
| That value is PRT01.
Also assume that there has been a switch to an alternate user profile USR.
|
+ Note: The SPLFOWN parameter of the printer file is *CURUSRPRF, and the job
+ has made a switch to user profile USR. The spooled file will be created
+ under job xxxxxx/USR/QPRTJOB (where xxxxxx is 000000–999999). For
+ more information on the SPLFOWN parameter see the CL Reference topic in
+ the AS/400 Information Center.
+ The system looks at the OUTQ parameter in the printer file for the output queue
+ name. That value, *JOB, tells the system to look at the OUTQ job attribute. The
+ system will look at the OUTQ job attribute of the current job, which is PRT03.
| Also assume:
| v There has been a switch to alternate user profile USR.
| v The current user has a group profile X.
| v The data area QPRTJOB, of type *LGL, with a value of false (0), exists in library
| QUSRSYS and is owned by QSPL user profile.
|
Note: The SPLFOWN parameter of the printer file is *CURUSRPRF, and the job
has switched to alternate user profile USR. The spooled file will be created
under job xxxxxx/USR/QPRTJOB (where xxxxxx is 000000–999999).
+ The system looks at the OUTQ parameter in the printer file for the output queue
+ name. That value, *JOB, tells the system to look at the OUTQ job attribute. Because
+ data area QPRTJOB with a logical value of true exists, the system will look at the
+ OUTQ job attribute of in the current job, which is PRT04.
+ Also assume that there has not been a switch to an alternate user profile.
|
| In example 8, at job initiation, the following takes place:
| The system looks at the OUTQ parameter in the job description. That value
| *USRPRF tells the system to look at the OUTQ parameter in the user profile. The
| value of the OUTQ parameter in the user profile is OUTQ1. Because this is the
| name of a specific output queue, this value is stored as the OUTQ value in the job
| attributes.
| The system looks at the PRTDEV parameter in the job description. That value
| *USRPRF tells the system to look at the PRTDEV parameter in the user profile. The
| PRTDEV value in the user profile is PRT02. Because this is the name of a specific
| printer device, the system stops looking and stores this value as the PRTDEV value
| in the job attributes.
+ In this example, your printer device would be PRT02. This is because the system
+ looked first into the printer file and found the PRTDEV parameter value to be
+ *JOB, which sent it to the job attribute PRTDEV.
| In this example, the printer file specified SPOOL = *NO. Your output would go
| directly to PRT02 for printing and no output queue would be used.
+ Also assume that there has not been a switch to an alternate user profile.
| The system looks at the OUTQ parameter in the job description. That value,
| *USRPRF tells the system to look at the OUTQ parameter in the user profile. In the
| user profile, the OUTQ parameter value is *WRKSTN. This value tells the system
| to look at the OUTQ parameter in the workstation description. The OUTQ value in
| the workstation description is PRT02. This value is stored as the OUTQ value in
| the job attributes.
| The system looks at the PRTDEV value in the job description. That PRTDEV value
| in the job description is *USRPRF. That value tells the system to look at the
| PRTDEV value in the user profile. The PRTDEV value in the user profile is
| *WRKSTN. That value tells the system to look at the PRTDEV value in the
| workstation description. The PRTDEV value in the workstation description is
| PRT03. This value is stored as the PRTDEV value in ithe job attributes.
| The system looked at the printer file and found the PRTDEV parameter value to be
| *JOB, which tells the system to look next in the job printer attribute PRTDEV.
| In this example, the printer file specified SPOOL = *NO. Your output would go
| directly to PRT03 for printing and no output queue would be used.
| REMEMBER:
| You must know the value (*YES or *NO) of the SPOOL parameter in
| the printer file to determine if your output goes to an output queue
| or to a printer. If SPOOL = *YES, a spooled file goes to an output
| queue. If SPOOL = *NO, the output goes directly to a printer.
The names for the output queue and printer device are resolved when the system
searches through the user profile, job description, workstation description, and
system values.
Following are examples that illustrate where output goes from a job that runs in
batch.
Example 1
Assume:
v There has not been a switch to an alternate user profile.
v The spooled file owner is *CURUSRPRF.
v The user’s output queue (OUTQ) is OUTQ1 and the printer device (PRTDEV) is
PRT1.
v The Submit Job (SBMJOB) command is used to submit the job to batch.
v The output queue parameter on the SBMJOB command is specified as
*CURRENT.
v The printer device parameter on the SBMJOB command is specified as
*CURRENT.
When the job runs in batch, the resulting spooled file is sent to OUTQ1 and that
spooled file prints on the printer assigned to OUTQ1.
If no spooling was used when printing, the output would go to printer device
PRT1.
The reason OUTQ1 and PRT1 are used is that *CURRENT is the value passed to
the batch job by the user.
Example 2
Assume:
v There has not been a switch to an alternate user profile.
v The spooled file owner *CURUSRPRF value on the printer file has not been
overridden.
v The user’s output queue (OUTQ) is OUTQ1 and the printer device (PRTDEV) is
PRT1.
v The Submit Job (SBMJOB) command is used to submit the job to batch.
v The output queue parameter on the SBMJOB command is specified as *USRPRF.
v The user profile has *WRKSTN as the value for the output queue parameter.
v The printer device parameter on the SBMJOB command is specified as PRT99.
When the job runs in batch, the resulting spooled file is sent to the output queue
named PRT99 and the spooled file prints on PRT99. The *WRKSTN value for
output queue is interpreted as *DEV and an output queue having the same name
as the printer device is selected.
Example 3
Assume:
v There has not been a switch to an alternate user profile.
v The spooled file owner *CURUSRPRF value on the printer file has not been
overridden..
v The user’s output queue (OUTQ) is OUTQ1 and the printer device (PRTDEV) is
PRT1.
v The Submit Job (SBMJOB) command is used to submit the job to batch.
v The output queue parameter on the SBMJOB command is specified as *USRPRF.
v The user profile has *WRKSTN as the value for the output queue parameter.
v The printer device parameter on the SBMJOB command is specified as
*WRKSTN.
When the job runs in batch, the resulting spooled file is sent to the system printer.
This is because the *WRKSTN value for output queue is interpreted as *DEV and
the printer device value of *WRKSTN is interpreted as *SYSVAL.
If no spooling was used when printing, the output would go to the printer defined
as the system printer. This is the printer name assigned to the system value
QPRTDEV.
Record the names of the output queue and the printer device in the empty blocks
to the right of the diagram. The completed diagrams with the correct names for the
output queues and printer devices are available on the next page.
Note: Keep in mind the SPOOL parameter value when deciding on your answer.
+ Again, the system looked first at the printer file, but this time it found SPOOL =
+ *NO. Next, it looked at the device value in the printer file, which is *JOB. It then
+ looked at the device value in the job attribute PRTDEV.
If you had difficulty identifying the correct output queue and printer device you
should go to “Controlling print activity” on page 13 and read the information again
on controlling printing activity.
The following table provides a list of all the parameters of the CRTPRTF command.
It also indicates if those parameters can be changed or temporarily overridden
through the Override Printer File (OVRPRTF) command or through a program
written in a high-level language (HLL) such as RPG, COBOL, PL/I, C, or BASIC.
If, at this time, you want to become familiar with this command, type CRTPRTF
and press F4 (Prompt). Or you can go to “What parameters make up a printer
file?” on page 41 and view a chart that lists all the printer file parameters.
The next section of this chapter contains examples where an application program
calls (uses) a user-created printer file. The examples focus on a program-described
printer file and an externally described printer file.
The reason the terms externally described or program-described are important is that
by specifying *NONE on the SRCFILE parameter of the CRTPRTF command, the
user is telling the system that the high-level language the application program is
written in will control how the printed output appears on a printed page.
To show you how printer files interact with application programs there is an
example of a printer file using program-described files and one using externally
described files (DDS).
Do you want to read through the example of the program described printer file or
through the example of the externally described printer file?
Program Described
Externally Described
↓ Go to “Using an externally-described printer file with an application
program” on page 59.
READ ADDRESS 10
*IN10 DOWEQ'0'
ADD2 IFEQ *BLANKS
MOVE '1' *IN55
ELSE
MOVE '0' *IN55
END
*********************************************************************
2 EXCPTPRINT
*********************************************************************
READ ADDRESS 10
END
*********************************************************************
3 MOVE '1' *INLR
*********************************************************************
CKCITY BEGSR
MOVEA*BLANKS CTAR
MOVEA*BLANKS STAR
MOVEA*BLANKS ZPAR
MOVEA*BLANKS CSAR
MOVEACITY CTAR
MOVEAST STAR
MOVEAZIP ZPAR
Z-ADD1 X 20
Z-ADD1 Y 20
EXSR LOOKBL 1ST WORD.
ADD 1 X
CTAR,X IFGT *BLANKS 2ND WORD
MOVE ' ' CSAR,Y
ADD 1 Y
EXSR LOOKBL
4 ADD 1 X
CTAR,X IFGT *BLANKS 3RD WORD
MOVE ' ' CSAR,Y
ADD 1 Y EXSR LOOKBL
END
END
MOVE ',' CSAR,Y
ADD 1 Y
MOVE ' ' CSAR,Y
ADD 1 Y
MOVE STAR,1 CSAR,Y
ADD 1 Y
LOOKBL BEGSR
CTAR,X DOWGT*BLANKS
MOVE CTAR,X CSAR,Y
ADD 1 X
ADD 1 Y
END
ENDSR
*********************************************************************
RTE 1 2 PRINT
Open processing
Part 1 of the application program opens files that are called by the application
program.
When a program opens files, an object of type *FILE is connected to the program
for processing. Among the files opened in this example, and of particular interest
at this point, is the printer file whose name is LABELPRT. You can find the printer
file name LABELPRT next to the 1 in the program listing.
A printer file is opened to prepare the system so that the application can put data
into a spooled file or print it out directly to a printer. Information from the
high-level language application program, the printer file, and any printer file
overrides is combined.
The printer file open operation is controlled by parameters specified in the printer
file, the high-level language program, and in printer file overrides (through the
OVRPRTF command). See “Overriding printer files” on page 69 for more
information on overrides.
As an example, if the printer file specified lines per inch (LPI) of 8, and an
OVRPRTF command specified an LPI of 6, the LPI of 6 would be used since the
override value specified by the OVRPRTF command takes precedence over the LPI
value specified in the printer file.
Some of the values are discussed in more detail than others, because some of the
parameters have many more possible values than others.
FILE
Specifies the qualified name by which the printer file being called is known.
DEV
Specifies the name of a printer device description. The device description is an
object that contains information describing a particular device (printer in this
case) or logical unit that is attached to the system. For nonspooled output, this
identifies the printer device used with the printer file to produce the printed
output. For spooled output, if OUTQ(*DEV) is also specified, the default
output queue for the specified printer is used for the spooled file.
DEVTYPE
Specifies the type of data stream created for a printer file. This parameter
indicates whether the resulting data stream should be:
If the DEVTYPE is *SCS, the CPI parameter is used for the conversion. The
CPI value should match the pitch of the specified FONT, or the FONT
parameter should be *CPI. Let’s use the same values as in the previous
Note: Do not specify an AFP Unicode migration font character set and code
page for this printer file parameter. Specify a Unicode font using the
FNTCHRSET DDS keyword in the DDS Print Reference in the online
AS/400 Information Center.
CDEFNT
Specifies the coded font and point size to be used at printing time.
A coded font is an AFP resource that is made up of a font character set name
and a code page name. A point size is required for outline fonts.
For more information about coded fonts and their relationship to font character
sets, code pages, and font global identifiers (FGIDs), go to “Using the coded
font (CDEFNT) parameter” on page 100.
PAGDFN
Specifies the page definition to be used to format line data.
Print Services Facility/400 (PSF/400) requires a page definition when *LINE or
*AFPDSLINE is specified for the device type. An inline page definition gets
built from the printer file parameters if you specify either *LINE or
*AFPDSLINE, and you specify *NONE for the page definition.
FORMDF
Specifies the form definition to use when printing a file. A form definition is a
resource object that defines the characteristics of the form. Characteristics
include duplexing, overlays, position of page data on the form, number of
copies, modification of pages, and input drawer. When printing to a printer
that is configured as AFP(*YES), a form definition is required. If you do not
provide a form definition, an inline form definition will be built from the
printer file parameters.
AFPCHARS
Specifies one or more AFP characters (coded fonts) to use with line data and a
page definition.
TBLREFCHR
Specifies whether or not table reference characters are present in the line data.
When you use forms control characters with the data, the table reference
character follows the forms control characters, but precedes the data bytes. If
you do not specify forms control characters, the table reference character is the
Note: Overlays and page segments do not rotate with the rest of the page.
Output processing
Part 2 of the application program performs the operations of reading, compiling,
and sending the output to the output queue specified in the OUTQ parameter of
the CRTPRTF command or to the printer specified in the DEV parameter of the
CRTPRTF command. In this example, the SPOOL parameter has a value of (*YES).
This means the output will become a spooled file in the designated output queue.
The following printer file parameters are the CRTPRTF parameters looked at by
the system program and application program during the output processing portion
of the application program. Unless otherwise noted, these parameters also apply to
externally-described printer files.
SRCFILE
Specifies the qualified name of the source file and member, if one exists, that
contains the data description specifications (DDS).
This example does not use a DDS source file. Thus, when the application
program calls the printer file LABELPRT and looks at the SRCFILE parameter,
the value will be *NONE.
Front side overlays are valid only for printers configured for Advanced
Function Printing*. For more information on overlays, go to “Using the overlay
(FRONTOVL and BACKOVL) parameters” on page 89.
BACKOVL
Specifies the overlay to be used on the back side of a piece of paper. Possible
values are:
v *NONE (No overlay is used.)
v Qualified overlay-name (The name of the overlay to be used, the library the
overlay is in, and whether to use the constant back function.)
v *FRONTOVL (Use the overlay specified for the FRONTOVL parameter.)
Back side overlays are valid only for printers configured for advanced function
printing. For more information on overlays, go to “Using the overlay
(FRONTOVL and BACKOVL) parameters” on page 89.
MAXRCDS
Specifies, for spooled output only, the maximum number of records in the
spooled file for spooled jobs using this printer file.
DFRWRT
DFRWRT(*YES) means the system controls the amount of output held in the
buffer before being sent to the printer.
For spooled files, DFRWRT(*NO) means spooled data is sent to the printer
when a page of output is available or when the system buffer is full. (Buffers
are usually 512 bytes.) DFRWRT(*NO) has effect on spooled files only if
SCHEDULE(*IMMED) is specified.
For direct output, DFRWRT(*NO) means data is sent to the printer each time
the application program performs a write operation.
Close processing
Part 3 of the application program performs the close operations of the
application program.
When the application program has finished the output processing part of the
application program, it performs a close operation on all the files it opened during
the open processing portion of the application program.
The following printer file parameters from the CRTPRTF command are the
parameters looked at by the system program and the application program during
the close portion of the application program.
SCHEDULE
Specifies, for spooled files only, when the spooled file is made available to the
printer writer program.
This is the RPG-coded application program. The reverse-image numbers within the
program correspond to the list on the following pages. That list explains how this
program works and specifically how the program opens and uses the printer file.
v Part 1 opens the printer file
v Part 2 sends the output to the designated output queue
v Part 3 closes the opened files
v Part 4 processes the data
************************************************************************
FADDRESS IF E K DISK
1 FLABELPR3O E PRINTER
************************************************************************
CTAR 20 1
CSAR 30 1
STAR 2 1
ZPAR 8 1
READ ADDRESS 10
************************************************************************
WRITEHEADNG
*IN10 DOWEQ'0'
EXSR CKCITY
2 WRITEDETAIL1
ADD2 IFNE *BLANKS
WRITEDETAIL3
END
WRITEDETAIL4
READ ADDRESS 10
END
************************************************************************
************************************************************************
3 MOVE '1' *INLR
************************************************************************
CKCITY BEGSR
MOVEA*BLANKS CTAR
MOVEA*BLANKS STAR
MOVEA*BLANKS ZPAR
MOVEA*BLANKS CSAR
LOOKBL BEGSR
CTAR,X DOWGT*BLANKS
MOVE CTAR,X CSAR,Y
ADD 1 X
ADD 1 Y
END
ENDSR
******************************************************************
Open processing
Part 1 of the application program opens files that are called by the application
program. Among those, and of particular interest at this point, is the printer file
whose name is LABELPR3. You can locate LABELPR3 next to 1 in the program
listing.
A printer file is opened to prepare the system so that the application can put data
into a spooled file or print it out directly to a printer. Information from the
high-level language application program, the printer file, and any printer file
overrides is combined.
The printer file open operation is controlled by parameters specified in the printer
file, the high-level language program, and in printer file overrides (through the
OVRPRTF command). See “Overriding printer files” on page 69 for more
information on overrides.
Output processing
Part 2 of the application program performs the operations of reading, compiling,
and sending the output to the output queue specified in the OUTQ parameter of
the CRTPRTF command, or to the printer specified in the DEV parameter of the
CRTPRTF command. In this example, the SPOOL parameter has a value of (*YES)
which means the output will become a spooled file in the designated output
queue.
Unless otherwise noted, the printer file parameters listed in “Output processing”
on page 56 are also valid for externally-described printer files.The following
printer file parameters from the CRTPRTF command are additional parameters that
are looked at by the application program during the output processing.
SRCFILE
Specifies the qualified name of the source file and member, if one exists, that
contains the data description specifications (DDS).
Since this example uses DDS, look at 1 in the program listing and see that
the name of the printer file is LABELPR3. LABELPR3 was compiled using the
source from the member and file that are listed here. See “DDS keywords” for
an example of the compiled DDS and a list of DDS keywords.
Note: The DDS will be compiled before the application program runs. The
application program never looks at the DDS file and member, only at
the compiled results.
Option
Specifies the type of printout that will be produced when the printer file is
created.
GENLVL
Specifies the severity level of DDS messages that cause file creation to fail.
This example uses three DDS keywords: SPACEB, UNDERLINE, and HIGHLIGHT.
DDS keywords: Below is a listing of all available DDS keywords associated with
printer files.
The following list contains all the DDS keywords that you can use to help you
control how your printed output will look. Remember, some DDS keywords can
only be used if the target printer supports them. For example: COLOR can only be
specified if the target printer is a 4224.
For more detailed information on how to create and code DDS source files and to
find out which printers support which DDS keywords, see the DDS Reference
topic in the online AS/400 Information Center.
ALIAS
Alternative Name. Use this field-level keyword to specify an alternative name
for a field. When the program is compiled, the alternative name is brought into
the program instead of the DDS field name. The high-level language compiler
in use determines if the alternative name is used. Refer to the appropriate
high-level language reference manual for information about ALIAS support for
that language.
ALIAS
Bar Code. Use this field-level keyword to print a field as a user-specified bar
code. BARCODE is valid for IPDS printers. (A bar code is a pattern of bars of
various widths containing data to be interpreted by a scanning device.)
BLKFOLD
Blank Fold. Use this field-level keyword for named fields that overflow onto
subsequent print lines, to cause folding to occur at a blank rather than at the
end of a line. If the blank fold keyword is not specified, the line folds at the
end of the physical print line.
| BOX
| Box. Use this record-level keyword to specify the position on a page where a
| box should be drawn. You can specify the corners and the weight (thickness)
| of the lines in the box. Additionally, you can specify the color of the lines of a
| box and whether to have box shading. If you select box shading, you can also
| specify the color of the box shading. For more information on the DDS box
| keyword, DDS Reference topic in the AS/400 Information Center.
| CCSID
| Coded Character Set Identifier. Use this file-, record-, or field-level keyword to
| specify that a ’G’ type field supports UCS-2 data instead of DBCS graphical
| data.
CDEFNT
Coded Font. Use this record- or field-level keyword to specify the coded font
and point size for printing a named or constant field or fields within a record.
For more information on the DDS coded font keyword, go to DDS Reference
topic in the AS/400 Information Center.
CHRID
Character identifier. Use this field-level keyword to specify that a graphic
character set and code page other than the device default can be used for this
field. This can be important when extended alphabetics (characters such as u
with an umlaut or c with a cedilla) are to be printed.
CHRSIZ
Character Size. Use this record- or field-level keyword to expand the width
Note: Overlays and page segments do not rotate with the rest of the page.
PAGSEG
Page Segment. Use this record-level keyword to specify the inclusion of a page
segment to be printed at a specific location on a page. For more information on
the DDS page segment keyword, go to the DDS Reference topic in the AS/400
Information Center.
POSITION
Position. Use this field-level keyword to specify the position of a field using
the units specified on the unit of measure (UOM) printer file parameter. For
more information on the DDS position keyword, go to the DDS Reference topic
in the AS/400 Information Center..
PRTQLTY
Print Quality. Use this record- or field-level keyword to vary the print quality
within the file.
The PRTQLTY keyword is allowed only on records or fields for which a
CHRSIZ or BARCODE keyword applies.
REF
Reference. Use this file-level keyword to specify the name of a file from which
field descriptions are to be retrieved.
REFFLD
Referenced Field. Use this field-level keyword when referring to a field under
one of these three conditions:
v The name of the referenced field is different from the name in positions 19
through 28.
v The name of the referenced field is the same as the name in positions 19
through 28, but the record format, file, or library of the referenced field is
different from that specified with the REF keyword.
v The referenced field occurs in the same DDS source file as the referencing
field.
SKIPA
Skip After. Use this file-, record-, or field-level keyword to specify that the
printer device is to skip to a specific line number after it prints one or more
lines.
SKIPB
Skip Before. Use this file-, record-, or field-level keyword to specify that the
printer device is to skip to a specific line number before it prints the next
line(s).
Close processing
Part 3 of the application program performs the close operations of the
application program.
When the application program has finished the output processing part of the
application program, it performs a close operation on all the files it opened during
the open processing of the application program.
The application program looks at the SCHEDULE parameter from the CRTPRTF
command during the close portion of the application program. For more
information on how the SCHEDULE parameter is used to control when the
spooled file is made available to a printer writer, go to “Using the SCHEDULE
parameter” on page 76.
Bonnie Fohrman
Box 123
RR 1
Chatfield, IA 55924
Cindy Olson
502 9th Ave.
RR2
St. George Cove, IN 46043
Lynn Smith
808 5th St.
Peru, IN 46234
Michael Jones
Box 215
Preston, MN 55923
Pat Edwards
123 River Road
St. Charles, MN 55945
Cindy Olson
502 9th Ave.
RR2
St. George Cove, IN 46043
Lynn Smith
808 5th St.
Peru, IN 46234
Pat Edwards
123 River Road
St. Charles, MN 55945
Overrides are particularly useful for making minor changes to the way a program
functions or for selecting the data on which it operates, without having to
recompile the program. Their principal value is in allowing you to use general
purpose programs in a wider variety of circumstances. Examples of items where
overrides may be used are:
v Changing the name of the file to be processed
v Indicating whether output is to be spooled
v Changing printer characteristics such as lines per inch and number of copies
It is also possible to use overrides to direct data input or data that is output to a
device of a different type. For example, sending data that is intended for a diskette
to a printer instead. This use of overrides requires somewhat more foresight than
the override applications listed above. The program must be able to accommodate
the different characteristics of the two devices involved. For information about the
special considerations that are required for overrides that change the file type or
redirect files, see the Distributed Data Management topic in the AS/400
Information Center.
You can use overrides to change most, but not all, of the file attributes that are
specified when the file is created. In some cases, you can specify attributes in
overrides that are not part of the original file definition. Refer to the command
descriptions available in the online help for more information.
Overriding a file is different from changing a file in that an override does not
permanently change the attributes of a file. For example, if you override the
number of copies specified in a printer file by requesting six copies instead of two,
the file description for the printer file still specifies two copies, but six copies are
printed. The override command tells the system which file to open and what its
file attributes are.
Applying overrides
There are three different types of file overrides. These are:
v Overriding file attributes
For example, you could temporarily change the number of copies you want
printed from one to three by overriding the value specified on the COPIES
parameter.
v Overriding file names or types
For example, you could temporarily change which printer file the program uses.
v Overriding file names and file attributes of the new file
For example, you could temporarily change the printer file used and also
temporarily change some of the values specified in the new printer file.
For example, assume that you create a printer file named OUTPUT with these
attributes:
v Page size: 66 by 132
v Lines per inch: 6
v Copies of printed output: 2
v Pages for file separators: 2
v Overflow line number: 55
The printer file named OUTPUT is specified in your application program with an
overflow line number of 58. However, before you run the application program, you
want to change the number of copies of printed output to 3 and the overflow line
to 60. The override command looks like this:
OVRPRTF FILE(OUTPUT) COPIES(3) OVRFLW(60)
When you call the application program, three copies of the output are printed.
When the application program opens the file, the file overrides, program-specified
attributes, and file attributes are merged to form the open data path (ODP) which
is used to manage the file during the running of the program. File overrides have
precedence over program-specified attributes. Program-specified attributes have
precedence over file-specified attributes. In this example, when the file is opened
and output operations are performed, spooled output will be produced with a
page size of 66 by 132, six lines per inch, three copies, two file separator pages,
and overflow at 60 lines.
Program-Specified
Attributes Open Data Path
SPOOL(*YES)
PAGESIZE(66 132)
OVRFLW(58) LPI(6)
COPIES(3)
FILESEP(2)
OVRFLW(60)
Override Command
COPIES(3)
OVERFLW(60)
RV2H328-0
The file REPORTS must have been created (CRTPRTF command) before it can be
used.
If you want to override to a different type of file, you use the override command
for the new type of file. For example, if you are overriding a diskette file with a
printer file, use the Override with Printer File (OVRPRTF) command.
Overriding file names or types and file attributes of the new file
This form of overriding files is simply a combination of overriding file attributes
and overriding file names or types. With this form of override, you can override
the file that is to be used in a program and you can also override the attributes of
the overriding file. For example, you want the output from your application
program to be printed using printer file REPORTS instead of printer file OUTPUT
(OUTPUT is specified in the application program). In addition to having the
application program use printer file REPORTS, you want to override the number
of printed copies to three. Assume printer file REPORTS was created with the
following command:
CRTPRTF FILE(REPORTS) SPOOL(*YES)
PAGESIZE (68 132) LPI(8)
OVRFLW(60) COPIES(2) FILESEP(1)
Then call the application program, and three copies of the output are printed using
the REPORTS printer file.
Note that this is not equal to the following two override commands:
Override 1
OVRPRTF FILE(OUTPUT) TOFILE(REPORTS)
Override 2
OVRPRTF FILE(REPORTS) COPIES(3)
Only one override is applied for each call level for an open of a particular file, so if
you want to override the file that is used by the program and also override the
attributes of the overriding file from one call level, you must use a single
command. If two overrides are used, the first override will cause the output to be
printed using the REPORTS printer file, but the second override will be ignored.
CL program overrides
If a CL program overrides a file and then calls a high-level language program, the
override remains in effect for the high-level language program. However, if a
high-level language program calls a CL program that overrides a file, the override
is deleted automatically when control returns to the high-level language program.
High-level language program:
CALL CLPGM1
CL program:
OVRPRTF FILE(PRTF1) TOFILE(MSTOUT)
.
The file opened is PRTF1, not MSTOUT. This is because the override in the CL
program is deleted when the CL program ends.
By specifying *PRTF as the file name on the OVRPRTF command, you can apply
one override to all printer files
The override specified on the OVRPRTF command with *PRTF is applied if there is
no other override for the printer file name at the same call level. The following
example shows how *PRTF works:
Override 1
OVRPRTF FILE(OUTPUT) COPIES(6) LPI(6)
Override 2
OVRPRTF FILE(*PRTF) COPIES(1) LPI(8)
CALL PGM(X)
When program X opens the file named OUTPUT, the opened file has the following
attributes:
COPIES(6)
From Override 1
LPI(6) From Override 1
When program X opens the file named PRTOUT, the opened file has the following
attributes:
COPIES(1)
From Override 2
LPI(8) From Override 2
Deleting overrides
If you want to delete an override before the program has completed running, you
can use the Delete Override (DLTOVR) command. This command deletes only
You can delete all printer file overrides at this call level by specifying *ALL for the
FILE parameter.
Following is an example that shows two printer file overrides, PRTC and PRT3.
The override is changing the COPIES parameter value in both cases. The third line
of the example shows the Delete Override (DLTOVR) command with the FILE
parameter value set to *ALL. This means the overrides to PRTC and PRT3 are
deleted.
OVRPRTF FILE(PRTC) COPIES(2)
OVRPRTF FILE(PRT3) COPIES(4)
DLTOVR FILE(*ALL)
Displaying overrides
You can use the Display Override (DSPOVR) command to display printer file
overrides. You can display all printer file overrides or overrides for a specific
printer file.
However, when the FILE parameter has a value of *ALL, the system presents a
display with all the active overrides to all the file types supported on the system.
Using FILE(*ALL) on the DSPOVR command is an indirect way to learn what
overrides are active for any printer files; a more direct way is to issue a DSPOVR
command for each printer file.
Using the CHGPRTF command makes the specified changes permanent for the
current active session and for all future sessions. You can still apply overrides to a
printer file that has been changed. However, the override is only active for the
current session.
Let’s assume that you have a mailing label program that uses a printer file named
LABELPR3. You now want to have two sets of mailing labels every time the
mailing label program is run and you want the spooled file to go to the output
queue named LABELS. The CL command would look like:
CHGPRTF FILE(LABELPR3) COPIES(2) OUTQ(LABELS)
When any application program that uses printer file LABELPR3 is run, the spooled
file will go to output queue LABELS and two copies of the mailing labels will be
printed. For more information on the CHGPRTF command, see the CL Reference
topic in the Information Center.
However, to use the functions provided by many of the printer file parameters that
are supported for AFPDS, the spooled file must be created with a printer file that
specifies a device type of *AFPDS. These parameters include FRONTMGN,
BACKMGN, FRONTOVL, BACKOVL, FNTCHRSET, CDEFNT, and IGCCDEFNT.
In cases where the AS/400 system does not actually generate the AFP data stream
(the list above) either a printer file is not used or the DEVTYPE parameter for the
printer file is ignored.
Throughout this manual, AFPDS output that is created on the AS/400 system with
a printer file specifying DEVTYPE(*AFPDS) is referred to as *AFPDS created on the
AS/400 system.
This spooled file can then be sent to an ASCII printer attached to an AS/400
system. It is recommended that you not use file or job separators when you specify
DEVTYPE(*USERASCII).
Note: Do not put hex 03 transparency commands in the data stream. Instead, put
only ASCII commands the target printer can understand. The AS/400
system inserts the hex 03 commands with the correct lengths; thus, no
EBCDIC to ASCII translation occurs.
*JOBEND considerations
The SCHEDULE(*JOBEND) spooled files of a job are grouped together on their
output queues when the job completes. All SCHEDULE(*JOBEND) spooled files of
the same job that are grouped together on a queue are produced together by the
writer. Another spooled file can be added to the top of the queue while the writer
is producing a SCHEDULE(*JOBEND) spooled file. After a writer produces one file
of a job that is SCHEDULE(*JOBEND), it checks the following file on the queue. If
this file is from the same job and is also SCHEDULE(*JOBEND), the writer
produces it next. However, if the file is from a different job or is not
SCHEDULE(*JOBEND), the first file on the queue is produced next.
*IMMED considerations
When a writer is producing a SCHEDULE(*IMMED) spooled file, it may catch up
to the program producing the output. When this happens, the writer must wait for
the program to produce more output. Because of this, you should be careful using
*IMMED for the schedule option. When this happens, the writer cannot process
other spooled files. Moreover, the device cannot be used for any other work.
Normally, spooled files that are created with SCHEDULE(*IMMED) specified are
assigned a smaller internal buffer than spooled files that are created with
SCHEDULE(*JOBEND) or SCHEDULE(*FILEEND) specified. Using
SCHEDULE(*IMMED) to assign a smaller internal buffer may allow the spooled
data to be produced sooner, but can also adversely affect performance because
more disk operations are needed for the same amount of spooled data.
+ A large internal buffer is always used for spooled print files that use certain special
+ device requirements. Special device requirements include:
+ v Defined characters
+ v Graphics 4214
+ v Graphics 4234
+ v Graphics 522x
The priority of a spooled file when it is created is set from the printer file. Use the
Create Printer File, Change Printer File, or Override with Printer File commands to
set the OUTPTY parameter to the desired value before the file is opened. After the
file is opened, the output priority of the spooled file can be changed by using the
CHGSPLFA command.
If the value on the STRPRTWTR align parameter is *WTR, the printer writer keeps
track of spooled files that are to be printed and issues a forms alignment message
whenever it determines that forms alignment is needed.
If this value is *FIRST, the forms alignment message is issued only for the first
spooled file printed.
The following cause the printer writer to issue a forms alignment message:
v Delete or hold spooled file command (option *IMMED) issued against a spooled
file with a status of WTR
v Printer writer or spooled file restarted
v Previous spooled file was created with ASCII data (virtual print) and current
spooled file was not
v Forms length of previous spooled file is different than current spooled file
v File being printed is the first file to print after a printer writer has been started
v Forms type is changed (after a G reply to a CPA3394 or CPA3395 message)
Note: A B reply to these messages allows you to skip or not receive the
alignment message.
v Incorrect control characters have been detected on a work station printer in the
previous file
v The Cancel key on a work station printer has been pressed while the previous
file is being printed
v A C (Cancel) reply has been given to the inquiry message for unprintable
characters detected on a work station printer in a previous file
v An H (Hold) reply has been given to some inquiry messages on a work station
printer
v A printer writer has recovered from a communications failure on a remote work
station printer
If the value on the STRPRTWTR align parameter is *FILE, the printer writer looks
at the attributes of the spooled file created by the application program. Specifically,
the printer writer looks at the align parameter value of the spooled file attributes
to determine if it should send a forms alignment check.
If the align parameter value of the spooled file attributes is *YES, the printer writer
sends a message to check forms alignment on the target printer.
If the align parameter value of the spooled file attributes is *NO, the printer writer
does not send any messages to check forms alignment on the target printer.
If you want to avoid any forms alignment messages, you can specify *FILE for the
align parameter on the Start Printer Writer (STRPRTWTR) command and *NO as
the align parameter value of the printer file. With this combination of values, the
AS/400 system does not send any messages to check alignment.
The system automatically senses when the output is too large to fit on the paper
that is loaded in the printer for the following: 3831, 3835, 3900, InfoPrint 3000, and
InfoPrint 4000 printers. It also senses whether the paper is larger than 8 1/2 inches
by 14 inches. In the information below, the expression “too large to fit on the
form” refers to a page size that is defined in the printer file parameters. If both the
length and width exceed 8.5 inches, or if the length or width is greater than 14
inches, the information is too large for the form. For example, a page defined to be
13.2 inches-wide and 11 inches long is too large for a form that is 8.5 inches-wide
and 14 inches-long. This would be a candidate for computer output reduction
(COR). This applies for printers other than the 3831, 3835, 3900, InfoPrint 3000, and
InfoPrint 4000.
If PAGRTT = *AUTO
v If the output is too large to fit on the form, computer output reduction is
performed automatically.
v If the page is wider than it is long, the page is rotated 90 degrees. If it is not
wider than it is long, the page is not rotated.
v *AUTO is only supported for spooled files with a device type (DEVTYPE) of
*SCS, *IPDS, or *AFPDS that is created on an AS/400 system. It is not supported
for files with a device type of *USERASCII, *LINE, *AFPDSLINE, or *AFPDS
that is not created on an AS/400 system.
If PAGRTT = *DEVD
v If the output is too large to fit on the form, computer output reduction is
performed automatically.
v If the page is wider than it is long, the page is rotated 90 degrees. If it is not
wider than it is long, the page is not rotated.
Note: When the PAGRTT parameter value is *AUTO or *DEVD, computer output
reduction (COR) is not provided if the spooled file has any of the Device
Requirements fields set to Y. Use the Work with Spooled Files (WRKSPLF)
command and select option 8=Attributes to view the device requirements
for any spooled file.
If PAGRTT = *COR
v Output is rotated 90 degrees.
v Page size is set to 11 by 8.5 inches.
v Font substitution occurs as follows:
– 12-pitch fonts are replaced with 15-pitch fonts.
– 15-pitch fonts are replaced with 20-pitch fonts.
– All other fonts are replaced with a 13.3-pitch font (with the exception of the
4028 printer, which uses a 15-pitch font).
Note: When the PAGRTT parameter value is *COR, computer output reduction
is not provided if the spooled file is *AFPDS, was created on the AS/400
system, and has any of the Device Requirements fields set to Y.
Use the Work with Spooled Files (WRKSPLF) command and select option
8=Attributes to view the device requirements for any spooled file. In
addition, *COR is not supported for spooled files with a device type of:
– *USERASCII
– *LINE (if the spooled file is sent to a printer configured with
AFP(*YES))
– *AFPDSLINE
– *AFPDS (if the spooled file was not created on the AS/400 system)
X X X X
Page 1, on a 3835 Page 1, on a
paper.
on portrait
degrees rotation,
printer, at 90
Page 1, on a 3835
paper.
landscape
rotation, on
at 0 degrees
3835 printer,
Page 1, on a
printer, at 90 3835 printer,
degrees rotation, at 0 degrees
on landscape rotation, on
paper. portrait
paper.
Page 2
Page 2
Page 2
Page 2
Page 3
Page 3
Page 3
Page 3
Page 4
Page 4
RV3H005-0
Side
Back
Back Side
Front Side
Back Side
RV2H310-1
Note: A page segment or overlay included using the DDS PAGSEG or OVL
keyword is not rotated with the rest of the printed output. This is also true
of an overlay (front or back) specified on the printer file.
You must specify the degree of rotation when the page segment or overlay
is created. Advanced Function Printing Utilities/400 can be used to create
overlays and page segments.
For information on MULTIUP when the REDUCE parameter value is *NONE, see
“Using the MULTIUP(1, 2, 3, or 4) and REDUCE(*NONE) parameters” on page 86.
The MULTIUP parameter allows you to print more than one logical page of data
on a piece of paper. Depending on the printer that you are using, you can print
from one to eight logically formatted pages on one physical piece of paper.
Using a printer that supports duplex printing, you could have four logical pages
printed on each side of the physical paper, thus reducing the number of physical
pages printed from eight to one.
Note: If overlays (using the front overlay (FRONTOVL) and back overlay
(BACKOVL) parameters) are included in output using MULTIUP support,
the overlay applies to the whole sheet. That is, the front overlay is placed on
the front side of the paper and the back overlay on the back side.
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
MULTIUP support
MULTIUP support is available on the following printers:
v 3130 3812 3816 3820 3825 3827 3828 3829 3831 3835 3900 3912 3916 3930 3935
4028 4312 4317 4324 Infoprint 20 Infoprint 32
These are IPDS printers that support page rotation (PAGRTT) and pages per side
(MULTIUP).
For all the above-described printers, the following diagrams are examples of how
the output will print depending on the PAGRTT and MULTIUP values.
Page 1
Page 1
Page 1
Page 1
Page 1
Page 1
Page 1
Page 2
Page 2
Page 2
Page 2
Page 2
If the logical page width is less than or equal to 8 inches and the logical page
length is less than 5 inches, the font is not changed.
If the logical page width is greater than 8 inches, or the logical page length is
greater than 5 inches, the font is selected based on the following table:
Note: Any references to the 4028 printer in the following tables also apply to the
3912, 3916, 4312, 4317, 4324, InfoPrint 20, and InfoPrint 32 printers. The
following footnotes apply to all of the tables about MULTIUP Font
Substitution that are included here.
Notes:
1. If the target printer does not have font 230 resident, it uses font 223.
2. If the target printer is a 4028 and has font 283 (20 pitch) resident, it uses font
283. Otherwise it uses font 281 (20 pitch).
3. If the target printer is a 3130 or 3935, it will use font 416 with point size of 4
(30 pitch). If the target printer is a 4028 and does not have font 290 resident but
does have font 283 resident, it will use font 283. If the target printer is a 4028
and does not have font 290 or 283 resident, it will use font 281 (20 pitch).
Table 2. MULTIUP font substitution for page rotation 0 or 180 with MULTIUP(2)
Page Width (Characters) Page Length (Inches) Font Used Pitch (CPI)
1
1 through 123 characters Less than or equal to 5 230 15
inches
1 through 123 characters Greater than 5 inches 254 17
124 through 139 characters All 254 17
2
140 through 163 characters All 281 202
Greater than or equal to 164 All 2903 273
characters
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
Page 1 Page 2
If the logical page width is less than or equal to 5 inches and the logical page
length is less than 8 inches, the font is not changed.
If the logical page width is greater than 5 inches, or the logical page length is
greater than 8 inches, the font is selected based on the following table:
Page 1 Page 3
Page 1 Page 3
Page 1 Page 3
Page 1 Page 3
Page 1 Page 3
Page 1 Page 3
Page 1 Page 3
Page 2 Page 4
Page 2 Page 4
Page 2 Page 4
Page 2 Page 4
Page 2 Page 4
Page 2 Page 4
Page 2 Page 4
If the logical page width is less than or equal to 3.75 inches and the logical page
length is less than 5 inches, the font is not changed.
If the logical page width is greater than 3.75 inches, or the logical page length is
greater than 5 inches, the font is selected based on the following table:
Table 4. MULTIUP font substitution for page rotation 0 or 180 with MULTIUP(4)
Page Width (Characters) Page Length (Inches) Font Used Pitch (CPI)
1 through 54 characters Less than or equal to 5 230* 15
inches
1 through 54 characters Greater than 5 inches 254 17
55 through 61 characters All 254 17
2
Characters 62 through 71 All 281 202
Greater than or equal to 72 All 2903 273
characters
Page 2 Page 4
Page 2 Page 4
Page 2 Page 4
Page 2 Page 4
If the logical page width is less than or equal to 5 inches and the logical page
length is less than 3.75 inches, the font is not changed.
If the logical page width is greater than 5 inches, or the logical page length is
greater than 3.75 inches, the font is selected based on the following table:
Table 5. MULTIUP font substitution for page rotation 90 or 270 with MULTIUP(4)
Page Width (Characters) Page Length (Inches) Font Used Pitch (CPI)
1
1 through 73 characters Less than or equal to 5 230 15
inches
1 through 73 characters Greater than 5 inches 281 20
74 through 83 characters Less than or equal to 3.75 254 17
inches
74 through 83 characters Greater than 3.75 inches 281 20
2
84 through 97 characters All 281 202
Greater than or equal to 98 All 2903 273
characters
To use hardware MULTIUP you can select any MULTIUP value (1 through 4), and
you must specify *NONE as the value on the REDUCE parameter of the printer
file. It is then up to the application to ensure the output fits in the partition
(portion) of the page. The partitioning of the page is determined by the printer.
This combination of MULTIUP and REDUCE parameter values also allows
multiupping of data streams restricted by software multiupping. For example,
*LINE and *AFPDSLINE data streams can be multiupped as can data streams
which contain advanced functions and host resident fonts.
Page 1
Page 1 Page 2
Page 2
Page 3 Page 4
X
Page 3
Page 2
Page 4
Page 5 Page 6
Page 1
Page 5
Page
RV3H000-1
X X
Page 1 Page 2 Page 3
RV3H002-1
Page 3
Page 1
Page 1 Page 2
Page 4
Page 2
Page 3 Page 4
Page 7
Page 5
X
Page 5 Page 6
Page 1 Page 2
Page 8
Page 6
Page 11 Page 12
Page 9
Page 7 Page 8 Page 3 Page 4
Page 10
Page 9 Page 10
Page 11 Page 12
RV3H003-1
X X
Page 1
Page 2
Page 2 Page 4
Page 1 Page 3
Page 3
Page 4
Page 6 Page 8 X
Page 5
Page 6
Page 4
Page 3
Page 5 Page 7
Page 7
Page 8
Page 2
Page 1
Page 10 Page 12
Page 9
Page 10
Page 9 Page 11
Page 11
Page
RV3H047-0
Note: If the device description of the printer has the value for the print while
converting (PRTCVT) parameter set to *YES, the spooled file can print the
pages up to the point where the bar code was encountered no matter what
the fidelity parameter value is.
With your application program, you can use overlays that you created yourself
using the Advanced Function Printing Utilities/400 licensed program, or overlays
sent from System/390.
For more information about the Advanced Function Printing Utilities/400 licensed
program, go to “Advanced function printing utilities/400” on page 325.
The following diagram is an example of an overlay you can create using the AFP
utilities. Additionally, the diagram shows how the merged spooled file data
(Variable Page Data in the diagram) can be integrated into one document.
The merged document can be printed on any IPDS printer configured with
AFP(*YES) in the printer’s device description.
The overlays can only be merged with a spooled file that was created using a
device type (DEVTYPE) of *SCS, *IPDS, or *AFPDS. The *AFPDS must have been
created on an AS/400 system.
Merge
Finished Product
RV2H309-0
To use the contents of the same overlay with different degrees of rotation (0 and 90
degrees), you create the overlay twice, once for 0 degrees and once for 90 degrees.
Assuming that you want the text and the overlay to be read in the same direction,
the overlay offset values (down and across) on the printer file need to change
depending on the degree of rotation of the text (PAGRTT parameter). That is, an
overlay created with 90 degrees rotation is most often used with text that is rotated
90 degrees.
Following are examples of how to determine the overlay parameter values when
page rotation (PAGRTT) is used.
0 1 2 3 4 5 6 7 8 9
5
Another line of text
6 .
.
7
10
11 RV2H337-1
When PAGRTT is 0, the focus point for determining the overlay parameter values
is the top left of the overlay (indicated by the X in the example).
Use the numbers beside the example page to determine the overlay down (3) and
across (2) values.
Overlay parameter values are (3,2). Example 2: Determining Overlay Values with
Page Rotation (PAGRTT) of 90 Degrees. The following example assumes:
v Page size (PAGESIZE) parameter values are (9,11)
v Page rotation (PAGRTT) parameter value is (90)
2 X
.
.
.
.
3
10
11 RV2H338-1
When PAGRTT is 90, the focus point for determining the overlay parameter values
is the bottom left of the overlay (indicated by the X in the example).
Use the numbers beside the example page to determine the overlay down (2) and
across (4) values.
Overlay parameter values are (2,4). Example 3: Determining Overlay Values with
Page Rotation (PAGRTT) of 180 Degrees. The following example assumes:
v Page size (PAGESIZE) parameter values are (11,9)
v Page rotation (PAGRTT) parameter value is (180)
0 1 2 3 4 5 6 7 8 9
4 .
.
5 Another line of text
6 X
7
9 .
.
10 Second line of text
First line of text
11 RV2H339-1
When PAGRTT is 180, the focus point for determining the overlay parameter
values is the bottom right of the overlay (indicated by the X in the example).
Overlay parameter values are (6,4). Example 4: Determining Overlay Values with
Page Rotation (PAGRTT) of 270 Degrees. The following example assumes:
v Page size (PAGESIZE) parameter values are (9,11)
v Page rotation (PAGRTT) parameter value is (270)
0 1 2 3 4 5 6 7 8 9
6 X
7
Another line of text
Second line of text
First line of text
8
.
.
.
.
10
11 RV2H340-1
When PAGRTT is 270, the focus point for determining the overlay parameter
values is the top right of the overlay (indicated by the X in the example).
Use the numbers beside the example page to determine the overlay down (6) and
across (3) values.
Margins define the starting point of printed output on a piece of paper. The
FRONTMGN parameter specifies the starting point on the front side of the paper;
the BACKMGN parameter specifies the starting point on the back side of the
paper.
There are two types of margins: front and back. Offset values, down and across,
are used to fix the position of the margin. Across is defined as left to right. Down
is defined as top to bottom.
The following diagram shows a no-print border. The size of the no-print border
can vary from printer to printer.
0 1 2 3 4 5 6 7 8 9
3
Shaded Area Represents
4 the No-Print Border
10
11 RV2H341-1
Note: If you use margins and overlays together, the offsets have the same unit of
measure (UOM) specified: inches (*INCH) or centimeters (*CM), but not
inches and centimeters together.
To find out if data area QPRTVALS exists on your system, use the following
command:
DSPDTAARA DTAARA(QUSRSYS/QPRTVALS)
If the data area QPRTVALS exists, but position 4 is not set to ’Y’ (uppercase), use
the following command:
CHGDTAARA DTAARA (QUSRSYS/QPRTVALS (4 1)) VALUE ('Y')
If you do not have data area QPRTVALS on your system, you can create one by
using the following commands:
1. CRTDTAARA DTAARA(QUSRSYS/QPRTVALS) TYPE(*CHAR) LEN(256) VALUE(' Y')
Note: The finishing margin is an invisible line along which finishing operations,
such as edge stitching, are done. You specify the position of the finishing
margin, relative to the physical edge, in the reference edge offset element of
the parameter.
Element 1: Reference Edge
Specifies which edge to use for finishing. Possible values are:
*DEVD
The default that is used by the device.
*BOTTOM
The reference edge is the bottom edge.
*LEFT The reference edge is the left-hand edge.
*RIGHT
The reference edge is the right-hand edge.
*TOP The reference edge is the top edge.
The diagram below shows the reference edge offset from the left edge with 2
staples. It uses the following values:
v Element 1: Reference edge—*LEFT
v Element 2: Reference edge offset—*DEVD
v Element 3: Number of staples—*DEVD
v Element 4: Staple offsets—*DEVD
You need to check your printer documentation to determine which elements, and
values of elements, are supported. Where your printer does not support any of the
values for a specific element, specify a value of *DEVD for the element.
Element 1: Reference Edge
Specifies which edge to use for the saddle stitch. Possible values are:
*DEVD
The default that is used by the device.
*TOP The reference edge is the top edge.
*LEFT The reference edge is the left-hand edge.
Element 2: Number of Staples
Specifies the number of staples to use for saddle stitching. Possible values
are:
*DEVD
The default value for the device. This is the value that is used if
*DEVD is also specified for the staple offsets value of this
parameter. When specifying *DEVD for this and for the staple
offset value, the number of staples will be the default that is used
by the device. If you specify one or more offsets, the number of
staples is the same as the number of staple offsets specified.
number of staples
The valid value range is from 1 to 122 staples.
Element 3: Staple Offsets
Specifies the distance between staples that are used in the edge stitching. If
the staple-placement will be on the left or right edge of the paper, the first
staple offset is determined by: measuring from the intersection of the
finishing margin and the bottom edge of the paper to where the center of
the staple will be. Subsequent staple offsets are measured from the same
point (not from the previous staple). If the staple-placement will be at the
top or bottom edge of the paper, the first staple offset is determined by:
measuring from the intersection of the finishing margin and the left edge
of the paper, to where the center of the staple will be. Subsequent staple
offsets are measured from the same point (not from the previous staple).
Possible values are:
In an externally-described file (DDS), the user can use the IGCCDEFNT DDS
keyword to specify a DBCS font. This font will be used to print any DBCS data
encountered in that field or record. If the user has a DBCS-graphic field specified,
the printer file IGCCDEFNT parameter is used unless the IGCCDEFNT DDS
keyword has been specified at the record or field level.
When using a font character set, a character set and a code page must be specified
on the font character set (FNTCHRSET) parameter of the printer file being used. A
point size may be specified for outline fonts. It will be ignored for raster fonts.
You cannot specify a coded font if you use the FNTCHRSET parameter on the
printer file.
You can find out which font character sets and code pages come with the AS/400
system by using the Work with Font Resources (WRKFNTRSC) command and
specifying QFNTCPL for the library and *FNTCHRSET or *CDEPAG as the object
attribute.
Font character sets and code pages are downloaded from the AS/400 system to an
IPDS printer when the spooled file is printed. They are supported on all IPDS
Note: When a printer file is created and a character set and code page are
specified for the font character set (FNTCHRSET) parameter, column spacing
is done using this printer file level parameter. Any fonts or code pages
specified in the DDS FNTCHRSET keyword are ignored and the font and
code page specified in the printer file parameter FNTCHRSET are used.
A coded font is the combination of a font character set and a code page. This
combination is assigned a name and called a coded font.
Note: The coded font contains only the names of the font character set and code
page. It does not contain the font and code page data.
A point size may be specified for outline fonts. It will be ignored for raster fonts.
You can find out which coded fonts come with the AS/400 system by using the
Work with Font Resources (WRKFNTRSC) command and specifying QFNTCPL for
the library and *CDEFNT as the object attribute.
Note: If you have obtained coded fonts from other sources but have them in a
different library, the WRKFNTRSC command can display the coded fonts
located in that library.
You can specify a library for the coded font specified on the printer file. However,
if the font character set and code page that make up the coded font are not in a
library that is defined to your library list, the coded font is not found.
Open considerations
The following considerations apply to opening printer files for spooled output:
v The output queue should be created for the type of output your program
produces so that system operator intervention can be kept to a minimum while
a printer writer is producing output. You should consider the following when
creating an output queue:
– What form of output is being produced (printer or diskette).
Output considerations
The following considerations apply to output operations performed on spooled
files:
Force-end-of-data considerations
The force-end-of-data (FEOD) operation can make part of the spooled file available
to the writer unless SCHEDULE(*JOBEND) or HOLD(*YES) are specified for the
file. This operation lets you write parts of a spooled file; for example, you can
write one order at a time. You should not use the force-end-of-data operation for
normal output. A new spooled file is started after each FEOD operation.
Close considerations
When the schedule value is *FILEEND, the output file is made available to the
printer writer. The file resources used by the program are deallocated.
If an application program is writing data when the system ends abnormally, the
spooled output is shown containing 0 pages on spool displays such as the
WRKOUTQ, WRKSPLFA, and WRKJOB displays. Records that were stored in
internal system buffers are lost.
Spooled files that contain no records (open and close, but no output) are
automatically deleted by the system when the application closes the device file.
Writers will not select these files for printing unless SCHEDULE(*IMMED) is
specified and the writer selects the file before it is closed.
For information about the machine data, see “Chapter 8. Working with line data”
on page 223.
To include the print control information in the data, you specify one of the
following American National Standard first-character forms-control codes in the
first position of each data record:
When you use first character forms control data for a printer file, the print control
information created by the high-level language compiler is ignored. The character
in position 1 of the record is used as the print control character for that record.
The CHLVAL parameter allows you to associate a specific skip-to line number with
an American National Standard channel identifier. For example, if you specify
CHLVAL(2 20), channel identifier 2 is allocated with line number 20; therefore, if
you place the forms-control 2 in the first position of a record, the printer skips to
line 20 before printing the line.
Note: If the printer stops at a particular line number and the next record processed
has a channel value forms-control number that is the same value as the line
number the printer is on, the printer advances to that value (line number)
on the next page. In the example in the paragraph above, if the printer had
been on line 20 already, the printer would then have advanced to line 20 of
the next page.
Each control identifier can be specified only once on the parameter. If no line
number is defined for a channel identifier and that channel identifier is
encountered in the data, the printer takes the default of spacing one line before
printing.
The printer output is spooled to the output queue PRINT. Channel identifier 1 is
associated with line 1, channel identifier 2 is associated with line 10, and channel
identifier 12 is associated with line 60.
To provide flexibility in your print job, the pitch of the font identifier (FONT
parameter) should match, where possible, the value specified on the CPI
parameter. By setting the FONT parameter to FONT(*CPI), the system selects a
font of the same pitch as the CPI parameter value. A print job intended for a
printer that supports fonts can then be printed on another printer without
significant change in the appearance of the printed output. For example, a printer
file which has FONT(222), Gothic font with 15 pitch, and CPI(15) could print on a
3812, 4224, or 5219 Printer (which use the FONT parameter) or also could print on
a 4214, 4230, 4234, 4247, 5224, or 5225 Printer (which support 15 characters per
inch). If this print job were directed to a printer that only supports 10 characters
per inch, then printer file redirection would be used.
When using an SCS externally described printer file, normally the value specified
in the CPI parameter is used to position fields on the printed page. For example, if
a printer file has 10 characters per inch specified, and FIELDA is specified to start
in column 51, then there would be 50 blanks to the left of FIELDA (50 blanks at 10
characters per inch is 5 inches).
RSLH114-0
When using proportionally spaced fonts, fold and truncation (FOLD parameter)
may not work as intended. This is because the system does not keep track of the
width of each individual character.
The following printers also support typographic fonts: the 3812, 3130, 3160, 3816,
3820, 3825, 3827, 3829, 3831, 3835, 3900, 3916, 3930, 3935, 4028, 4312, 4317, 4324,
InfoPrint 3000, and the InfoPrint 4000. You can specify a typographic font by
indicating point size (height of font). A point measures 1/72 of an inch. An 8-point
font would be 1/9 of an inch high, and a 24-point font would be 1/3 of an inch
high. When using fonts that contain tall characters, it may be necessary to double
or triple space, to avoid having lines overlap when printing the page.
Note: The amount of printed space for a field varies depending on which
characters are in a field. Enough space should be left between fields to allow
for the widest characters (uppercase characters) expected in that field.
In the previous example, if CPI(10) and FONT(1351) had been specified, and the
printer used was a 3812 Printer, then FIELDA specified to start in column 51
In this example, FIELDA would start 2.975 inches from the left margin of the paper
regardless of how many fields were defined to its left. When using an increment
value (+n) instead of a column number (positions 42 through 44 in DDS
specification), fields are positioned the same for proportionally spaced fonts as
they are for fixed pitch fonts. That is, the field is positioned based on the width of
the blank for the specified font. The following example illustrates that using either
absolute column numbers or relative increment numbers (+n) will supply the same
result.
A
RSLH115-3
Font substitution
If the font identifier specified on the FONT parameter is not supported by the
printer being used, printer data management selects a substitute font that is
supported by the printer (if possible). A substitute font is at the same pitch or a
higher pitch whenever possible to ensure that as much data as possible fits on the
printed page. A complete list of fonts supported and the substitute font selected for
each printer that supports the FONT parameter is shown in “Appendix D. Working
with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts” on
page 387.
For the SCS 3812, 3816 and 5219 Printers, font substitution can be made only at the
file level. For font changes made in the document, font substitution is not done. In
this case, spool redirection (described previously) is used.
The maximum number of fonts that can be sent to a printer file is 48. When more
than 48 fonts are requested, an error message is sent.
A slight adjustment is sometimes made to the first or last line of a page when the
lines per inch (LPI) parameter value is greater than 6. This adjustment prevents
IPDS printers from reporting position check errors due to part of a character
printing off the top or bottom of the page. For the first line on a page, a slight
downward adjustment is made. For the last line on a page, a slight upward
adjustment is made. This adjustment is about 1/72 of an inch. No other lines on
the page are adjusted. This adjustment is made only for spooled files with
DEVTYPE of *SCS or *IPDS when printed on IPDS-capable printers. It is
recommended that the first line on a page not be used for printing if the lines per
inch (LPI) parameter on the printer file is 8 or greater.
To find which graphic symbol sets are available on your system, enter the CL
command:
DSPOBJD OBJTYPE(*GSS) OBJ(QGDDM/*ALL)
CL commands that you can use to do this are: CRTPRTF, CHGPRTF, and
OVRPRTF.
A print band is selected by switches on the 5262 operator’s panel. The operator
must select both a language ID and a band image using these switches.
The 4245, 6252, and 6262 Printers detect the print band the printer is using.
When a print band changes for a print job, no inquiry message is sent to the
message queue associated with the printer writer. You can specify a different form
type for that job, such as blank payroll forms or blank invoices. A message to
change the form type is sent to the printer writer message queue to notify the
operator of the change to the print band.
For example, assume that a physical file on the system contains data in the Basic
French character set, and includes the character é. In the code page used with the
Basic French character set, this character is hex C0. The data could have been
entered on a display device that can handle the character or could have been sent
to the system from another system over a communications line. When hex C0 is
sent to a printer that is set up for the United States Basic character set, the hex C0
is printed as {. Depending on the printer and the hexadecimal value sent, the
hexadecimal value could be an unprintable character. The way the printer handles
a specific hex code point (for example, hex C0) depends on the current value of the
CHRID parameter in the printer file. You can specify the following parameter
values for the CHRID parameter:
v With an explicit value specified for the CHRID parameter, the printer interprets
the data as if the data were in the character set and code page specified.
v With CHRID(*SYSVAL) specified, the printer file takes the value specified in the
QCHRID system value when the output is created.
v With CHRID(*DEVD) specified, the printer uses the CHRID that was set with
the device control panel or that was specified when the printer device
description was created.
v If you have specified CHRID(*JOBCCSID) the printer interprets the data as if it
were in the character set and code page that are associated with the CCSID for
the current job . For more information, see theGlobalization topic in the AS/400
Information Center.
v With CHRID(*CHRIDCTL) specified, the printer file checks the CHRIDCTL job
definition attribute to determine whether to use *JOBCCSID or *DEVD on the
CHRID command parameter for the job.
Not all printers can handle all CHRID parameter values. If a CHRID is specified
for a printer on which that CHRID is not supported, a message is sent to the
operator. Go to “Appendix D. Working with Fonts, Font Character Sets, Code
Pages, CHRIDs, and Coded Fonts” on page 387 for a description of which printers
support which extensions.
For program-described printer files, the value of the CHRID parameter determines
the code page and character set used to print the data. However, for externally
described printer files, the CHRID parameter is used only for fields that also have
the CHRID DDS keyword specified. Fields that do not have the CHRID DDS
keyword use the code page and character as if CHRID(*DEVD) had been specified
for the CHRID parameter on the printer file.
For printers with AFP(*YES) in the device description, the printer file CDEPAG
and FNTCHRSET parameters can be used to select a code page when the printer
file DEVTYPE parameter is *AFPDS. This applies to all IPDS printers except 4224,
4230, 4234, 4247, and 64xx.
The following shows how extended alphabetics are handled in printer output:
RS3H020-0
Assume that a record in a physical file contains a field with the value Renée. An
application program reads the record from the physical file, and writes a record
containing the data to the spooled file. The output field in the printer file that
describes how Renée is to be printed has the CHRID DDS keyword specified,
indicating that the printer is to interpret extended alphabetics. (The graphic
character set 288 and code page 297 are specified for the interpretation in either the
printer file or the QCHRID system value. Code page 297 is used for French
language.)
When printing the data, the printer interprets hex C0 as specified in character set
288 and code page 297. If character set 101 and code page 037 had been selected,
hex C0 (é) would have been printed as {.
One of the following CHRID values (graphic character set and code page) must be
specified to print fonts OCR-A and OCR-B on the IPDS printers:
580 340
590 340
697 892
697 893
Print text
You can specify on the printer file a line of text that is to be printed at the bottom
of every page. This line of text is called the print text and is set by using the
PRTTXT parameter on the CRTPRTF, CHGPRTF, or OVRPRTF commands. Up to 30
characters are allowed in the line of print text. The 30 characters are centered at the
bottom of the page, 2 lines below the overflow line. If the user already has data to
print on the line that the print text goes on, the print text is bumped down to the
next blank line on the page. If no lines are blank, the print text is printed on the
last line of the page.
Notes:
1. For externally described printer files with DEVTYPE(*AFPDS) using the DDS
POSITION keyword, the print text is positioned by ignoring the location of any
data placed on the page by records using the POSITION keyword. If all the
data on the page is positioned using the DDS POSITION keyword, the print
text is located on the overflow line.
2. If a host resident font is specified on the printer file, 10 characters per inch is
used to calculate the location of the text specified on the PRTTXT parameter.
A system value, QPRTTXT, can be used to specify the print text so that the same
text can appear on all files printed on the system. Also, the print text can be taken
from the job description, so that all files created from a particular job can have the
same print text.
Print text is useful for printing a security classification on each page. It can also be
used to print a company name or slogan on each page.
The system provides this editing support with edit codes and edit words. Edit
codes are a defined set of editing patterns. You identify these by name, and the
system edits a field according to the pattern defined by the named edit code. Edit
words are edit patterns that you define to produce the desired results. Edit codes
cover most commonly used editing requirements. You need to use the edit word
support only for those editing needs not covered by edit codes.
There are two methods of using edit codes and edit words. Which one you use
depends on how you define the printer file and how it is used in an application
program. If your application is using program-described data, your high-level
language may allow you to identify edit codes or create your own edit words. If
your application is using externally described data, the edit code (EDTCDE) DDS
keyword allows you to identify an edit code; the edit word (EDTWRD) DDS
keyword allows you to define your own editing pattern.
The editing patterns defined by these codes are described in theDDS Reference
topic in the online Information Center.
These edit codes are created by using the Create Edit Description (CRTEDTD)
command. Edit descriptions are always placed in library QSYS. They cannot be
moved or renamed; only one occurrence of each is allowed. Edit descriptions have
an object type of *EDTD.
Before using any of the user-defined edit codes, you should check its contents on
your system, since it may have been changed from the IBM-supplied version. The
Display Edit Description (DSPEDTD) command can be used to display the contents
of a user-defined edit code.
Changing a user-defined edit code description does not affect any application or
printer file that has already been created using that edit description. If you want
your application to use the changed edit description, you must either create the
high-level language program again (if the edit code is used in the program) or
create the file again (if the application is using an externally described file that
contains EDTCDE keywords).
The system assigns a unique level identifier for each record format when the file it
is associated with is created. The system uses the information in the record format
description to determine the level identifier. This information includes the name of
the record format, the names, attributes, and order of the fields in the format, the
indicators used, and the names and the order of the indicators in the record
format. If you use the INDARA keyword to remove the indicator from the output
buffer, the indicators used are not included in the level identifier information.
When the file is opened, if level checking is specified (LVLCHK parameter), the
system does a format-by-format comparison of the level-checking values specified
in the program to the level-checking values specified in the printer file. If any of
the formats specified in the program do not exist in the file, or if any of the level
checking values are different, an error occurs. Formats can be added to or removed
from a printer file without affecting existing application programs that do not use
the added or deleted formats.
You should display the file description to determine if the changes affect your
program. You can use the Display File Field Description (DSPFFD) command to
display the file description or, if you have the source entry utility (SEU), you can
display the source file. Not every change in a file necessarily affects your program.
You may not have to recompile your program. If you do not have to recompile
your program, you should specify LVLCHK(*NO) for the file (CHGPRTF or
OVRPRTF command).
You can add a field to the end of a printer file record format without having to
recompile your program as long as you do not want to use the field in your
program. If you delete a field from the end of the record format, you do not have
to recompile your program if you are not using the field. However, if you add a
field to or delete a field from a record format anywhere other than at the end, you
In general, anything that changes the length or position of any fields in the record
format used by the program will require that the program be recompiled.
Redirecting output
Spooled or nonspooled output intended for a printer can be redirected to another
printer. However, each file is checked to ensure that the file attributes (device type,
number of lines per inch, number of characters per inch, page length, and page
width) and any advanced functions used by the file (such as variable LPI, variable
font, or defined characters) are valid on the new printer.
Nonspooled output
When a nonspooled file is redirected, and the printer file attributes do not match
the new printer, one of the following occurs:
v If the printer file specifies a characters-per-inch value not supported by the
device being used, a diagnostic message (CPF4057) is sent to the program
message queue and the data is printed at 10 characters per inch. If the page
width is greater than 132 characters, the records are folded.
Folding is not supported on IPDS printers.:
1. If the printer file specifies a lines-per-inch value not supported by the device
being used, a diagnostic message (CPF4056) is sent to the program message
queue, and the data is printed at 8 lines per inch.
2. If the page length is greater than the maximum length allowed for the
printer being used, the printing ends with an escape message (CPF4138).
3. If the printer file specifies special device requirements (such as use of certain
DDS keywords) that are not supported by the device being used, then a
diagnostic message is sent to the program message queue and the special
function is ignored.
Spooled files
When a spooled file is redirected to another printer, the spooled file cannot be
printed without change if any of the spooled output file attributes are not
supported by the printer device. For example, some printer device attributes that
might not be supported are:
v Page size
v Output drawers
v Print quality
v Lines per inch
v Characters per inch
If the spooled file is printed, results may be unpredictable because the file is
printed using the printer attributes specified in the IBM-supplied printer file
QPSPLPRT, and all advanced functions used by the spooled file are removed.
Functions removed include:
DDS keywords:
CHRID
Graphic character set and code page
CHRSIZ
Character size (width and height)
CPI Characters per inch
DFNCHR
Define character
DRAWER
Paper drawer selection
FONT Font selection
LPI Lines per inch
PAGRTT
Page rotation
PRTQLTY
Print quality
TRNSPY
Transparency
Other print functions:
Drawer change in document
Font change in document
Lines-per-inch change in document
Page rotation in document
Subscript and superscript
v If the spooled file specifies a characters-per-inch value not supported by the
printer, an inquiry message is sent to the message queue of the writer with the
option to:
– End the writer
– Print the spooled file at 10 characters per inch with lines folded when the
lines are longer than the width of IBM-supplied printer file QPSPLPRT
If the spooled file is printed, the resulting output closely resembles how the file
was intended to look. This is because the attributes specified by the spooled file
were used and advanced functions were kept.
v Documents created on other systems may contain print controls that are not
supported by the 5219 or 3812 Printers. These controls may include variable
form size, output drawer, print quality, lines per inch, characters per inch,
character identifier, or justification. If this occurs, an inquiry message is sent to
the message queue of the writer with the options to:
– End the writer.
– Print the spooled file with unsupported values changed to values which are
supported by the printer.
– Attempt to print the spooled file without changing. (If this is not successful,
the file will be held on the output queue).
– Hold the spooled file and process the next file on the output queue.
If the spooled file is printed, the file attributes from the spooled file are used and
all advanced functions that are valid for the device are kept. The resulting output
should closely resemble what the file was intended to look like, though it still may
not print exactly as intended because of the unsupported values.
Printing results may be unpredictable, because the printer will use the printer
attributes that are specified in QSPLPR, the IBM-supplied printer file. All
advanced functions that are specified in the spooled file will be removed.
Functions removed include:
If the file prints, its existing attributes will be used. Advanced functions remain
intact, except graphics, defined characters, justification, and transparencies. The
transformation to IPDS format should substantially keep the integrity of the text
data. However, the file may still not print exactly as intended. Unsupported font
pitches, font spacings, and character identifiers are changed to the closest
approximation valid on the printer.
v The writer automatically transforms the file to an IPDS file and prints it if the
following is true: the spooled file uses DEVTYPE(*SCS), does not contain DBCS
data, does not use defined characters, graphics, transparency, variable fonts, or
enhanced 3812 fonts. The printer file also can not use a proportionally spaced
font for the FONT parameter of the printer file. The spooled file may not print
exactly as intended. For unsupported font pitches, font spacings, and character
identifiers, the printer writer uses the closest approximation available on the
printer.
v The message queue of the writer receives an inquiry message if the spooled file
uses the IPDS data stream (DEVTYPE(*IPDS)), but uses advanced functions not
supported by the printer. Options made available are:
– End the writer
– Print the spooled file, but dropping unsupported advanced functions from the
file
However, this happens after the open processing has been done for the first output
to print. The first output to print can be direct output or a spooled file. This
means, for the first output printed, the system treats the printer as a 5219 Printer.
For example, this means there is no page rotation for that first printed output.
In order for the system to recognize a 3812 or 3816 SCS printer, the printer writer
must complete processing. After the first output has been printed, and a new
printer writer is started, the system recognizes the printer as a 3812 or 3816 SCS
printer.
Once the system recognizes a printer as a 3812 or 3816 SCS, it remembers the true
printer type until the printer device description is deleted.
The AS/400 system adjusts the positioning of the printed text on the page to
compensate for the no-print border. For example, if your application program
prints text in the top 1/6 inch or left 1/6 inch, all the text will print. The AS/400
system adjusts the starting printing position to 1/6 inch from the top and left of
the page causing all printed data on the page to be shifted to the right and down
by 1/6 inch. If your application relies on printing data at a certain point on the
paper, you may have to change your application to compensate for this adjustment
or use the margin values of 0 on the printer file.
Note: The 3835 Model 2 does not have a no-print border. The AS/400 system does
not adjust the position of printed text for this printer. When directing output
from printing on a 3835 Model 1 to a Model 2, the difference in how the
no-print border is used must be considered.
If the 3912, 3916, or 4028 is configured AFP(*NO), you may have to adjust your
application programs. For example, if your application program prints text in the
top 1/6 inch or left 1/6 inch, that text will not appear on the page.
If the 4028 is configured AFP(*YES), the AS/400 system adjusts the positioning of
the printed text on the page to compensate for the no-print border. For example, if
your application program prints text in the top 1/6 inch or left 1/6 inch, all the
text will print. The AS/400 system adjusts the starting printing position to 1/6 inch
from the top and left of the page causing all printed data on the page to be shifted
This positions the starting origin of the page to the edge of the printable area.
To include graphics with other program output, a special control record is used.
The format for this control record is:
#$@INCLGRPH filename,x,y,w,l
Notes:
1. There must be only one space between the command word and the parameters.
2. All five parameters must be specified. A default value (the default values are
included in the list below) for parameters x, y, w, and l can be obtained by
omitting any value. For example, a valid control record with defaults for
parameters x, y, and l would look like:
#$@INCLGRPH filename,,,9.5,
3. The #$@INCLGRPH control record should be in a print record by itself, because
any other data along with it may be considered as parameters.
4. Parameters should immediately follow one another, separated by commas,
using no blanks.
5. The characters INCLGRPH must be all uppercase.
6. The #$@INCLGRPH control record must begin in the first column.
7. The #$@INCLGRPH control word is used with characters from code page 500.
For example, in code page 500, @ is hex ’7B’, $ is hex ’5B’, and @ is hex ’7C’.
Other code pages may use other characters in the#$@INCLGRPH control
record. You will need to change the characters depending on the code page
being used.
The parameters are defined below. Parameters x, y, w, and l define the area on
the page where the graphics file will be printed. Parameters x and y define the
upper left corner of the graphics area, and parameters w and l define the size of
the graphics area.
filename
The name of the graph object file to be included. If the file has more than
one member, the last member is used. The library containing the file must
be in your library list.
x The distance, in inches, from the left edge of the page to the left edge of
the graphics area on the page. The default is 0.
y The distance, in inches, from the top of the page to the top edge of the
graphics area on the page. The default is 0.
If there are any errors found in the control record or an error occurs while
processing the graphics file, the control record is printed as normal text data. The
graphics file to be used must be in a format acceptable to the printer. For IPDS
devices, this format is level DR/2 of the Graphic Object Content Architecture
(GOCA). See the manual Graphic Object Content Architecture , SC31-6804, for more
information about GOCA.
Note:
v On the AS/400 system, offset stacking of printed output is used. As the
job finishes, the paper tray moves, offsetting the stack of paper to make it
easier to distinguish between finished jobs. Because of this, the data
stream that is created on the AS/400 system contains the control to
indicate that offset stacking should be used. If the spooled file is sent to a
system that does not support offset stacking, an error message may be
issued.
v Use of the DDS DRAWER and PAGRTT keywords cause the AS/400 to
generate an AFPDS datastream that is not completely supported by the
AFP viewer and some of the PSF products available on other IBM
platforms. If the spooled file needs to be viewed by the AFP viewer or
printed on other IBM platforms, do not use the DRAWER and PAGRTT
keywords in DDS. Use the INVMMAP keyword instead to change the
drawer or page rotation within the spooled file.
Please see “Using Print Services Facility for OS/400 (PSF/400)” on page x for
information on when PSF/400 is required. If you have additional questions about
PSF/400, contact your IBM representative.
Following is a list of DDS keywords that are valid for printer files that have the
printer device type (DEVTYPE) parameter value specified as *AFPDS. Restrictions
on DDS keywords are contained in this list as well. For more detailed information
about DDS keywords, see the DDS Reference: Printer Files, part of the Database
and file systems topic in the iSeries 400 Information Center.
Performance considerations
v For externally described printer files, the fewer the number of fields in a record,
the faster the processing of that record. Also, by putting several lines of text
within a record instead of each line as a separate record, system overhead
involved with the processing of each record is reduced.
v When coding the DDS for externally described printer files, define the fields in
sequential order. The output is not changed if fields are not defined in sequential
order, but the extra travel time of the printer head may be noticeable.
v For externally described printer files, specify a specific font or FONT(*CPI) on
the CRTPRTF, CHGPRTF, or OVRPRTF command instead of FONT(*DEVD). This
helps keep the data stream as small as possible.
When a program opens a printer file, the operating system, by looking at the
printer file SPOOL parameter, determines whether the output is to be spooled.
When a printer file specifying spooling is opened, the spooled file containing the
output of the program (data to be printed) is placed on the appropriate output
queue in the system. A spooled file can be made available for printing when the
printer file is opened, when the printer file is closed, or at the end of the job. This
is done by specifying a particular value on the schedule parameter. *IMMED
makes the spooled file available to the writer as soon as the program is opened.
*FILEEND makes the spooled file available to the writer as soon as the file is
closed. *JOBEND makes the spooled file available to the writer as soon as the job
is complete.
By spooling (that is, sending the output to output queues to await printing), the
system does not have to wait until the printing for that application program is
complete before it can start processing the next application program.
Application
Remote Program Printer
Writer Writer
Program Program
Printer
AS/400 File
MVS/VM Device
Printer
PS/2 Description
Other
Output Queue
RV3H046-0
Application program
Application programs are the primary objects that produce spooled files on the
AS/400 system. All HLL (high-level languages) that can be used on the AS/400
Pressing the Print key runs a program that uses the QSYSPRT printer file to create
a spooled file that captures the image that was on the screen when the Print key
was pressed.
Printer file
Many attributes of the printer file used by the application program apply to the
spooled file and how the spooled file is processed by the system when the
application program ends. These attributes can be specified on the following
commands:
CHGPRTF
Change Printer File
CRTPRTF
Create Printer File
OVRPRTF
Override with Printer File
After a spooled file is created, its attributes can be displayed using the WRKSPLFA
command. Some attributes can be changed using the CHGSPLFA command
Note: Automatic configuration cannot be used for ASCII devices attached to the
ASCII workstation controller.
The printer file that an application program uses will require some of the
information that is contained in the printer device description. For example: the
printer file PRINTER parameter requires the same value as assigned to the printer
device description DEVD parameter.
Output queues
Batch and interactive job processing may result in spooled files that are to be sent
to a printer. These spooled files contain output records waiting to be printed. There
may be many spooled files for a single job.
When a spooled file is created, the file is placed on an output queue. Each output
queue contains an ordered list of spooled files. A job can have spooled files on one
or more output queues. All spooled files on a particular output queue should have
a common set of output attributes, such as printer device, form type, and lines per
inch. Using common attributes on an output queue reduces the amount of
intervention required and increases the printer throughput.
| For more information on spooled file and output queue security, see the Security
| topic in the AS/400 Information Center.
For more information on , see theSecurity topic in the AS/400 Information Center.
The AUT parameter for the output queue is assigned the same value as that
specified by the AUT parameter for the printer device description. All other
parameters are assigned their default values. Use the Change Command Default
(CHGCMDDFT) command to change the default values used when creating output
queues with the CRTOUTQ command.
When a spooled file is created by opening a printer file and the output queue
specified for the file cannot be found, the system attempts to place the spooled file
on output queue QPRINT in library QGPL. If for any reason the spooled file
cannot be placed on output queue QPRINT, an error message is sent and the
output is not spooled.
Each group of spooled files (RDY and non-RDY files) is further sorted by:
1. The output priority of the spooled file.
2. A date and time field (time stamp).
3. The SCHEDULE parameter value of the spooled file. Files with
SCHEDULE(*JOBEND) specified are grouped together and placed after other
spooled files of the same job that have SCHEDULE(*IMMED) or
SCHEDULE(*FILEEND) specified.
4. The spool number of the spooled file.
For output queues with SEQ(*JOBNBR) specified, the date and time field is the
date and time that the job that created the spooled file entered the system. (A
sequential job number and time of day value are also assigned to the job when it
enters the system.) That is how the spooled files are sorted on the queue.
Note: The date and time do not change when the reason the status changes
from RDY to WTR or from WTR to RDY is because the writer was
canceled. Also, the date and time don’t change when the status changes
from RDY to DFR, or from DFR to RDY.
v A spooled file is moved to another output queue that has SEQ(*FIFO) specified.
Because of the automatic sorting of spooled files, different results occur when
SEQ(*JOBNBR) is specified for an output queue than when SEQ(*FIFO) is
specified. For example, when a spooled file is held and then immediately released
on an output queue with SEQ(*JOBNBR) specified, the spooled file will end up
where it started; but if the same spooled file were held and then immediately
released on an output queue with SEQ(*FIFO) specified, the spooled file would be
placed at the end of the spooled files that have the same priority and a status of
RDY.
Note: The starting and ending times must be specified using the 24 hour method
of measuring time. For example, 2:00 PM would be entered as 1400.
Assume you want to restrict spooled files with more than 40 pages from printing
between 0800 and 1600 on output queue MYOUTQ. However, between 1200 and
1300 you want to allow spooled files with 10 pages or less to print. Running the
following command implements these restrictions:
CHGOUTQ OUTQ(MYOUTQ) MAXPAGES((40 0800 1600) (10 1200 1300))
Note: You can specify up to 5 different combinations of pages and start/stop times
on the MAXPAGES parameter.
Each time a spooled file on the output queue reaches RDY status an entry is sent
to the data queue. A spooled file can have several changes in status (for example,
ready (RDY) to held (HLD) to release (RLS) to ready (RDY) again) before it is
taken off the output queue. These status changes result in entries in the data queue
for a spooled file each time the spooled file goes to RDY status.
| Once a data queue is associated with a job or the system, any spooled file created
| by the job or system will automatically have an entry placed in the data queue. For
| this action to occur, the user or user profile QSPL must have authorization to the
| data queue. For more information about data queues, see“Creating data queues”.
| Note: An environment variable that is specified at the job level takes precedence
| over the same environment variable specified at the system level.
| The data queue for the spool data queue entry record type of 02, must be created
| with a record length of at least 144 bytes. It must also have a public authority of
| *USE, or grant QSPL user profile *USE private authorities to the data queue. You
| must ensure that the containing library has a public authority of *EXECUTE, or
| grant QSPL user profile *EXECUTE private authorities to the library. The format of
| the CRTDTAQ command is:
| CRTDTAQ DTAQ (<library name>/<data queue name>) MAXLEN(144) AUT(*USE)
After a data queue is associated with an output queue, any spooled file that is
placed on the output queue in ready status causes an entry to be placed on the
data queue. The data queue entry is added regardless of the authority the user
generating the spooled file has to the data queue.
The intent is not to log the same recurring message all day, but to inform the user
of each change of error messages associated with the data queue of a particular
output queue.
When clearing all output queues during IPL, any associated data queues are not
cleared. If a damaged system output queue is found, it is re-created without any
associated data queue name. Damaged data queues are not re-created.
72 48 CHAR(56) Reserved
The Work with Spooled Files (WRKSPLF) command can be used to display all the
spooled files that you have created. This is an easy way to find your output if you
do not know the name of the output queue where it has been placed. The spooled
files are listed in the same order as they would be on a SEQ(*FIFO) output queue.
(See “Order of spooled files on an output queue” on page 129 for more
information.)
If you know the name of the output queue that contains the spooled file, the Work
with Output Queue (WRKOUTQ) command can be used to display the queue to
determine the position of the spooled files on that output queue.
If a writer is not started to the output queue that contains the spooled file you
wish to print, you have several options in order to print the file:
v Use the Work with All Spooled Files (WRKSPLF) command and type 9 (Work
with printing status) next to your spooled file to find out Why it is not printing.
v Use the Change Spooled File Attributes (CHGSPLFA) command to move the
spooled file to an output queue that has a writer started to it.
v Select a printer that is not being used and use the Start Printer Writer
(STRPRTWTR) command to start a printer that will print the spooled files from
your output queue.
v Select a printer that is started to a different output queue and use the Change
Writer (CHGWTR) command to change the printer to print the spooled files
from your output queue.
If a writer is started to the output queue that contains the spooled file you want to
print, but the status of the spooled file is deferred (DFR status), you can do the
following:
v Use the Change Spooled File Attributes (CHGSPLFA) command to move the
spooled file to an output queue that has a value of *NONE specified for the
maximum spooled file size (MAXPAGES) parameter.
v Use the Change Writer (CHGWTR) command to change the printer to print the
spooled files from the output queue that has the MAXPAGES parameter value
specified as *NONE.
The Work with Writers (WRKWTR) command can be used to find a list of printers
attached to your system and to determine if the printer is active (started).
You can use the SPLFILE parameter on the End Job (ENDJOB) command to specify
if all spooled files (except QPJOBLOG) created by the job are to be kept for normal
processing by the printer writer, or if these files are to be deleted.
If an abnormal end occurs, the spooled file QPJOBLOG will be written at the next
IPL of the system.
If a printer writer fails while a spooled file is being printed, the spooled file
remains on the output queue intact.
A damaged output queue can be deleted using the Delete Output Queue
(DLTOUTQ) command, or it will be deleted by the system during the next IPL.
After the damaged output queue is deleted, it can be created again by entering the
Create Output Queue (CRTOUTQ) command. Then, spooled files on output queue
QSPRCLOUTQ can be moved to the newly created output queue using the Change
Spooled File Attributes (CHGSPLFA) command.
This system-created output queue has the same public authority as specified for
the device and default values for the other parameters. After the system re-creates
the output queue, you should verify its attributes are correct or change them, if
necessary, using the Change Output Queue (CHGOUTQ) command.
When a damaged output queue associated with a printer is deleted and created
again, all spooled files on the damaged queue are moved to the re-created output
queue. This is done by the QSPLMAINT system job, which issues a completion
message to the QSYSOPR message queue when all spooled files have been moved.
Spooled files on destroyed user-created output queues are moved to output queue
QSPRCLOUTQ in library QRCL. Spooled files on destroyed system-created output
queues are moved to the re-created output queues.
Cleanup also deletes spooled files that have data in a damaged database file in
library QSPL.
More than one printer writer can be started to the same output queue (10 is the
limit). However, each writer name must be unique and of the same type (printer,
remote, or diskette).
The printer writer program takes spooled files, one at a time, from the output
queue, based on their priority. The printer writer program prints a spooled file
only if its entry on the output queue indicates that it has a ready (RDY) status. You
can display the status of a particular spooled file using the Work with Output
Queue (WRKOUTQ) command.
If the spooled output file has a ready status, the printer writer program takes the
entry from the output queue and prints the specified job and/or file separators,
followed by the output data in the spooled file. If the spooled file does not have a
ready status, the printer writer program leaves the entry on the output queue and
goes on to the next entry. In most cases the printer writer program continues to
The INIT parameter on the STRPRTWTR command allows you to specify when to
initialize (send printer open time commands) to the printer..
These values are also supported on the Change Writer (CHGWTR) command.
After the spooled output file is successfully sent to a remote system, it is deleted or
saved as determined by the SAVE spooled file attribute value.
More than one remote writer can be started to the same remote output queue (10 is
the limit). The actual number is specified in the remote output queue description.
The multiple printer writer function supports work load balancing between
printers. It also provides backup for printed jobs running unattended. For example,
if one printer jams or runs out of paper the others continue to print spooled output
files from the associated output queue.
When working with the Start Printer Writer (STRPRTWTR) command, message
CPI34B8 indicates that the spooled file printed successfully and on which printer it
printed. Message CPD34B9 indicates that the spooled file is being held. CPD34B9
also indicates which printer it would have printed on.
When working with the Start Remote Writer (STRRMTWTR) command, message
CPI34B7 indicates that the spooled file was sent successfully. Message CPD34B7
indicates the spooled file was not successfully sent.
Using a printer for both spooled files and direct print jobs
The allow direct print function provides the capability of sharing a printer between
the printer writer and direct print jobs.
A printer writer sends spooled files to the printer from the output queue assigned
to that printer. When the SPOOL parameter value on the printer file is *YES,
output data is written to a spooled file and placed on an output queue.
When the SPOOL parameter value on the printer file is *NO, output data is written
directly to the printer. This is a direct print job.
When *YES is specified, the printer writer releases the printer for direct print jobs
when either of the following conditions is true:
v The printer writer is held (STATUS(*HLD)).
v The output queue associated with the printer contains no spooled files waiting
to print.
The allow direct print function uses the maximum file-wait time specified in the
WAITFILE parameter in the printer file.
The default value for the WAITFILE parameter is *IMMED. However, the allow
direct print function requires some time to obtain access to the printer. Therefore, it
is recommended that 2 or 3 minutes be allowed for access to the printer.
Note: The WAITFILE parameter value must be calculated in seconds. For example,
a parameter value of 120 would allow a wait time of 2 minutes.
When choosing the value for the maximum file-wait time (WAITFILE) parameter
in the printer file, consider how busy is the printer that you want to use for your
direct print jobs?
If the value for the WAITFILE parameter is too small, a message is returned
indicating the specified printer could not be obtained. If you still need the job
printed, the job must be run again.
If the value for the WAITFILE parameter is too large, your sign-on session is
utilized waiting for the job to obtain the printer. You cannot use System Request to
The allow direct print function is not supported on printers configured for
advanced function printing. This means the advanced function printing (AFP)
parameter on the printer device description must be *NO.
The spool support on the AS/400 system allows you to change the destination of
spooled files and to alter the appearance of a spooled file before actual printing
occurs. The Work with Spooled Files (WRKSPLF) command is the primary
command used for managing your spooled files.
The Work with All Spooled Files display shows you, in the Device or Queue
column, the name of the queue that the spooled file is currently in.
At the top of the display is a list of actions that can be performed on any spooled
file.
All of these actions (with the exception of Messages and Work with printing status)
can be performed using CL commands. The Work with All Spooled Files display
provides a convenient way for you to run these commands. When you use this
display, you do not have to remember the exact CL command name and the
spooled file attributes such as: name, number, and position in a particular output
queue.
| If you are using the WRKSPLF command, you can manage your spooled files by
| selecting one of the available options from the following list. This list provides the
| option, the associated CL commands, and an explanation of each option..
v Send — Send Network Spooled File (SNDNETSPLF) command
This option allows you to send the spooled file to another user on your system
or to a user in your network. Go to “Using the send option” on page 143 for
more information on using this option.
v Change — Change Spooled File Attributes (CHGSPLFA) command
This option allows you to change attributes of a spooled file.
v Hold — Hold Spooled File (HLDSPLF) command
By choosing option 1 from the WRKSPLF display, the only information you have
to type to send the spooled file is the user ID and address.
Note: If your system is in a TCP/IP network, you can send and print spooled files
using the Send TCP/IP Spooled File (SNDTCPSPLF) command. For more
information, see “Sending and printing files with TCP/IP” on page 336.
| If a spooled file does not start to print or finish printing, the reason could be that a
| message did not receive a response. Often, it is a check to make sure that the forms
| have the correct alignment or position in the printer. Answering these messages
| allows the job to start or continue printing.
The attributes included in the subset vary depending on the device type (*IPDS,
*SCS, *AFPDSLINE, *LINE, and *AFPDS).
| Printer
| Print sequence
| Form type
| Copies
| Restart printing
| Output queue
| Library
| File separators
| Page range to print:
| Starting page
| Ending page
| File becomes available
| Save file
| Output priority
| User data
| Align page
| Print quality
| Form feed
| Source drawer
| Print fidelity
| Print on both sides
| Form definition
| Library
| AFP characters
| Pages per side
| Page definition
| Library
| Front side overlay:
| Overlay
| Library
| Offset down
| Offset across
| Back side overlay:
| Overlay
| Library
| Offset down
| Offset across
| Constant back
| User defined object:
| Object
| Library
| Object type
| IPDS pass-through
| Font resolution
Example: To change the specified printer: Use option 2 from the Work with All
Spooled Files display by typing 2 next to the spooled file you want to work with.
Press the Enter key and you are returned to the Work with All Spooled Files
display.
You have now changed the specified printer for that spooled file.
The pages per side (MULTIUP), front overlay (FRONTOVL), and back overlay
(BACKOVL) attributes can only be changed if the DEVTYPE is *SCS or *IPDS.
The above attributes plus form feed (FORMFEED), print quality (PRTQLTY), and
print on both sides (DUPLEX) cannot be changed on spooled files created on the
AS/400 system with printer device type *AFPDS.
You can also use the Work with Spooled File Attributes (WRKSPLFA) command to
change the attributes of a spooled file.
Initially, the attributes assigned to a spooled file are obtained from the printer file
that the application program used.
| You cannot change all of the attributes that are shown. To view the changeable
| attributes, press F13.
| You can also change the attributes in the Using the change option section by
| pressing F13.
| Note: The attributes included in the subset vary depending on the device type
| (*IPDS, *SCS, *USERASCII, *AFPDSLINE, *LINE, and *AFPDS).
| Device requirements
When you work with spooled file attributes, the device requirements shown in the
following table are displayed. The table shows the device requirements supported
on each printer.
| ment 6262 5252 4214 5225 4234-2 5219 SCS 55531 IPDS 6412 5583 Print 4000
Final Form X X X X X X X
Text
Variable X X X X X X
Font
Variable X X X X X X X X X
LPI
Variable X X X X X X X X
Drawer
Super/ X X X X X X
Subscript
Variable X X X X X X X X X
Character
ID
Highlight X X X X X
Extended X X X X X
3812 Fonts
Graphics X X X X
522X
Graphics X X X
4214
Graphics X X X
4234
Graphics X X X X
Barcodes X X X X
Variable X X X X
Page
Rotation
PC Printer X X X X X X X X X
Emulation
Defined X X X X X X
Characters
Variable X X X X X X X X
CPI
| ment 6262 5252 4214 5225 4234-2 5219 SCS 55531 IPDS 6412 5583 Print 4000
Transparency X X X X X X
IPDS X X X X
Transparent
Data
Field X X X
Outlining
AFP X X X
Resources
Rotated X X X
DBCS
Characters
Double- X X X
wide
Characters
1
System does not check device attributes for these printers, so all attributes are permitted. This does not guarantee
the spooled file will print correctly.
Type a 9 (Work with printing status) next to the spooled file that is not printing.
The conditions that may be preventing the spooled file from printing are
displayed.
Type a 2 (Change status) next to the condition you want to eliminate. With the
information shown in the Change Status window, you can take corrective action to
make the spooled file print. All of the conditions listed must be eliminated before
the spooled file will print.
If you need more information to eliminate the conditions, select option 5 (Display
detailed description) for an explanation of each of the conditions preventing the
spooled file from printing.
Note: The specific authorities required for *DTAAUT are *READ, *ADD, and
*DLT data authorities.
v A user is always allowed to control the spooled files created by that user.
For the Copy Spooled File (CPYSPLF), Display Spooled File (DSPSPLF), and Send
Network Spooled File (SNDNETSPLF) commands, in addition to the four ways
already listed, there is an additional way a user can be authorized.
If DSPDTA(*YES) was specified when the output queue was created, any user with
*USE authority to the output queue is allowed to copy, display, send, or move
spooled files. The specific authority required is *READ data authority.
If the user is authorized to control the file by one of the four ways already listed
above, using DSPDTA(*NO) when creating the output queue will not restrict the
user from displaying, copying, or sending the file. DSPDTA authority is only
checked if the user is not otherwise authorized to the file.
See the See the Security topic in the AS/400 Information Center for details about
the authority requirements for individual commands.
The number of jobs known to the system can be displayed using the Work with
System Status (WRKSYSSTS) command.
You can use the Work with Spooled Files (WRKSPLF) command to identify
spooled files that are no longer needed. By periodically entering the command:
WRKSPLF SELECT(*ALL)
you can determine which spooled files are older than 6 or 7 days, and then delete
the spooled files or contact the users who created them.
For detailed information on minimizing the number of job logs (for example, by
using LOG(4 0 *NOLIST)), see the Control Language topic in the AS/400
Information Center. For information regarding the use of system values to control
the amount of storage associated with jobs and spooled files, see the Work
Management topic in the AS/400 Information Center.
Having some empty spooled file members available for creating new spooled files
increases system performance. However, a large number of empty spooled files can
use large amounts of storage and decrease system performance. For example, each
spooled file member may take 16k of storage.
You can determine the balance you want to maintain between spool performance
and auxiliary storage use by setting the system value Reclaim Spool Storage
(QRCLSPLSTG) to a certain number of days. The default value for QRCLSPLSTG
is 8 days.
As an alternative, you can run the Reclaim Spool Storage (RCLSPLSTG) command
with the DAYS parameter set to *NONE to immediately reclaim all empty spooled
file members.
Notes:
1. System performance is degraded if QRCLSPLSTG is run and the DAYS
parameter value is 0.
2. The database member is immediately deleted after the deletion of a spooled
file. That means that there is no pool of unused members that can be used
when creating spooled files.
Delete all the unwanted spooled files that the application program created. Note
the time of day you deleted all the unwanted spooled files.
After 24 hours, provided the empty spooled file members are not reused, the
system reclaims the auxiliary storage that was being used by the empty spooled
files.
Delete all the unwanted spooled files that the application program created.
Run the RCLSPLSTG command with the DAYS parameter set to *NONE.
The system immediately reclaims all auxiliary spool storage that was being used
by the unwanted spooled files.
All spooled files you place in this output queue will have the spooled file data
stored in the user ASP in a library QSPLxxxx where xxxx is the user ASP number.
| Note: The links to the job still reside on the system ASP. If the system ASP is lost,
| all spooled files, including those in the user ASPs, are lost. If a user ASP is
| lost, only spooled files in that user ASP are lost.
There are several ways in which the spooled file could have a different name:
v The Override with Printer File (OVRPRTF) command was used and a name was
specified in the SPLFNAME parameter. For example, typing the following
command:
OVRPRTF QSYSPRT SPLFNAME(REPORT1)
causes the spooled file to be called PRTF2 (the name of the printer file specified
in the TOFILE parameter of the OVRPRTF command).
v Some IBM applications may create spooled files that have names different from
the printer files used to create them. Users have no control over spooled file
names in this situation.
File redirection occurs when a spooled file is sent to an output device other than
the one for which it was originally intended. File redirection may involve devices
that process different media (such as printer output sent to a diskette device) or
devices that process the same type of media but are of different device types (such
as 5219 Printer output sent to a 4224 Printer).
Depending on the new output device for the spooled file, the file may be printed
just as it would have been on the originally specified device. However, differences
in devices often cause the output to be formatted differently. In these cases, the
system sends an inquiry message to the message queue of the printer writer
program to inform you of the situation and allow you to specify whether you want
printing to continue.
For more information about spooled file redirection, see “Redirecting output” on
page 112.
The original spooled file is not affected by the copy operation and can still be
printed by the printer writer program. You may want to copy a spooled file to a
database file for the following reasons:
v You may want to copy the spooled file to a physical file because there are no
commands to save spooled files on tape or diskette. However, if the system fails,
physical files are backed up and you can recover the data. You can use the spool
APIs to create your own save and restore operations for spooled files.
v You can save paper by having reports produced on microfiche instead of
printed.
v You can copy a report to a database file to be sent over communications lines for
printing at another location.
Note: If you use this method of gathering information, remember that the
system displays that you are spooling may change when new functions
are added to the system.
v You can copy the file to a spooled file so you can direct the same output to a
different output queue.
When copying spooled files to a database file, many device requirement
attributes of the spooled file cannot be copied. Most OfficeVision/400 documents
have device requirements such as variable lines per inch (LPI) and characters per
inch (CPI) that are not copied to a database file. If the database file is copied
back to the spooled file, the spooled file will not print the same as the original
file.
You can use this control code when printing with an RPG/400 program if the
page size is not more than 99 lines long. To do this, move the control characters
into the RPG/400 program’s PRTCTL data structure space before and skip before
fields and then print line.
Note: Any skip to line values of 3 or less will actually be generated as space 1
line(s) to get to the correct line. For example; skip to line 2 would
generate a space 1 line to get to line 2.
v *S36FMT: Specifies that the format of the records copied to a database file is the
same as created by $UASF on System/36 for COPYPRT. Only spooled print files
can be copied when *S36FMT is specified. You can use this option when you
plan to send the spooled file to a System/36. You should copy to a database file
that has a record length of 150, 215, or 248. These are the valid record lengths for
a System/36 file.
The first record placed in the database file for each spooled file to be copied is a
heading record. Columns that are not defined are blank.
Table 9 and 10 describe the formats of the header and data records.
Table 9. Header record format
Beginning
Column Field Length Description
1 1 The letter H (to indicate the heading record).
| 4 6 The spool ID of the entry. Valid spool IDs range from SP0000 to SP9999, and from
| A00000 to Z99999.
12 8 The procedure name. This is blank if the file was not created by a procedure.
22 8 The job name. (The last 2 characters of the name are truncated.)
32 8 The user ID of the spooled file creator. (The last 2 characters of the ID are
truncated.)
42 8 The printer device file name. (The last 2 characters of the name are truncated.)
52 2 The System/36 printer ID that corresponds to the device the file is printed on.
The printer ID shown is the ID for the System/36 operating environment that
copies the file, not the environment that created the spooled file.
56 4 The forms identification. (This is the first 4 characters of the form type of the
spooled file.)
61 2 The number of copies (in binary).
The data records placed in the disk file for each copied spooled file have the
following format:
Table 10. Data record format
Beginning
Column Field Length Description
1 2 The page number (in binary).
3 2 The line number (in binary).
5 4 The record number (in binary).
9 1 The letter I if this print record contains double-byte character set data.
10 1 A double-byte character set shift-out character (hex 0E) if this print record starts
with double-byte character set data.
11 nnn The data to be printed. (The field length is the file record length minus 10. If the
print data is longer than the field length, it is truncated; and if it is shorter than
the field length, it is padded with blanks at the end.) The format of data may not
exactly match the format that would be produced on System/36 when multiple
prints are used to construct a single print line.
The 2-byte binary numbers are unsigned, which means that a page number of 65
535 is the largest page number in a heading record or data record. When the actual
number is larger, it will wrap beyond 65 535 to 0, then 1, 2, 3, and so on.
A sample exit program (in C and RPG) is in the QUSRTOOL library. See member
TBSINFO in file QATTINFO in library QUSRTOOL for information about this
sample exit program.
Note: Using SPLFOWN parameter allows you to specify who owns the spooled
file.
| QPRTJOB jobs are created automatically by the system. There may be more than
| one QPRTJOB per user on a system. A QPRTJOB has a default value of 9999
| spooled files. That number can be expanded to the maximum of 999,999 by
| changing the number in the QMAXSPLF system value. For more information about
| the QMAXSPLF system value, see the Work Management topic in the AS/400
| Information Center. When a user’s QPRTJOB gets full, the system automatically
| creates a new one for the user. A separate QPRTJOB is created for each user that
| receives spooled files sent by the SNDNETSPLF command. If you use the
| SNDNETSPLF command to send users TINA and KEVIN spooled files, there
| would be jobs named 999999/KEVIN/QPRTJOB and 999999/TINA/QPRTJOB on
| the receiving system.
QPRTJOB jobs are created and used by a variety of system functions. For example:
v Using the SNDTCPSPLF or SNDNETSPLF commands to send a spooled file to
another user on a different AS/400 system.
v Sending a spooled file from VM or MVS through a VM/MVS bridge to an
AS/400 system.
v Receiving a spooled file using TCP/IP or the line printer daemon (LPD) process.
v Using the QSPCRTSP Spool API to create a spooled file for another user.
v Using the QWTSETP Security API to set the user profile to a different user and
then create a new spooled file.
Other applications that are running can use the QSPCRTSP and QWTSETP APIs
resulting in additional QPRTJOB jobs on the system.
| v Using the SETGID API, you can create a spooled file for a different, current, or
| group user profile when SPLFOWN is set to *CURGRPPRF.
The spooled output files are sent, from an output queue, using the Start Remote
Writer (STRRMTWTR) command. The STRRMTWTR command allows spooled
output files to be automatically sent to other systems using SNA distribution
services (SNADS) or Transmission Control Protocol/Internet Protocol (TCP/IP).
After spooled output files are successfully sent to a remote system (as best as
can be determined), they are deleted or saved, as specified by the save spooled
file attribute.
See “Send and Defer Status of Spooled Output Files” on page 174 for more detail
on the send and defer attributes of a spooled file.
An output queue is created to hold spooled output files. A remote output queue is
an output queue created for use in sending spooled output files to a remote
system. Several parameters on the CRTOUTQ command are required to do this.
When these parameters are given values, we then have a remote output queue. The
spooled output files on a remote output queue are sent by the remote writer(s)
started to the output queue. Remote writers are automatically started based on the
value specified on number of writers to autostart (AUTOSTRWTR) parameter. Or
they can be started using the STRRMTWTR command.
The STRRMTWTR command starts the writer that sends the spooled output files
on the remote output queue, to the remote system. The writer, which is a system
job, takes spooled output files from a remote output queue and sends them to a
remote system using SNADS or TCP/IP. The spooled output file can be sent to the
same user who owns the spooled output file being sent, a specific output queue, or
the output queue for the system printer on the target system. If the sending user
profile doesn’t exist on the target system, QNETSPLF user profile is used when
using SNADS.
Note: When spooled output files are sent to an AS/400 system at Version 2
Release 3 or less (or a system with the destination type of *OTHER and
using SNADS), the user profile to whom the spooled output files are being
The following parameters are important when working with remote system
printing. However, not all the parameters of the CRTOUTQ command are listed
here.
OUTQ
The qualified name of the output queue.
The name of the output queue can be qualified by one of the following library
values:
v *CURLIB
v Specific library name
The possible values are:
output queue name
The name of the output queue being created.
MAXPAGES
The maximum spooled file size in pages that is allowed to print between a
starting and ending time. If a spooled file exceeds the page limit it is deferred
(DFR status) until the ending time expires. For spooled files where the exact
number of pages is not known, the estimated number of pages (DSPSPLFA) is
used.
Notes:
1. You can specify up to 5 combinations of pages and starting and ending
times on the CRTOUTQ command.
The following table identifies the remote output queue on the target system
that receives the spooled output files depending on the value of the RMTPRTQ
parameter.
Table 11. Remote Printer Queue (RMTPRTQ) Values and Destination Type (DESTTYPE) Values
Remote Printer Queue (RMTPRTQ)
Destination Type
(DESTTYPE)1 *USER *SYSTEM Printer queue name
*OS400 File sent to user ID File sent to user ID File sent to user ID
QNETSPLF. File then QNETSPLF. File then QNETSPLF. File then
spooled to the default spooled to the output queue spooled to the output queue
output queue of the original of designated system specified by the printer
owner of the file. If the user printer (QPRTDEV). File is queue name. File is owned
profile of the original owner owned by a user profile by a user profile with the
doesn’t exist on the target with the same name as the same name as the original
system, the file is spooled original user profile owner user profile owner of the
to the default output queue of the spooled file. If this spooled file. If this user
for user profile QNETSPLF. user profile is not found, profile is not found, the
the QNETSPLF user profile QNETSPLF user profile is
is used. used.
*OS400V2 File sent to the file owners Not Allowed The printer queue name is
user ID on the target assumed to map to a user
system. File spooled to that ID on the target system.
user ID’s default output The file is sent to this user
queue. If the sending user ID and spooled to the user
ID doesn’t exist on the ID’s default output queue.
target system, an error is
returned to the source
system.
AUTOSTRWTR
The number of remote writers that are started automatically by the source
system. For user-created output queues with the remote system (RMTSYS)
parameter specified as *NONE, this parameter is ignored.
1 For system-created default printer output queues, this value is
specified as 1 when the output queue is created.
*NONE
No writers are auto-started by the system to this output queue.
number of writers
The number of writers, between 1 and 10, to be auto-started to this
output queue.
MSGQ
The qualified name of the message queue to which messages created by the
remote writer started to this output queue are sent.
The name of the message queue can be qualified by one of the following
library values:
v *LIBL
v *CURLIB
v Specific library name
Possible values are:
QSYSOPR
Messages are sent to the QSYSOPR message queue.
message queue name
The name of the message queue to which messages created by the
remote writer are sent.
CNNTYPE
The type of connection with the remote system. This parameter determines the
protocol used by the remote writer when sending spooled files. Possible values
are:
*SNA Spooled files are sent using SNADS. This is similar to the Send
Network Spooled File (SNDNETSPLF) command and requires that
SNADS be configured.
DESTTYPE
The type of the remote system (RMTSYS) parameter. This parameter, along
with the type of data contained in the spooled file (DEVTYPE parameter on
the CRTPRTF command), is used by a remote writer to determine the format
used to send the spooled file.
The spooled file is held by the remote writer if the type of data in the spooled
file is not supported by the system. Possible values are:
*OS400
When the connection type (CNNTYPE) has been specified as *SNA,
spooled files are to be sent to an AS/400 system running OS/400
version 3 or later. *OS400 can be specified for all releases which
support the SNDTCPSPLF command (version 2 release 3 and later)
when CNNTYPE is *IP or *USRDFN.
Note: This parameter is valid only when the CNNTYPE parameter is *IP, *IPX,
or *USRDFN.
Note: The user data transform program is only valid when the remote system
value is not *NONE. This parameter is not valid when
TRANSFORM(*YES) is specified.
MFRTYPMDL
The manufacturer, type, and model for a printer using the host print transform
function.
This parameter is only valid when TRANSFORM(*YES) or a user data
transform program is specified. The possible values are:
*IBM42011
The IBM 4201-1 Proprinter* is used.
*WSCST
The value of the WSCST parameter is used.
manufacturer-type-model
The manufacturer, type, and model for a printer using the host print
transform function.
Note: Prompting (F4) for this parameter shows many printers that can
be used as a value for this parameter.
WSCST
An object that consists of a table of attributes used to customize a given ASCII
device, such as a workstation or printer. Character presentation, font
specifications, and control key sequences are examples of characteristics that
can be customized.
This parameter is only valid when TRANSFORM(*YES) or a user data
transform program is specified. Possible values are:
*NONE
Do not specify a workstation customizing object.
The name of the workstation customizing object can be qualified by
one of the following library values:
v *LIBL
v *CURLIB
v Specific library name
workstation-customizing-object
A valid workstation customizing object which has been created with
the Create Work Station Customizing Object (CRTWSCST) command.
Note: The user driver program is only valid when the remote
system value is not *NONE.
More than one writer can be active at the same time (as determined by the
spooling subsystem description). Up to 10 writers can be active to the same output
queue. Each writer must have a unique writer name, and only one type (printer,
remote, or diskette) of writer can be active to a single output queue. A writer that
is started can be actively sending spooled files or waiting for a spooled file to be
put on the output queue. Optionally, the writer can end automatically when it has
processed all the spooled files on the output queue. You can also change, hold, or
cancel the writer.
The following table shows the data format of the spooled file that is sent to the
destination system when the connection type is *SNA.
Table 13. Connection Type (CNNTYPE) *SNA
Data Format
Destination Type (CNNTYPE) *ALLDATA *RCDDTA
*OS/400 All device type
*OS/400 V2 All device type
*OTHER (OS/400 V1, S/36, S/38) All device type
*S390 *LINE, *AFPDSLINE, *AFPDS *USRASCII, *IPDS, *SCS
Note: All device type includes *LINE, *AFPDSLINE, *AFPDS, *USRASCII, *IPDS,
and *SCS.
You can continue with other work after starting a writer because each job runs
independently. The writer is owned by the user who issues the STRRMTWTR
command. The following are the parameters and values for the STRRMTWTR
command:
OUTQ
The qualified name of the output queue. Possible values are:
*ALL Remote writers are started for every output queue on the system
which has a remote system (RMTSYS parameter value) specified.
The number of writers started to a particular output queue is
determined by the value specified on the AUTOSTRWTR parameter of
the CRTOUTQ command.
No writer is started if an output queue already has the number of
writers to autostart started or a different type of writer (diskette or
printer) is started to the output queue.
The name of the output queue can be qualified by one of the following
library values:
v *LIBL
v *CURLIB
v Specific library name
Note: A spooled file’s form type is specified in the device file that produced
the spooled file.
This is important because the output queue can contain spooled files with
many different form types. Only the spooled files with the specified form type
are sent; others wait on the output queue.
Note: The message sending options are most effective when the source system
is able to send the spooled files directly to a printer queue on the target
system.
*NOMSG
Neither an inquiry message nor an informational message is sent to the
message queue.
*INQMSG
An inquiry message is sent to the message queue when a spooled file
has a form type that is different than the form type last sent.
User print information is not used when sending spooled output files to another
AS/400 or S/3X system. It is used only as information to pass to the VM/MVS
bridge customer user exit to aid in setting the Network Job Entry (NJE) header
fields.
It’s possible for a system administrator to limit users access by revoking public
authority to the particular commands.
User print information can be used any way you want. For example, it could
consist of printout distribution information or be used for accounting information
(department to charge for printing).
User print information is worked with using the Change User Print Information
(CHGUSRPRTI), Display User Print Information (DSPUSRPRTI), and Retrieve User
Print Information (RTVUSRPRTI) commands.
For example, running the following command modifies (or creates if it doesn’t
exist) the user print information for user LAWSON.
CHGUSRPRTI USER(LAWSON) TEXT('DEPT. 269 P.O. BOX 123')
The command acts on the user print information for the user LAWSON. The user
information is changed (or created) to DEPT. 269 P.O.Box 123.
Note: DSPUSRPRTI uses the QPDSPUSRPI printer file when OUTPUT is specified
as *PRINT.
The coded character set identifier (CCSID) is used when the text description prints
on the output.
Of particular interest to remote system printing are the status’ of SND and DFR.
Note: DFR status is not unique to spooled output files on a remote output queue.
Spooled output files on non-remote output queues can also have a status of
DFR.
v SND
When a spooled output file is being sent to a remote system, it has a status of
SND. If the connection type is *SNA, the spooled output file may remain in SND
status until a confirmation message from the remote system is received by the
remote writer. At this time the spooled output file is deleted or saved,
depending on the save spooled file attribute. If the writer is ended while
spooled output files are in SND status, the spooled files are changed back to
RDY status.
v DFR
When a writer (printer or remote) is started to an output queue, it determines
the maximum spooled file size for the current time. Any RDY spooled files
which exceed the limit are changed to DFR status. If the spooled file exceeds the
current limit and is added to the output queue (created or moved) after a writer
is started to the output queue, the spooled output file status will be DFR.
When the system time-of-day changes such that a new maximum spooled
output file size is to take affect, the writer goes through the output queue again
and updates RDY spooled files to DFR, or DFR to RDY, depending on the new
limit and the size of the particular spooled output file. When the writer is
ended, all DFR spooled output files return to RDY.
When time ranges for the maximum spooled output file size overlap, the smaller
of the number of pages values is used. For example, assume that there were two
time ranges of 8:00:00 to 16:00:00 and 12:00:00 to 12:30:00, with number of pages
40 and 10 respectively. The largest spooled output file that would print from 8:00
am to 12:00 pm would be 40 pages. The largest spooled output file that would
print from 12:00 pm to 12:30 pm would be 10 pages. The largest spooled output
file that would print from 12:30 pm to 4:00 pm would be 40 pages.
Opt File User User Data Sts Pages Copies Form Type Pty
_ DMB18R1 LAWSON SND 1 1 *STD 5
8 STUMPF LAWSON RDY
_ DMB18R2 LAWSON TEST DFR 1 1 *STD 5
Bottom
Parameters for options 1, 2, 3 or command
===> _________________________________________________________________________
F3=Exit F11=View 2 F12=Cancel F20=Writers F22=Printers
F24=More keys
You can also display a spooled output file’s attributes by using the Work with
Spooled Files (WRKSPLF) command and selecting option 8.
Preparation work must be done on both the source system and target system for
the remote system printing to work. Table 14 provides a list of things that must be
present or created before remote system printing can be used.
Table 14. Source System and Target System Preparation for Remote System Printing
AS/400 Source System at V3R1 or later AS/400 Target System at V3R1 or later
| Line, controller, and device descriptions created Line, controller, and device descriptions created
| Additional information for these configuration Additional information for these configuration
| descriptions can be obtained in the Communications descriptions can be obtained in the Communications
| Configuration PDF manual. Configuration PDF manual.
Type CRTOUTQ and prompt (F4). The following screen appears. Type in the
values shown and press the Enter key. The remote output queue RMTOUTQ is
created. The other parameter values are needed to ensure connection and delivery
to the designated system.
Create Output Queue (CRTOUTQ)
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
To begin sending spooled output files from the RMTOUTQ remote output queue,
run the Start Remote Writer (STRRMTWTR) command. Type STRRMTWTR and
prompt (F4).
The following screen appears. Type in the values for the parameters displayed and
press the Enter key. Spooled output files are then sent to the OUTQRMT on the
target system (SYSNMDLC).
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
Type in the name of the printer (CHEROKEE2) you want to use and the name of
the output queue with the received spooled output files (OUTQRMT). Press the
Enter key and spooled output files will begin to print on the printer named
CHEROKEE2.
Start Printer Writer (STRPRTWTR)
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
Multiple printer writers can be started to same output queue. This allows the
spooled output files from a particular output queue to be printed on more than
To see the number of writers started to the OUTQRMT output queue, run the
WRKOUTQ *ALL command. The Work with All output queues screen appears.
Type option 9 next to the OUTQRMT output queue and press the Enter key. The
Work with All Writers display appears. If the output queue has more than one
writer started to it, the writers are listed and they both are associated with the
same output queue (OUTQRMT).
Work with All output queues
Bottom
Parameters for options 2, 3, 4, 6 or command
===>
F3=Exit F4=Prompt F12=Cancel F22=Start printer writer F24=More keys
You can list the names of writers started to the OUTQRMT output queue by typing
WRKOUTQ OUTQRMT and prompting (F4). The Work with Output Queue
display appears. Press F20=Writers key and the Work with All Writers display
appears with a list of all writers that are started to the OUTQRMT output queue.
This sequence is shown in the following two displays:
Opt File User User Data Sts Pages Copies Form Type Pty
DMB18R2 XZZ0136 *BEFORE HLD 4 1 ENTN 5
QPRINT STUMPF SAV 2 1 *STD 5
Bottom
Parameters for options 1, 2, 3 or command
===>
F3=Exit F11=View 2 F12=Cancel F20=Writers F22=Printers
F24=More keys
Bottom
Parameters for options 2, 3, 4, 6 or command
===>
F3=Exit F4=Prompt F12=Cancel F22=Start printer writer F24=More keys
Note: The user ID of the target system is OUTQRMT. This user ID is associated
with a user profile, also named OUTQRMT. The default output queue for
user profile OUTQRMT is named OUTQRMT. This output queue
(OUTQRMT) is the destination of the spooled files sent from the source
Preparation work must be done on both the source system and target system for
remote system printing to work. Table 15 provides a list of things that must be
present or created before remote system printing can be used.
Table 15. Source System and Target System Preparation for Remote System Printing
AS/400 Source System at V3R1 or later AS/400 Target System at V2R3
| Line, controller, and device descriptions created Line, controller, and device descriptions created
| Additional information for these configuration Additional information for these configuration
| descriptions can be obtained in the Communications descriptions can be obtained in the Communications
| Configuration PDF manual. Configuration PDF manual.
Create a remote output queue for remote system Create an output queue named OUTQRMT to receive the
printing. Use the Create Output Queue (CRTOUTQ) spooled files. This matches the name on the RMTPRTQ
command. parameter (OUTQRMT).
Note: When a remote output queue is created, writers are automatically started to
it if the AUTOSTRWTR parameter value is not *NONE.
Type CRTOUTQ and prompt (F4). The following screen appears. Type in the
values shown and press the Enter key. The remote output queue RMTOUTQ is
created. The other parameter values are needed to ensure connection and delivery
to the designated system.
Create Output Queue (CRTOUTQ)
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
To begin sending spooled output files from the RMTOUTQ remote output queue,
run the Start Remote Writer (STRRMTWTR) command by typing STRRMTWTR
and prompting (F4).
The following screen appears. Type in RMTOUTQ and press the the Enter key.
Spooled output files are then sent to the OUTQRMT output queue on the target
system (SYSNMDLC).
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
Type in the name of the printer (PRT01) you want to use and the name of the
output queue with the received spooled output files (OUTQRMT). Press the Enter
key and spooled output files will begin to print on the printer device named
CHEROKEE2.
Start Printer Writer (STRPRTWTR)
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
Preparation work must be done on both the source system and target system for
remote system printing to work. Table 16 provides a list of things that must be
present or created before remote system printing can be used.
Table 16. Source System and Target System Preparation for Remote System Printing
AS/400 Source System at V3R1 or later VM/MVS Target System
| Ensure Licensed Program 5769-CM1 is installed. This is NJE configuration for VM/RSCS and JES2 or JES3 for
| needed for communications. For more details about MVS.
| configuring SNADS connections between these systems
| see the SNA Distribution Services PDF. Contact with the host system will be critical to
establishing the correct connection with VM/MVS.
System node name, printer ID, and user ID are some of
the information the AS/400 will require.
Line, controller, and device descriptions created Communication descriptions must exist or be created to
connect the VM/MVS system to the AS/400 system.
| Additional information for these configuration Typically this would be a line, physical unit (similar to
| descriptions can be obtained in the Communications controller), and a logical unit (similar to device). The VM
| Configuration PDF manual. or MVS system configuration will require information
from the AS/400 system.
Identify the user profile to be used for remote system This user must also exist on the target system if *USER is
printing. specified on the RMTPRTQ parameter on the AS/400
system.
Note: When a remote output queue is created, writers are automatically started to
it if the AUTOSTRWTR parameter value is other than *NONE.
Type CRTOUTQ and prompt (F4). The following screen appears. Type in the
values shown and press the Enter key. The remote output queue TEST1 is created.
The other parameter values are needed to ensure connection and delivery to the
designated system.
Create Output Queue (CRTOUTQ)
To begin sending spooled output files from the RMTOUTQ remote output queue,
run the Start Remote Writer (STRRMTWTR) command by typing STRRMTWTR
and prompting (F4).
The following screen appears. Type in RMTOUTQ and press the Enter key. Spooled
output files are then sent to the printer designated as the system printer on the
target system (VM3).
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
Preparing AS/400 V3R1 or later to PS/2 with PSF for OS/2 for Remote
System Printing
The diagram below illustrates AS/400-to-PS/2 remote system printing with
TCP/IP. The AS/400 source system is at Version 3 Release 1 or later. The PS/2
must have OS/2 2.0 or later installed.
Preparation work must be done on both the source system and target system for
remote system printing to work. Table 17 provides a list of things that must be
present or created before remote system printing can be used.
Table 17. Source System and Target System Preparation for Remote System Printing
AS/400 Source System at V3R1 or later PS/2 Target System
| Ensure Licensed Program 5769-TC1 for TCP/IP is Ensure IBM TCP/IP 2.0 for OS/2 is installed and
| installed. This is needed for communications. For more configured on the PS/2. See IBM Transmission Control
| details about configuring connections between systems Protocol/Internet Protocol Version 2.0 for OS/2 G544-3767 for
| see the Configuration and Reference PDF. installation and configuration help.
Line, controller, and device descriptions created. Configure the PS/2 for TCP/IP. See the manual IBM
Transmission Control Protocol/Internet Protocol Version 2.0
Additional information for these configuration for OS/2: Installation and Administration SC31-6075 for
descriptions can be obtained in the Communications configuration help.
Configuration PDF manual.
Some of the configuration values use remote output
queue description. They are: system name and Internet
address.
Create a remote output queue for remote system Ensure Line Printer Daemon (LPD) is running on the
printing. Use the Create Output Queue (CRTOUTQ) PS/2. Use the Start LPD command. See the manual IBM
command. Transmission Control Protocol/Internet Protocol Version 2.0
Identify the printer queue name for the target PS/2 for OS/2 SX75-0070 for help.
(ANNSPRIN).
Identify the internet address for the target PS/2
(9.5.50.48), or identify the system name for the target
PS/2 (ERIC). Either of these values can be used.
Note: When a remote output queue is created, writers are automatically started to
it if the AUTOSTRWTR parameter value is other than *NONE.
Type CRTOUTQ and prompt (F4). The following screen appears. Type in the
values shown and press the Enter key. The remote output queue RMTOUTQ is
created. The other parameter values are needed to ensure connection and delivery
to the designated system.
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
To begin sending spooled output files from the RMTOUTQ remote output queue,
run the Start Remote Writer (STRRMTWTR) command. Type STRRMTWTR and
prompt (F4).
The following screen appears. Type in the values for the parameters displayed and
press the Enter key. Spooled output files are then sent to the remote printer queue
named ANNSPRIN on the PS/2 system named ERIC.
Start Remote Writer (STRRMTWTR)
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
Note: The remote system (RMTSYS) parameter value can be the NetWare server
name for *NETWARE3 or the tree name for *NDS. Partial *NDS names are
allowed for the RMTPRTQ value when the *NDS value is used. If the fully
qualified *NDS name is not given, you can look for the NetWare context that
specifies the queue by using the command CHGNWSA OPTION(*NETWARE).
Preparation work must be done on both the source system and target system for
remote system printing to work. Table 18 provides a list of things that must be
present or created before remote system printing can be used.
Table 18. Source System and Target System Preparation for Remote System Printing
AS/400 Source System at V3R7 or later NetWare Target Server
Ensure the Licensed Program NetWare Integration Ensure the NetWare Loadable Module (NLM) from the
(5769-SA3) is installed. NetWare Enhanced Integration has been installed on the
NetWare Server that owns the volume used by the
NetWare printer queue.
| Configure and start Internetwork packet exchange (IPX) Load the NetWare Enhanced Integration NLM. The file
| support on the AS/400. For IPX configuration to be loaded is AS4NW410.NLM for NetWare 4.10 or
| information see the Internet Packet Exchange PDF. AS4NW312.NLM for NetWare 3.12 servers.
Note: When a remote output queue is created, writers are automatically started to
it if the AUTOSTRWTR parameter value is other than *NONE.
Type CRTOUTQ and prompt (F4). The following screen appears. Type in the
values shown and press the Enter key. The remote output queue RMTOUTQ is
created. The other parameter values are needed to ensure connection and delivery
to the designated system.
Create Output Queue (CRTOUTQ)
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
To begin sending spooled output files from the RMTOUTQ remote output queue,
run the Start Remote Writer (STRRMTWTR) command. Type STRRMTWTR and
prompt (F4).
The following screen appears. Type in the values for the parameters displayed and
press the Enter key. Spooled output files are then sent to the remote printer queue
named NWQUEUE or NDSQUEUE on the NetWare network. .
Bottom
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
The network print server provides client access to AS/400 system print objects and
resources. Following are the network print server objects and the actions that can
be requested to be performed on these objects:
Objects
Actions
Spooled file
Create, seek, open, read, write, close, hold, release, delete, move, send, call
exit program, change attributes, retrieve message, answer message, retrieve
attributes, and list.
Writer job
Start, end, and list
Printer device
Retrieve attributes and list
Output queue
Hold, release, purge, list, and retrieve attributes
Library
List
Printer file
Retrieve attributes, change attributes, and list
Network print server
Change attributes and retrieve attributes.
After a communications session has been established, the client can start the
network print server by sending a special record, called a Program Start Request
(PSR), to the AS/400 system. The communications session you use can utilize
different protocols. Refer to the appropriate manual for that communications type
for information on using program start requests (PSRs).
After the network print server program has been started using a PSR, a
communications transaction has been started. A communications transaction is a
logical connection between two programs on a communications session. After this
communications transaction starts, data can be exchanged between the client and
the network print server.
The program name contained in the PSR from the client must be defined in the
prestart job entry. This is how the PSR attaches itself to a prestart job and therefore
achieves better performance.
The network print server has prestart jobs defined in the QBASE and QCMN
subsystems. The number of prestart jobs that automatically start to support the
network print server is small and thus saves system resources.
Note: The network print server never rejects a PSR. All PSRs are handled, or
they are queued and use the next available prestart job.
Following is an example of a prestart job entry in the QBASE subsystem for the
network print server.
If the PSRs were not being acted upon fast enough you could:
v Increase the Initial number of jobs (INLJOBS) parameter value.
v Increase the Additional number of jobs (ADLJOBS) parameter value.
Then, when the Threshold (THRESHOLD) parameter value is reached, the
additional number of jobs are prestarted.
The key is to match the number of prestart jobs to the number of PSRs that are
being sent. Keeping this association as close to 1-to-1 ensures peak system
performance.
Additional prestart jobs can be started if the number of program start requests to
the network print server exceed the number of available prestart jobs.
Table 19 contains the IBM-registered exit points that can be used with the network
print server.
Table 19. Network Print Server Registered Exit Points
Type of Support Exit Point Name Exit Point Format
Entry QIBM_QNPS_ENTRY ENTR0100
Spooled file QIBM_QNPS_SPLF SPLF0100
Exit programs must be registered with the AS/400 system Registration Facility.
Registration allows all users to associate exit programs with the exit points.
The network print server exit points are already registered with the AS/400
Registration Facility. To use these exit points, you have to register your exit
programs with the AS/400 Registration Facility.
Exit programs are registered and de-registered using the following APIs:
v Add Exit Program (QUSADDEP) API
Adds an exit program entry for a specific exit point.
Note: The network print server exit points do not define exit program data.
When you register your exit program you can provide exit program data.
However, the data is not used by the network print server.
v Remove Exit Program (QUSRMVEP) API
Removes an exit program entry for a specific exit point.
For information and examples on how to register exit programs and exit points,
see the API Reference topic in the online Information Center.
Required Parameters:
Offset
Dec Hex Type Field
0 0 CHAR(1) Return code
Server information
INPUT; CHAR(32) The server information structure contains the user profile
name, server identifier, format name, and server function identifier.
Offset
Dec Hex Type Field
0 0 CHAR(10) User profile name
10 A CHAR(10) Server identifier
20 14 CHAR(8) Format name
28 1C BINARY(4) Function identifier
Required Parameters:
Offset
Dec Hex Type Field
0 0 CHAR(1) Return code
Offset
Dec Hex Type Field
0 0 CHAR(10) User profile name
10 A CHAR(10) Server identifier
20 14 CHAR(8) Format name
28 1C BINARY(4) Function identifier
Spooled file ID
INPUT; CHAR(40) The spooled file ID structure contains the job name, user
name, job number, spooled file name, and spooled file number. This
information uniquely identifies a spooled file on the AS/400 system.
Offset
Dec Hex Type Field
0 0 CHAR(10) Job name
10 A CHAR(10) User name
20 14 CHAR(6) Job number
26 1A CHAR(10) Spooled file name
36 24 BINARY(4) Spooled file number
Offset
Dec Hex Type Field
0 0 BINARY(4) Length of the
spooled file exit
program data
4 4 CHAR(*) Spooled file exit
program data
Function identifier. Identifies, within a server, the function of the exit point. For the network print server, two
function identifiers are supported:
v For spooled file support, the value is hexadecimal 010D.
v For entry support, the value is hexadecimal 0802.
Job name. The name of the job that created the spooled file.
Job number. The number of the job that created the spooled file.
Server identifier. Identifies the OS/400 server being called. The value for the network print server is QNPSERVR.
Spooled file exit program data. Spooled file exit program data consists of additional information used by the exit
program that has registered for exit point QIBM_QNPS_SPLF. The client application provides the spooled file exit
program data.
Spooled file name. The name of the spooled file being requested.
Spooled file number. The number of the spooled file being requested.
User profile name. The user, from Client Access Express, that is making the call to the network print server.
To use advanced function printing (AFP) support on the AS/400 system, the
PSF/400 must be installed. However, if the ASCII data stream is converted
through Host Print Transform function, you can use the AFP support
without having to install the PSF/400.
See “Using Print Services Facility for OS/400 (PSF/400)” on page x for
information on when PSF/400 is required. If you have additional questions
about PSF/400, contact your IBM representative.
Configuration examples are provided in this manual for your use. Commands,
parameters for those commands, and values for the parameters in a command are
presented.
Commands used in the examples do not include every parameter associated with
each command. In the examples, if the IBM-supplied default (a value that is
automatically supplied or assumed by the system or program) was the parameter
value used in the example, it will not be shown except to note an exception or to
make a point. When creating your configuration descriptions, simply use the
default parameter value. Immediately below is a diagram and explanation of how
the configuration examples are presented in this manual.
This value must match the LIND parameter value you assigned when you
created the communications line description for this controller. In this
example that value is SDLC3812.
RSLP071-0
This chapter discusses the resources used to perform advanced function printing.
Some of the resources are shipped with the system and some of them can come
from a System/390. Resources from a System/390 can be downloaded or they can
come inline with the data that is to be printed. Form definitions, fonts, page
segments, page overlays, and page definitions are examples of resources that can
come from a System/390. Additionally, you could have created page overlays and
page segments yourself using the Advanced Function Printing Utilities/400 (AFP
Utilities) licensed program (5769-AF1). This licensed program allows you to create
resources for advanced function printing on the AS/400 system. For more
information on AFP Utilities, go to “Advanced function printing utilities/400” on
page 325.
If you are certain you have all the resources needed to use AFP, you can skip this
chapter and go to “Chapter 9. Printing AFPDS data” on page 235. If you do not
have the resources, or are unsure, read this chapter.
Resource objects contain data and control information that can be used in a
printing job and that can be shared by different pages and different print data sets.
Examples of resources are fonts, which define the characters used to print text, and
page segments, which can include images and text.
Resources can be stored and accessed from within the operating system being
used. By referring to the name of the stored resource, many data streams can share
the same resources.
When you received AFPDS resource data from System/390, you transformed that
data to a format that can be used on the AS/400 system. You did that by using the
following commands:
v CRTFORMDF
v CRTFNTRSC
v CRTPAGSEG
v CRTOVL
v CRTPAGDFN
When the commands are run, it is important that the transformed data be placed
in a library that is defined to your library list when you initially sign on the
system. This ensures that System/390 resources are available when the spooled file
is created and when it is printed.
When the system searches the saved libraries for the resources needed to print the
spooled file, it searches in the following order:
1. System libraries
These libraries are identified in system value QSYSLIBL. System libraries are
available to all users; they are identified in your library list with a type of SYS.
2. Current library
The current library is identified in your user profile as the value for the current
library (CURLIB) parameter. In your library list, the current library has a type
of CUR.
3. User libraries
User libraries are identified in system value QUSRLIBL or a job description. In
your library list, these libraries are identified with a type of USR.
If you have a resource that you want many users to have access to (fonts, for
example), you may want to put that resource in a library that everyone has access
to, such as a library identified in the system value QSYSLIBL.
On the other hand, if you have a resource that you want to restrict access to
(signatures, for example), you may want to put that resource in a library that is
accessible only to the users that need that resource. For example, if you own the
library that the resources are stored in, you can grant access to that object (the
library) with the Grant Object Authority (GRTOBJAUT) command.
You may override the above system library search list and specify a library search
list for a particular printer with the PSF configuration object. The PSF configuration
object allows you to specify additional parameters for a particular device that are
not supported on the Create Device Description (CRTDEVPRT) command. This
includes the ability to specify a user library list (USRRSCLIBL parameter) and
device library list (DEVRSCLIBL parameter). If you create a PSF configuration
object, the default for the user and device library lists will be the same as the
library search described above. For more information about specifying AFP
resource library lists with a PSF configuration object, see “User and device resource
library lists” on page 258.
Any of those libraries that are found are put in the library list of the job printing
the spooled file. These font resource libraries are then available for printing
spooled files even though they were not in the library list of the job (user) that
originally created the spooled file. Also, if you have acquired additional font
resources, you could store them in these IBM-supplied font libraries. Storing them
in the IBM-supplied libraries provides widespread access based on the way the
system searches for a font.
Putting the font resource in a separate library that is not one of the QFNTxx
libraries listed above requires that users have that library specified in their library
list when the spooled file is created.
For information about specifying a different font library list on a printer, see “User
and device resource library lists” on page 258.
At least two resources are needed to make up a font: a font character set and a
code page. A third resource, a coded font, can define a font by naming a font
character set and a code page.
Code page
This resource associates code points with character identifiers, each representing a
character raster pattern. A code point is an 8-bit binary number representing one of
256 potential characters.
Coded font
This resource associates one or more code pages with the appropriate font
character sets.
Font resources can be downloaded from the System/390. These font resources can
not be altered by the AS/400 system operator. If changes need to be made to any
font resources the System/390 site must be notified.
The following font families comprise the IBM-supplied compatibility font set that
is provided with the OS/400 program for advanced function printing:
v APL
v Boldface
v Courier
v Document
v Essay
v Format
v Gothic
v Orator
v Prestige
v Proprinter Emulation
v Roman
v Script
v Serif
v Symbol Set
v Text
In addition to these 240-pel raster fonts, the compatability set includes a number of
code pages that are downloadable to printers. For use on printers that support
outline fonts, the set also includes a Letter Gothic outline font that contains the
euro symbol.
If you purchase any of the fonts and want to install them, you will have to use the
Software Install PDF to install the fonts.
IBM AFP font collection for MVS, OS/390, VM, and VSE:
This font collection provides font resources for the MVS, OS/390, VM, and VSE
operating environments. It includes font data formats for 240-pel bitmaps, 300-pel
bitmaps, and AFP outline fonts. No additional font utilities are offered with this
collection.
| Chinese, Japanese, and Korean languages have DBCS CID-keyed outline fonts.
| Fonts for these three languages are also available for Type Transformer and related
| OS/2 batch jobs to create 240-pel and AFP Outline Font resources.
Language support includes the Latin-1–5 language groups, along with Arabic,
Cryllic, Greek, Hebrew, Lao and Thai for the Courier, Helvetica, and Times New
Roman type families.
DBCS type families and languages provided in the AFP Font Collection for Outline
Fonts and Programs include:
v Japanese
– Heisei Kaku Gothic
– Heisei Maru Gothic
– Heisei Mincho
v Korean with unified Hanguel characters
– Gothic
– Myengjo
v Chinese-Simplified
– Fang Song (GB)
– Hei (GB)
– Kai (GB)
– Song (GBK)
v Chinese-Traditional
– Kai
– Sung
The Version 2.1.0 AFP Font Collection does not contain any of the following:
v Font licensed products, including the Sonoran fonts.
Supported languages
The AFP Font Collection products provide language support as follows:
The IBM Compatibility Fonts are provided in 240-pel bounded and 300-pel raster
formats.
Page segments
Page segments are objects containing composed text and image, prepared before
formatting and included during printing.
For example: you may want to repeat constant data at different positions on a page
or overlay, and you may also want to repeat that data on different pages or
overlays. You can do this by using a page segment. A company logo is an example
of this type of data.
Using the Advanced Function Printing Utilities/400 licensed program or the AFP
printer drivers provided with Microsoft® Windows or OS/2 2.0, you can create
page segments on the AS/400 system. Page segments can also be downloaded
from System/390. The page segments must be stored in an accessible library.
When page segment data is received from the System/390, you place it in a data
file. In order to convert the page data to a format that can be used by the AS/400
system, use the CRTPAGSEG (Create Page Segment) command.
Overlays
Overlays are a collection of predefined data (such as lines, shading, text, boxes, or
logos) that can be merged with variable data on a sheet while printing is being
performed.
To use overlays, specify them in the front and back overlay parameters of the
printer file being used with your application: temporarily using an Override with
Printer File (OVRPRTF) command, permanently using the Change Printer File
(CHGPRTF) command, or before the spooled file prints using the Change Spooled
File Attributes (CHGSPLFA) command.
You can also use the DDS OVERLAY keyword to include overlays with your
printed output.
When overlay data is received from the S/390, you place it in a data file. In order
to convert the page overlay data to a format that can be used by the AS/400
system, use the CRTOVL (Create Overlay) command.
The following list details the origin of AFP-related form definitions for the AS/400:
v Provided with the AS/400 system
v Created with AFP PrintSuite for OS/400.
v Downloaded from S/390
v Inline from S/390
Across Down
Name (Inches) (Inches) Presentation Direction Bin Duplex
F1A10110 1/6 1/6 Portrait Across 1 No
F1A10111 1/6 1/6 Portrait Across 1 Yes
F1A10112 1/6 1/6 Portrait Across 1 Tumble
F1A10120 1/6 1/6 Portrait Across 2 No
F1A10121 1/6 1/6 Portrait Across 2 Yes
F1A10122 1/6 1/6 Portrait Across 2 Tumble
F1C10110 1/6 1/6 Landscape Down 1 No
F10101PA 0 1/2 Portrait Across 1 No
F10101PD 0 1/2 Portrait Down 1 No
When these form definitions are received from System/390, you place them in a
data file. In order to convert this form definition data to a format that can be used
by the AS/400 system, use the CRTFORMDF (Create Form Definition) command.
You can specify a form definition with the following device types:
v *AFPDS
v *AFPDSLINE
v *LINE
v *IPDS
v *SCS
| v *USERASCII
Whenever you specify any output directed to an AFP printer but do not specify a
form definition, an inline form definition is built from the print parameters and
passed to PSF/400.
Depending upon the specifications given, some printer file parameters may be
ignored when output is printed through PSF/400. For example, if you specify a
form definition on the CRTPRTF, CHGPRTF or OVRPRTF CL command, an inline
form definition will not be built from the printer file parameters. In this example, if
you send the data to an AFP printer PSF/400 ignores the following printer file
parameters:
v BACKMGN
v CORNERSTPL
v DRAWER
v DUPLEX
When specifying a form definition on the printer file, the values you specify on the
DRAWER and DUPLEX parameters will override the drawer and duplex values
specified in the form definition. If you want to use the drawer and duplex values
specified in the form definition, you must specify DRAWER(*FORMDF) and
DUPLEX(*FORMDF) on the printer file.
To indicate an output bin for a form definition, specify the OUTBIN parameter on
the print file.
The spooled file attributes for the form definition are changeable.
Page definitions
Page definitions are resources that format and compose line data into pages. A
page definition contains printing controls that specify:
v Where data from each input record is to be printed
v Page size (height and width)
v Data fields that can be suppressed
v Print positions for line-data records containing carriage-control characters
v Inline printing direction
v Number of lines per inch
v List of page segments that may be used
v List of overlays that may be used
v Record definitions
v Constant data to be printed
v List of fonts that may be used
Whenever you are printing to a printer configured as AFP(*YES), and you are
printing line data or mixed data, a page definition is required. If a page definition
is not specified on the printer file, an inline page definition is built from the printer
file parameters.
The page definitions shown in Table 20 are provided with the AS/400 system in
library QSYS.
When page definition data is received from the S/390, you place it in a data file.
To convert the page definition data to a format that can be used by the AS/400
system, use the CRTPAGDFN (Create Page Definition) command.
Page definitions can be created on the OS/400 with the Page Printer Formatting
Aid (PPFA/400) feature of AFP PrintSuite for OS/400. The CVTPPFASRC
command that is a part of PPFA/400 allows you to create a source file containing
page definition structured fields. You would then use the CRTPAGDFN command
to create a page definition from the source file generated by the CVTPPFASRC
command. See the IBM Page Printer Formatting Aid: User’s Guide (S544-5284) for
more information about creating page definitions on OS/400.
You can specify page definitions with *LINE or *AFPDSLINE data. After PSF/400
completes formatting, it converts the line data and page definition to IPDS.
When you specify a page definition on the printer file, some printer file parameters
may be ignored when the spooled file is printed through PSF/400. For example, if
you specify a page definition on the CRTPRTF, CHGPRTF, or OVRPRTF CL
command, and also specify line data or mixed data, an inline page definition will
not be built from the printer file parameters. In this case, if you send the data to an
AFP printer, PSF/400 ignores the following print parameters:
v CDEFNT
v CHRID
v CPI
v FNTCHRSET
To change the PAGDFN spooled file attribute, use the CHGSPLFA command.
What to do next:
Once you are sure you have all the above resources in place, go
to “Chapter 9. Printing AFPDS data” on page 235
For line data and mixed data, the following terms are used interchangeably:
v *LINE and line data
v *AFPDSLINE and mixed data
DEVTYPE values
To place line data or mixed data onto the printer spool, specify either the *LINE or
*AFPDSLINE values with the DEVTYPE parameter for the CRTPRTF, CHGPRTF,
and OVRPRTF CL commands.
*LINE Line data is placed onto the spool. For *LINE:, specify any of the
following:
v CTLCHAR(*FCFC)
v CTLCHAR(*MACHINE)
v CTLCHAR(*NONE)
To place line data and skipping or spacing controls directly onto the
printer spool without converting it to another data stream, specify *LINE.
The line data is not in a printer-ready format and, like AFPDS, will be
converted to the appropriate printer format at print time.
*AFPDSLINE:
Mixed data (line and AFPDS data) is placed onto the printer spool.
For *AFPDSLINE, specify any of the following:
You can specify page definitions to format traditional application line data
without making any application programming changes. If, however, you
want to use any one of the following AFPDS structured fields (which can
be intermixed with line data), you must specify, in hex, a X'5A' record in
the output buffer. Refer to Advanced Function Printing: Programming Guide
and Line Data Reference , (S544-3884), for more information about mixed
documents and AFPDS. For example: by changing your application, you
can specify any one of the following AFPDS structured fields, and they can
be intermixed with line data:
v Invoke Data Map
v Invoke Medium Map
v Invoke Page Segment
v Include Page Overlay
v Presentation Text
Refer to the Advanced Function Presentation Programming Guide and Line Data
Reference (S544-3884) for more information about mixed data streams.
CTLCHAR values
When machine code control characters exist in the data (rather than ANSI control
characters), specify the CTLCHAR parameter with a value of *MACHINE on the
CRTPRTF, CHGPRTF, or OVRPRTF CL commands.
See Table 22 on page 227 for information about machine code control characters.
TBLREFCHR parameter
To indicate whether a table reference character (TRC) exists in the data, specify the
TBLREFCHR parameter with the CRTPRTF, CHGPRTF, or OVRPRTF CL
commands.
If forms control characters are used with the data, the TRC follows the forms
control character, but precedes the data bytes. If forms control characters are not
used, the TRC is the first byte of the data record. As with forms control characters,
if table reference characters are used, every data record must contain a TRC byte.
See “Table reference characters (TRC)” on page 229 for more information.
The AFPCHARS parameter is only valid for *LINE and *AFPDSLINE device types.
| CVTLINDTA parameter
| Use the CVTLINDTA parameter to specify whether line data and a page definition
| should be converted to AFPDS before the data is spooled. You can specify this
| parameter in the CRTPRTF, CHGPRTF, and OVRPRTF commands.
If you are a S/370 user, you should be familiar with the concepts of AFP and page
definitions. When using line data, page definitions, and form definitions, your
applications are generating line data with either an ANSI or machine code control
character in column 1 of the spooled output. To migrate data to AS/400 prior to
OS/400 Version 3, Release 2, and Version 3, Release 7, S/370 users had to use
PrintManager/400 API calls to rewrite their applications. With line data support,
applications do not need to be rewritten. To migrate data to AS/400, specify
CTLCHAR(*FCFC) for ANSI code control, or CTLCHAR(*MACHINE) for machine
code control. You should also specify DEVTYPE(*LINE) or
DEVTYPE(*AFPDSLINE)
If you are an AS/400 user, and want to use line data, page definitions, and form
definitions, you must determine whether your application generates an ANSI
control character exists in column 1 of your spooled output.
Note: Specifying a form definition in this format is optional; you could specify that
an inline form definition be built from the print file parameters by
indicating FORMDF(*NONE) on the AS/400 printer file.
You can change your application to place an ANSI control character in column 1 of
your spooled output to control skipping and spacing, by using a language or
application construct (such as a SKIP or SPACE option on a COBOL WRITE
statement), or by making an RPG output specification.
When you specify a device type of *AFPDS, *IPDS, or *SCS, control information is
used to generate the appropriate skipping or spacing commands in the specified
3. You are not required to specify PAGDFN or FORMDF with *AFPDSLINE data because it can be built inline from a print file.
Note: You may not use both ANSI and machine codes within a single data set.
There are differences in the conventions used by OS/400 for ANSI and machine
code line spacing. The OS/400 convention for ANSI handles line spacing and then
causes the line to be printed. The OS/400 convention for machine codes causes the
line to be printed and then the spacing action is performed.
DATA
CC DATA
TRC DATA
CC TRC DATA
D. Data line with carriage control byte and table reference character
Figure 2. Valid Line Data Records
The following is a list of DDS keywords that are supported for line data. If you
use DDS keywords that are not included on this list while processing line data,
they will be ignored.
v ALIAS
v BLKFOLD
| v CCSID
v DATE
v DATFMT
v DATSEP
v DFT
v DLTEDT
v INVDTAMAP
v EDTCDE
v EDTWRD
v FLTFIXDEC
v FLTPCN
v IGCALTTYP
v IGCANKCNV
v INDARA
v INDTXT
v INVMMAP
v MSGCON
The data-map-name paramater is required and defines a data map in the page
definition. This parameter is 8 characters. The data map name can be specified as a
constant or program-to-system field.
The INVDTAMAP, SKIP, and SPACE keywords are processed in the following
order:
v SKIPB
v SPACEB
v INVDTAMAP
v SPACEA
v SKIPA
The medium map name is limited to 8 characters. You can specify the medium
map name as a constant or a program-to-system field.
v medium-map-name
v field1
PSF/400 ends printing on the current sheet when a invoke medium map is
encountered.
INVMMAP, SKIP, and SPACE keywords are processed in the following order:
v SKIPB
v SPACEB
v INVMMAP
v SPACEA
v SKIPA
The medium map specified remains in effect for the rest of the file unless changed
by another INVMMAP keyword.
The invoke medium map keyword is validated at print time. An error message
will be issued if it is not valid.
RECORD2 allows the application program to specify the name of medium map by
setting program variable MAP.
When data is sent from a System/390 to the AS/400 system, it can go directly to
the output queue of a designated user ID or it can go into your network files.
Notes:
1. Sending print data to the output queue of a user ID is supported only when
your host System/390 RSCS/JES subsystem is connected to the AS/400 system
VM/MVS Bridge.
2. To send data to another system (AS/400 system or System/390), you can use
the Send Network Spooled File (SNDNETSPLF) command. Go to “Using the
send option” on page 143 for more information about this command.
3. The SNA Distribution Service guide contains information on how to create
communications networks that enable you to send data from the AS/400
system to other systems.
If the data consists of print data (AFPDS, LINE, or AFPDSLINE data), the data can
be sent directly to an output queue of a specified user ID on the AS/400 system.
AFPDS data can go to your network files, but you must then use the Print
Advanced Function Printer Data (PRTAFPDTA) command to put the file on an
output queue.
If the data consists of resources (fonts, form definitions, overlays, page definitions,
or page segments), the data must go into your network files.
Using the PSF command: The following set of commands places the LINE data
spooled file named reports letter a into the output queue of the user named
userone on the AS/400 system with a node ID of as4002. A PAGEDEF will be used
when the data is printed.
When using the PSF command, you must place the characters P1 in front of the
PAGEDEF name. When using a FORMDEF, you must place the characters F1 in
front of the FORMDEF name. This example uses PAGEDEF; the PAGEDEF object
name in the command is P1MYFORM.
'TAG DEV PRT as4002 userone'
'SPOOL PRT TO RSCS COPY 1'
'PSF reports letter a (PAGEDEF (P1MYFORM RESOURCE A))'
These commands are job control language (JCL) commands. Do not place a P1 (for
PAGEDEF) or an F1 (for FORMDEF) in the instructions. In the example below a
FORMDEF named MYFORM is used.
//INSTR PROC NODE='as4002',USER='userone'
INFILE='dept265.userx.files(report)'
//SPOOL EXEC PGM=IEBGENER
//MYOUT OUTPUT DEST=NODE..USER,
COPIES=1,
FORMDEF=MYFORM
//SYSPRINT DD SYSOUT=*
//SYSIN DD DUMMY
//SYSUT1 DD DSN=&,DISP=SHR,DCB=(RECFM=FBA);
//SYSUT2 DD SYSOUT=A,OUTPUT=*.MYOUT
// PEND
//STEP01 EXEC PROC=INSTR
The following System/390 parameters are supported when data is sent directly to
the output queue of a user on the AS/400 system.
If a System/390 printer parameter that is not in this table is specified, and there is
no matching or equivalent AS/400 printer file parameter, the System/390 printer
parameter is ignored when the data is printed on the AS/400 system.
Table 23. VM System/390 Parameters
System/390
Printer AS/400 Printer
Parameter File Parameter
Names VM Commands Function Names
BIN PSF Specifies which drawer or bin the DRAWER
paper is taken from.
CC PRINT, PSF Specifies control characters. CTLCHAR1
CHARS SPOOL Specifies a table of coded fonts. AFPCHARS
COPY SPOOL Specifies the number of copies. COPIES
DATACK PSF Specifies whether or not the No equivalent
printer will block print positioning AS/400
and invalid character errors. parameter
Twinaxial attached printers will
always block print positioning and
invalid character errors unless the
printer file used to create the
spooled file has the fidelity
parameter value set to
*ABSOLUTE.
DEST TAG Specifies node and user ID. No equivalent
AS/400
parameter
DUPLEX PSF Specifies if duplex printing is to DUPLEX
be used.
FCB SPOOL, TAG Specifies the printer file used. FILE
FORM SPOOL Specifies the form type to be used. FORMTYPE
FORMDEF PSF Specifies the form definition to be FORMDF
used.
PAGEDEF PSF Specifies the page definition to be PAGDFN
used.
PRMODE2 PSF Specifies the device type, DEVTYPE,
ideographic character data, IGCDTA,
processing shift-out/shift-in IGCSOSI
characters.
TRC PRINT, PSF Specifies if the data stream TBLREFCHR
contains table reference codes.
Note: If you cannot find the spooled file on the output queue of the specified user
ID, look in the QNFTP job log for informational, diagnostic, and error
messages. The QNFTP job runs under the QSNADS user profile.
Target Target
AS/400 Output
VM or MVS Target
System Queue of
System/390 Printer
(node ID) Specified
User ID
RV3H050-0
Note: The target user ID must have access to the libraries containing the resources
(overlays, fonts, page segments) that the spooled file needs when it prints
on the AS/400 system. Go to “Working with AFP resources and libraries” on
page 210 for more information about resources and libraries.
Target user ID
The host System/390, working with the AS/400 system, can send spooled files
directly to the output queue of a specified user ID. This capability eliminates
manually receiving spooled files and then using the PRTAFPDTA command to
print the files.
Target printer
Make sure that the printer you want to print the files on is assigned to the correct
output queue. If any special handling of the printer is necessary (form choice,
drawer selection, envelopes, and so on), it should be done before the files are sent.
Note: AFPDS data can also be sent to network files. However, this is not the
recommended way to send this data to an AS/400 system. If you choose this
way, you must use the Print Advanced Function Printer Data (PRTAFPDTA)
command to put the file on an output queue.
The following sample command creates a physical file that can receive resources
and AFPDS data:
CRTPF FILE(MYLIB/MYFILE) RCDLEN(4000) MBR(*NONE) MAXMBRS(*NOMAX) LVLCHK(*NO)
To see a prompt display for these commands, type WRKNETF or RCVNETF and
press F4 (Prompt).
The Work with Network Files (WRKNETF) command allows you to work with a
list of files that have arrived for a user, or creates a database file containing a list of
the files.
If the list is displayed, you can enter an option to select a function to be performed
on the file. You can:
v Receive the file into a user file.
v Delete the file.
v Browse the file (not valid for save files).
v Submit files (submit the job).
Restrictions: (1) A user with security officer authority can display the network files
for any user. If you are not the security officer, you can display only those files that
were sent to you or to your group profile. (2) To perform any of the options from
this display, you must be authorized to the command corresponding to that option.
For example, you must be authorized to the Browse Physical File Member
(BRWPFM) command for the browse function, and the Submit Database Jobs
(SBMDBJOB) command for the submit job function.
Examples
The following command allows you to work with all network files for the user
running this command.
WRKNETF
If the command is issued as an interactive job, the list of files is displayed at the
requesting work station. If the command is issued as a batch job, the list of files is
printed with the job’s spooled output.
The following command allows you to work with the network files for USR1 and
prints the output with the job’s spooled output.
WRKNETF USER(USR1) OUTPUT(*PRINT)
This command can only be issued by USR1, a member of the USR1 group, or a
user with security officer rights.
The following command allows you to work with the network files for all users
and is written to the first member of a database file named NETFILES.
If the file exists in a library on the library list, the existing file is used; otherwise,
the file is created in library QGPL. If the file did not exist, or did not contain any
members, a member with the same name as the file is added to the file; otherwise,
the first member of the file is cleared and used. This command can be issued only
by a user with security officer rights.
The following command receives the network file SCRIPT, member $REPORT, into
a physical file named MYFILE in library MYLIB.
RCVNETF FROMFILE(SCRIPT) TOFILE(MYLIB/MYFILE) FROMMBR($REPORT)
If you want to use a prompt display with this command, type PRTAFPDTA and
press F4 (Prompt).
Notes:
1. The PRTAFPDTA command prints AFPDS data. Any padding between the
AFPDS structured fields must be hex 40. The padding cannot be hex 00.
2. When using the PRTAFPDTA command, do not override the DEVTYPE
parameter on the QSYSPRT printer file.
3. When using the PRTAFPDTA command, the form definition usually identifies
the drawer to print from. An exception is when an Override Printer File
(OVRPRTF) command has been issued with a different drawer value. In this
case, the drawer value is taken from the override command.
Examples
The following command prints the first member in file MYFILE starting with page
2 and ending on page 6.
PRTAFPDTA FILE(MYLIB/MYFILE) STRPAGE(2) ENDPAGE(6)
The following command prints the member $REPORT in file MYFILE using a form
definition of F10101 and all available exception handling.
PRTAFPDTA FILE(MYLIB/MYFILE) MBR($REPORT) FORMDF(F10101) FIDELITY(*CONTENT)
IPDS pass-through support is available for any IPDS printer that provides resident
fonts. IPDS pass-through support is not available for the following IBM IPDS
printers: 3820, 3825, 3827, 3828, 3829, 3831, 3835, 3900-001 and any printer attached
using the DPF function provided by Print Services Facility for OS/2. These printers
do not provide resident fonts.
Chapter 10. Working with print services facility (PSF) configuration objects 247
– When specifying EDGESTITCH or CORNERSTPL finishing operations in the
printer file.
If IPDS pass-through is specified in the PSF configuration object and the job is
not eligible for IPDS pass-through, a diagnostic message is sent and the print file
is transformed to AFPDS and then back to IPDS.
v Not all printers supported by PSF for OS/400 can use IPDS pass-through. This is
because the resident fonts referenced in the data stream must be mapped to the
host fonts which are downloaded to the printer. The following printers can not
support IPDS pass-through when AFP(*YES) is specified: 3820, 3825, 3827, 3828,
3829, 3831, 3835, 3900-001 and any printer attached using the DPF function
provided by Print Services Facility for OS/2.
When a printer writer is started to a printer configured with AFP(*YES) that
does not support IPDS pass-through and IPDSPASTHR(*YES) is specified, a
diagnostic message is sent stating that IPDS pass-through is not supported. The
printer file is transformed to AFPDS and then back to IPDS.
Note: On this element, the only valid value for IPDS pass-through is
*PSFCFG.
Printer file: The following printer file parameters can be used to enable
IPDSPASTHR support:
IPDSPASTHR
IPDS Pass-through. A new parameter for V4R3 that allows you to specify
IPDSPASTHR on a file-by-file basis.
*DEVD
This is the default value. When specified, PSF/400 will first check for
IPDSPASTHR in USRDFNDTA. PSF/400 will then check for a value for
IPDSPASTHR in the PSF configuration object that is specified in the
printer device description, if one is specified. If there is no object that
is specified in the printer device description, IPDS pass-through is
ignored.
*NO No IPDS pass-through. This value takes precedence over a value that is
specified for IPDSPASTHR in a PSF configuration object.
*YES Specifying *YES for a printer file enables IPDS pass-through for the
spooled file. This value takes precedence over the value that is
specified for USRDFNDTA in a printer file.
USRDFNDTA
User defined data. These values were available prior to V4R3, allowing you to
specify IPDSPASTHR on a file-by-file basis. However, now they are used by
PSF/400 for migration purposes, and only if you specify *DEVD for the new
IPDSPASTHR parameter. These values take precedence over a value that is
specified for IPDSPASTHR in a PSF configuration object.
IPDSPASTHR(*NO)
No IPDS pass-through is done. Note that this is the same as not specifying
IPDSPASTHR in the USRDFNDTA parameter.
IPDSPASTHR(*YES)
IPDS pass-through is done for the spooled file if it is eligible for IPDS
pass-through.
Chapter 10. Working with print services facility (PSF) configuration objects 249
| IPDS to PDF transform
| This topic provides information about IPDS to PDF transform support. The IPDS to
| PDF transform support allows the creation of PDF files from AFP output files. You
| can use the PDF files in electronic mail applications, internet-based softcopy
| repositories, or for printing to PDF printers. The PSF transform interface supports
| an IPDS to PDF transform program if it emulates a TCP/IP-connected IPDS 4028,
| 3812, or Infoprint 40 printer device.
| PSF can mail the PDF files electronically by specifying the PDFGEN *MAIL
| parameter value (see “CRTPSFCFG parameters” on page 251). After the PDF file
| creation, PSF/400 retrieves a mail tag from the USRDFNDTA or the STRPAGGRP
| DDS keyword. You can use Using CRTPSFCFG PDFMAPPGM to specify a user
| exit program to map the mail tag into one or more email addresses and optional
| message text. If you do not specify an exit program, you must provide a valid
| email address in the USRDFNDTA parameter of the printer file or in the
| STRPAGGRP DDS keyword. PSF/400 then electronically mails the output by using
| the SNDDST command.
| You can handle the distribution function manually by routing the PDF output to a
| directory by using CRTPSFCFG PDFGEN and PDFDIR. You can route the PDF
| output to a PDF printer by using the CRTPSFCFG PDFGEN *SPLF paramater
| value with the PDFOUTQ paramater, .
| To subdivide an output file into multiple PDF files, you can use the CRTPSFCFG
| PDFMULT keyword with the DDS keywords STRPAGGRP and ENDPAGGRP. PSF
| can mail each to a different address. For example, you can subdivide a customer
| statement run on customer statement boundaries, by using the DDS STRPAGGRP
| and ENDPAGGRP keywords. . The STRPAGGRP for each customer statement can
| specify a mail tag. The mail tag can be, for example, a customer number, that a
| user exit program can convert to an email address. For each customer statement,
| the user exit program can instruct PSF either to mail, or not mail, the output to one
| or more addresses.
| An IPDS to PDF transform that can be used with PSF/400, is provided in the
| Infoprint Server for AS/400 product. The transform converts IPDS controls and
| data into PDF files. The files include with text, graphics, and image data. The
| transform also stores the mail tag from USRDFNDTA or STRPAGGRP in a
| comment statement in the PDF output. For detailed information on the IPDS to
| PDF transform (including the user exit), see the Infoprint Server for AS/400 User’s
| Guide (Sxxx-xxxx).
| The 80 bytes of text can contain a mail address or a tag that is converted by the
| mail exit routine into a mail address and optional message. The MAILSENDER
| parameter is 10-bytes long and specifies the name of the user profile that is
| sending the file. This parameter overrides CRTPSFCFG PDFSENDER.
| CRTDEVPRT parameters
| You should specify the following CRTDEVPRT parameter values when configuring
| a TCP/IP attached printer that will convert IPDS to PDF:
| v Device description: printer-name
| v Device class: *LAN
| v Device type: *IPDS
| v Device model: 0
| v LAN attachment: *IP
| v Advance function printing: *YES
| v Port number: xxxx (unique number for each printer)
| v Font: printer font
| v Remote location: 127.0.0.1
| v User defined object: PSF configuration object
| You can have multiple IPDS to PDF printers active, but you must configure each
| printer with a different port.
| CRTPSFCFG parameters
| You should specify the following CRTPSFCFG parameter values when configuring
| a TCP/IP attached printer that will convert IPDS to PDF:
| PDFGEN: Specifies whether the user would like the spooled file converted to
| PDF via the IPDS to PDF transform. It also specifies what to do with the associated
| PDF output. This parameter is only valid for printer devices that are configured as
| AFP(*YES).
| *NONE
| Specifies that a spooled file will not generate a PDF.
| *SPLF Specifies that the PDF output goes to the output queue identified in
| parameter PDFOUTQ. You can direct the output to a PDF printer.
| *STMF
| Specifies that the PDF output goes into a stream file in the directory
| specified in the PDFDIR parameter.
| *MAIL
| Specifies that the PDF output gets mailed electronically. Once mailed, the
| output gets erased.
| PDFDEVTYPE: Specifies the type of device that the IPDS to PDF transform
| virtual printer device should emulate.
| *IP40240
| Specifies that the virtual printer device should emulate an Infoprint 40
| printer device configured at 240 pels per inch resolution
Chapter 10. Working with print services facility (PSF) configuration objects 251
| *IP40300:
| Specifies that the virtual printer device should emulate an Infoprint 40
| printer device configured at 300 pels per inch resolution
| *P4028:
| Specifies that the virtual printer device should emulate a 4028 printer
| device
| *P3812
| Specifies that the virtual printer device should emulate a 3812 printer
| device.
| PDFPPRDWR1 (drawer 1), PDFPPRDWR2 (drawer 2): Specifies the paper size to
| use, for either drawer 1 or drawer 2, during the IPDS to PDF transfrom process.
| *LETTER
| Specifies to use the dimensions of letter paper
| *LEGAL
| Specifies to use the dimensions of legal paper.
| *STATEMENT:
| Specifies to use the dimensions of statement paper.
| *EXECUTIVE
| Specifies to use the dimensions of executive paper.
| *LEDGER
| Specifies to use the dimensions of ledger paper.
| *A5 Specifies to use the dimensions of A5 paper.
| *A4: Specifies to use the dimensions of A4 paper
| *A3 Specifies to use the dimensions of A3 paper.
| *B5 Specifies to use the dimensions of B5 paper.
| *B4 Specifies to use the dimensions of B4 paper.
| PDFMULT: Specifies whether to split the PDF output into multiple files by using
| the DDS keyword STRPAGGRP boundaries.
| *NO Specifies that the system create one PDF file.
| *YES Specifies the creation of multiple PDF files, when applicable.
| Note: When you specify PDFMULT, the transform will discard separator
| pages.
| PDFDTAQ: Specifies the name and library of the data queue where PSF will log
| the IPDS to PDF transformation completion notifications. Each time a spooled file
| is converted to PDF and stored in the Integrated File System or Document Library
| System, an entry is sent to the data queue. Using the Receive Data Queue API
| (QRCVDTAQ), a user program can determine when a spooled file has been
| converted to PDF. It is the user’s responsibility to manage the data queue. See the
| manual System API Programming for more information about data queues and the
| QRCVDTAQ API.
| Note: This parameter does not support keyed data queues. If you specify a keyed
| data queue for this parameter, a run-time error will occur. Because a data
| queue does not have to exist at the time this command is issued, the error
| will not be detected.
| The spooled file owner is responsible for any electronic mail cleanup. The spooled
| file owner must clean up the outgoing distribution status. The user profile
| associated with the message queue will receive failure message (CPI9045).
| PDFMAPPGM: Specifies the qualified name of a user exit program. The user exit
| program resolves the mail tag found in USRDFNDTA or STRPAGGRP. It returns
| one or more mail addresses to use for the electronic mailing of the PDF output.
| The mail tag can be an actual, or real, electronic mail address that will simply be
| returned from the mapping program. The mapping program can also return
| message text that is sent with the PDF file. This parameter is only valid when
| PDFGEN has a value of *MAIL.
| *NONE
| Specifies that you did not specify a user program.. When this occurs,
| PSF/400 will assume that the mail tag is a valid mail address and will
| attempt to use it for electronic mailing purposes.
| library-name/PDF-mapping-program-name
| Specifies the library-qualified name of the user program to use for
| mapping mail tags.
| PDFOUTQ
| Specifies the qualified name of an output queue to use when spooling PDF output.
| This parameter is only valid when the PDFGEN parameter has a value of *SPLF.
| The error does not get flagged because an output queue does not have to exist at
| the time the command is issued. Existence and authority errors get detected at
| run-time.
| library-name/PDF-output-queue:
| Specifies the library-qualified name of the output queue to use for spooling
| the PDF output from the IPDS to PDF transform.
| PDFDIR
| Specifies the directory in which to store the PDF file. If you plan to use the PDF
| file with the Send Distribution (SNDDST) command, store the PDF file in the
| /QDLS file system. The parameter is valid only when the PDFGEN parameter has
| a value of *STMF. The user, or the installation, must create the directory. The
Chapter 10. Working with print services facility (PSF) configuration objects 253
| spooled-file owner should own the subdirectories and the files that are created by
| the PDF transform. The subdirectories and files created by the PDF transform must
| have a public authority of *EXCLUDE
| PDF-directory-name
| Specifies the directory in which to store the PDF file.
| If the a QDLS directory is specified, the PDF Transform will store the PDF file as
| follows: /PDF-directory-name/job-name/job-number/job-user-name/file-number/
| spooled-file-name/date/sequence-number.
| Where
| v Job-name = job name assigned to the spooled file. There is an 8–character
| segment name limitation on QDLS path names. The name gets left-aligned, and
| the low-order two characters get stored as a prefix on the following job number
| segment name.
| v Job-number = job number assigned to the spooled file, prefixed by the low-order
| two characters of the job name.
| v Job-user-name = job user name assigned to the spooled file. There is an
| 8–character segment name limitation on QDLS path names. The name gets
| left-aligned, and the low-order two characters get stored as a prefix on the
| following file number segment name.
| v File-number = file number assigned to the spooled file. The file has a prefix
| according to the low-order two characters of the job user name.
| v Date = mmddyyyy
| v Spooled-file-name = 1st 8 characters of spooled file name.
| v Sequence-number = 6 character sequence number. When you do not specify
| PDFMULT, set the sequence number to 000001. If you specify PDFMULT, the
| sequence number gets incremented to uniquely identify each PDF file generated
| for a job. A PDF file can be generated for each DDS STRPAGGRP/ENDPAGGRP
| in a job. When there are errors when converting a spool file, the sequence
| number of the 000001 file gets prefixed with an E.
| When using a root-file system directory, the PDF Transform will store the PDF file
| as follows: /PDF-directory-name/job-name/job-user-name/job-number_file-
| number_spooled-file-name_date_sequence-number
| v
| Where:
| v Job-name = 10 character job name.
| v Job-user-name = 10 character user name.
| v Job-number+file-number+spooled-file-name+ date+sequence-number = the 6
| character job number appended to the 6 character file number appended to the
| 10 character spooled-file-name appended to 8 character date (mmddyy)
| appended to a 6 character sequence number. An underscore separates the
| job-number, file-number, spooled file name, date, and sequence number.
|
Sharing print sessions and IPDS dialogs
Several parameters from the PSF configuration object allow you to configure
PSF/400 to share sessions with other PSFs or ASCII print drivers automatically.
After the RLSTMR expires, the IPDS dialog with the printer is released.
When the dialog is released, the printer may print non-IPDS files queued
at the printer.
If a spooled file becomes ready after the Release Timer has been activated
and not yet elapsed, use of the timer is stopped. When there are no more
spooled files to print and all pages of the last spooled file have been
printed, the timer is activated again using its full specified value,
PSF does not release the session when the dialog is released.
Chapter 10. Working with print services facility (PSF) configuration objects 255
PSF will start a dialog with the printer when the value specified with
RESTRTMR expires and there is a spooled file with a status of RDY.
This value is ignored if the printer does not support dialog sharing. PSF
does not release the session until the writer is ended.
When PSF is in between spooled files and has not released a dialog, PSF
queries the printer every 60 seconds to see if the printer has a non-IPDS
file to be printed.
Use this parameter when you are sharing IPDS and non-IPDS printing on a
printer which supports IPDS dialog management, such as the IBM 3130.
*PRTIMMED
Specifies that the Release Timer (RLSTMR) is activated as soon as the
printer has indicated that it has non-IPDS files to print. The IPDS dialog
with the printer is released when the RLSTMR has expired. If the timer
expires while PSF is sending a spooled file to the printer, PSF does not
release the dialog until the spooled file has been completely printed. PSF
will then release the dialog even when there are spooled files with a status
of RDY on the output queue in use by the writer.
PSF does not release the session when the dialog is released.
When the dialog is released, the printer may print non-IPDS files queued
at the printer.
PSF will start a dialog with the printer when the value specified with
RESTRTMR expires and there is a spooled file with a status of RDY.
When PSF is in between spooled files and has not released a dialog, PSF
queries the printer every 60 seconds to see if the printer has a non-IPDS
file to be printed.
Use this parameter when you are sharing IPDS and non-IPDS printing on a
printer which supports IPDS dialog management, such as the IBM 3130.
Note that if you are using a 3835, 3900, Infoprint 62, Infoprint 3000, or Infoprint
4000, do not set PRTRQSTMR in the printer device description to *NOMAX. If you
set the PRTRQSTMR to *NOMAX, an operator must perform a manual NPRO at
the printer. PSF will not release a session, or IPDS dialog, until printing is complete
for the last file that is sent to the printer.
ACTTMR: Specifies the length of time (in seconds) that PSF/400 waits for a
TCP/IP-attached printer to respond to an activation request. PSF uses this timer
only after a session has been opened with the printer.
No timers can influence the length of time that TCP/IP takes to wait for a
response to a session start request. But if you want PSF to retry session start
requests after a failure of the session start request failure is detected, you may use
PSF configuration object parameter RETRY to specify how many session start
request retries PSF should perform.
RESTRTMR: Specifies the amount of time to wait before the printer writer
attempts to reestablish either a session or dialog. For example, if this value is set to
10, PSF/400 activates the timer as soon as a session or dialog is released. After 10
This timer is ignored if PSF/400 has not been configured to release either a session
or dialog. Use the ACTRLSTMR and RLSTMR parameters to configure PSF/400 to
release either a session or dialog.
RETRY: Specifies the number of additional attempts PSF will make to establish an
APPC or TCP/IP session. When PSF/400 is sharing a PSF directly attached printer
with other PSFs, you may want to set the value to *NOMAX so that PSF/400 will
continue retrying to obtain a session. The default value for the RETRY parameter
has been changed from 2 to 15.
RETRYDLY: Specifies the number of seconds to wait between each retry attempt to
establish a session. This parameter is used only when PSF/400 is using an SNA
attachment. The default value for the RETRYDLY parameter has been changed
from 0 to 90.
Chapter 10. Working with print services facility (PSF) configuration objects 257
attempt to resume printing when a session has been unexpectedly ended by a
printer or other network device, such as a router. The achnowledgement
request responses from the printer contain information that indicates the pages
sent to the printer. AUTOSSNRCY(*YES) also lets you power your printer off
and on without ending PSF. If you plan to use a value of *YES, you should
consider the following values set for other parameters:
v For a TCP/IP connection, use RETRY or ACKFRQ in the PSF configuration
object.
v For an APPC connection, use RETRY, RETRYDLY or ACKFRQ in the PSF
configuration object.
Note: When automatic session recovery takes place, pages may be printed
when printing resumes.
ACKFRQ
Acknowledgment frequency. It specifies the frequency, in pages, with which
PSF/400 sends IPDS acknowledgment requests to a printer. The
acknowledgment request responses from the printer that contains information
as to the status of pages that is sent to the printer. You may wish to consider
adjusting this value if:
v you are concerned about losing a connection to a printer while spooled files
are being printed.
v you are concerned about duplicate pages being printed.
The following are valid values for the device resource library list:
*DFT Specifies that the following libraries (if present on system) will be used in
searching for AFP resources.
v QFNTCPL
v QFNT01 - QFNT19
v QFNT61 - QFNT69
device-resource-library-names
This is a list of up to 30 library names that will be used to search for AFP
resources.
The value in using the user resource library and device resource library lists is
two-fold. It enhances usability since you can now specify one set of libraries for a
240 pel printer and another set for a 300 pel printer. You can also make sure that
the libraries that contain the resources needed by this printer job are actually in the
library list that PSF will use. It also improves performance since you can just fill in
the libraries that need to be searched and leave out the ones that do not need to be
searched.
Chapter 10. Working with print services facility (PSF) configuration objects 259
260 OS/400 Printer Device Programming V5R1
Part 4. Other printing functions available on the AS/400
system
Chapter 11. Working with ASCII Lexlink protocol Creating printer device descriptions using a
LAN-attached printers . . . . . . . . . . 263 command . . . . . . . . . . . . . 290
Benefits of using ASCII LAN-attached printers . . 263 Automatically creating printer device
How ASCII LAN-attached printing works . . . . 264 descriptions . . . . . . . . . . . . . 290
Restrictions when using ASCII LAN-attached Changing an existing printer device description 290
printers . . . . . . . . . . . . . . 266 Displaying the printer device description . . . 291
Line, controller, and device description parameters Using the host print transform function with an
that support ASCII LAN-attached printers. . . . 267 emulator . . . . . . . . . . . . . . . 291
Line description parameters that support ASCII Using the host print transform function with the
LAN-attached printers . . . . . . . . . 267 IBM Client Access Express work station function 291
Controller and device description parameters Configuration recommendations . . . . . 292
that support ASCII LAN-attached printers. . . 267 Maintaining printer customization . . . . 292
Network device description parameters that Using the host print transform function with the
support ASCII LAN-attached printers . . . . 268 3486/3487/3488 InfoWindow display . . . . 293
Printer device description parameters that Configuration recommendations . . . . . 293
support ASCII LAN-attached printers . . . . 268 Maintaining printer customization . . . . 293
Configuring and starting ASCII LAN-attached Using the host print transform function with the
printers . . . . . . . . . . . . . . 271 3477 InfoWindow display . . . . . . . . 294
Configuration recommendations . . . . . 294
Chapter 12. Working with ASCII TCP/IP Understanding the 3477 power-on
network-attached printers . . . . . . . . 273 initialization sequence . . . . . . . . 294
HP printer job language (PJL) . . . . . . . . 273 Maintaining printer customization . . . . 295
| Simple network management protocol (SNMP) . . 273 Using the host print transform function with the
Benefits of using ASCII TCP/IP network-attached 3197 display station . . . . . . . . . . 295
printers . . . . . . . . . . . . . . . 273 Configuration recommendations . . . . . 296
How ASCII TCP/IP network-attached printing Using the host print transform function with the
works . . . . . . . . . . . . . . . . 274 ASCII work station controller . . . . . . . 296
Restrictions when using ASCII TCP/IP Configuration recommendations . . . . . 296
network-attached printers . . . . . . . . 276 Maintaining printer customization . . . . 297
| Common restrictions . . . . . . . . . 276 Using the host print transform function with
| PJL restrictions . . . . . . . . . . . 277 OS/2 5250 work station feature . . . . . . 297
| SNMP restrictions . . . . . . . . . . 277 Configuration recommendations . . . . . 298
Printer device description parameters that support Maintaining printer customization . . . . 298
ASCII TCP/IP network-attached printers . . . . 277 Using the host print transform function with
Configuring and starting ASCII TCP/IP OS/2 5250 emulation . . . . . . . . . . 299
network-attached printers . . . . . . . . . 280 Configuration recommendations . . . . . 299
Using the host print transform function with the
Chapter 13. Working with the host print RUMBA/400 program . . . . . . . . . 299
transform function . . . . . . . . . . . 283 Configuration recommendations . . . . . 300
Why use the host print transform function? . . . 283 Using the host print transform function with the
How the host print transform function works . . 284 IBM enhanced 5250 or the IBM S36/38 work
Using AFP-to-ASCII transform function . . . . 285 station emulation program . . . . . . . . 300
Using bar codes . . . . . . . . . . . 286 Configuration recommendations . . . . . 300
Limitations of AFP-to-ASCII transform function 286 Maintaining printer customization . . . . 300
Using the host print transform in raster mode . . 287 Using the host print transform function with the
Why use raster mode? . . . . . . . . . 287 IBM remote 5250 emulation program . . . . 301
Enabling raster mode. . . . . . . . . . 287 Configuration recommendations . . . . . 301
Limitations of raster mode . . . . . . . . 287 Maintaining printer customization . . . . 301
Enabling the host print transform function using
printer device description parameters . . . . . 288 Chapter 14. Working with the image print
Parameters supporting the host print transform transform function . . . . . . . . . . . 303
function . . . . . . . . . . . . . . 288 What is the image print transform function? . . . 303
Working with printer device descriptions . . . . 289 Why use the image print transform function? . . 303
Printing with image print transform function . . . 304
Current support requires that ASCII printers be attached to the IBM 4033 LAN
adapter device or MarkNet XLe device, or the printer have a MarkNet or MarkNet
XL Internal Network Adapter (INA) card resident in the printer. (The IBM 4039
Printer is an example of a printer with an INA card.)
OS/400 provides all the support for ASCII printers attached to the LAN. Once the
physical environment is created, the ASCII LAN-attached printers operate similar
to any other ASCII printer attached to an AS/400 system.
Note: The RS/6000 and PS/2 must have the Network Print Adapter Utility
installed. The utility is offered by Lexmark and IBM. The utility allows
PCs and RS/6000s to use the 4033 LAN adapter device to attach to the
LAN. An IBM 4039 printer with the INA card can also attach to the LAN
v Eliminating emulation requirements
Before the ASCII LAN-attached printer function became available, ASCII printers
used with AS/400 systems were predominantly used through an emulation
program and attached to a physical device such as a PC.
In general, you can access LAN printers attached to the devices through bridges
instead of routers. For example the IBM 4033, the MarkNet XLe, the MarkNet and
the MarkNet XL support the IBM 8209 LAN bridge.
AS/400
System
Local 4029
Area 4033
Printer
Network
PS/2
RS/6000 4039 Printer
AS/400 with INA Card
RV3H006-0
User Process
Writer Process
Printer Device
Printer Writer Job Description
-SWTLINLST
Local
Area
Network 4033
(LAN)
RV3H051-0
Once the physical environment is in place and the correct configuration for the
ASCII printer complete, printing operations can begin. As with other printers, the
Start Printer Writer (STRPRTWTR) command is used to begin printing operations.
Note: The printer device description must be varied on before the writer can be
started.
When the STRPRTWTR command is run, the printer’s device description switched
line list (SWTLINLST) parameter is used to identify available communications
lines. These communications lines must be either Ethernet or Token Ring. The line
descriptions must already exist and they must be varied on to be eligible for LAN
printing. The source service access point (SSAP) parameter value of the line
description must contain an SSAP value of 12 and the SSAP type value must be
*NONSNA.
Chapter 11. Working with ASCII Lexlink protocol LAN-attached printers 265
Notes:
1. On existing communications lines, the SSAP value of 12 and the SSAP Type
value of *NONSNA must be added to the SSAP list before using ASCII-LAN
attached printers.
2. If the printer writer ends with message CPI400C and a reason code of 1, the
line being used does not have SSAP 12 configured.
In turn, the controller description has a device (DEV) parameter. If the DEV
parameter has a device specified, and if the device is available, it is attached to the
controller description.
If the network controller and network device are not available, they are
automatically created when the STRPRTWTR command is run. The network
controller and network device description objects are not deleted when the writer
session is ended. Each time the STRPRTWTR command is run, and the network
controller is not available, another network controller and network device is
created.
Note: The LAN adapter device is locked when the first spooled file begins to
print. The inactivity timer parameter in the printer device description is
used to determine when to release the adapter. Releasing the adapter
enables other users on the LAN to use the printer.
Due to a hardware restriction on the 4033 LAN adapter device, it is suggested that
*ATTACH or *NOMAX be used as the value for the inactivity parameter. Thus, on
a 4033, the lock on the adapter device is not given up shortly after a spooled file
prints but rather when the writer is ended.
Not all of the parameters that make up the line description are discussed here.
Only the parameters required to support ASCII LAN-attached printers are shown.
SSAP
Source service access point
For the IBM 4033, MarkNet and MarkNet XL, specify *SYSGEN, or 12. For the
MarkNet XLe, specify 12, 16 and 1A.
Note: If the required SSAP values are not added to existing communications
lines used for ASCII LAN-attached printers, message CPI400C is sent to
the message queue with a reason code of 1.
SSAP type
Source service access point (TYPE)
This value must be *NONSNA. This means SNA communications cannot be
used.
Note: If the line description already exists you can use the Change Line
Description (Token-Ring) (CHGLINTRN) or Change Line Description
(Ethernet) (CHGLINETH) commands to update the line descriptions
with the required SSAP values.
NETCTL
Network controller
The name of the network controller this line attaches to.
If they don’t exist, they are created automatically when the STRPRTWTR command
is run for a ASCII printer attached to the LAN.
Network controllers must be used. They must exist or you can create them using
the Create Controller Network (CRTCTLNET) command.
Not all of the parameters that make up the controller description are discussed
here. Only the parameters required to support ASCII LAN-attached printers are
shown.
Chapter 11. Working with ASCII Lexlink protocol LAN-attached printers 267
DEV
Device name
The name of the device this controller attaches to.
ASCII LAN-attached printers are enabled by selecting certain values for parameters
in the printer device description. Not all of the parameters that make up the
printer device description are discussed here. Only the parameters required to
support ASCII LAN-attached printers are shown.
The following parameters, on the printer device description, are used to configure
ASCII LAN-attached printers.
DEVCLS
Device class
Specifies the device class for the printer. This value must be *LAN and it
indicates the ASCII printer is connected to a local area network (LAN).
TYPE
Device type
Specifies the type of printer this device configuration represents. For example,
you can specify 3812 as IBM 3812 emulation is used.
MODEL
Device model.
Specifies the model of the device. For example, you can specify 1 as IBM 3812
Model 1 emulation is used.
SWTLINLST
Switched line list
Specifies the name of the switched communications lines to which the printer
is associated when DEVCLS(*LAN) is specified. A maximum of 8 switched
communications lines can be specified.
ADPTADR
LAN remote adapter address (printer address)
Note: The adapter address for the 4033 LAN-adapter is printed on the box it is
packaged in.
The address for a 4039 printer with an INA card can be found using the
printer’s operator panel. The address for the MarkNet XLe is printed on the
back side of the device.
It is possible for the adapter address to be changed using the Network Print
Utility. If the adapter address is changed, the new address must be the value
specified for the ADPTADR parameter in the printer’s device description.
LANATTACH
LAN attachment.
Specifies the attachment of the printer when DEVCLS(*LAN) is specified. This
value must be *LEXLINK.
ADPTTYPE
Adapter type
Specifies the type of LAN printer adapter to be used when DEVCLS(*LAN) is
specified.
*INTERNAL
The printer has an internal LAN adapter. For example, a printer with
an INA card installed.
*EXTERNAL
The printer has an external LAN adapter. For example, a printer is
connected to the IBM 4033 LAN adapter or the MarkNet XLe
ADPTCNNTYP
Adapter connection type
Specifies the type of ports supported by the external LAN printer adapter
when DEVCLS(*LAN) and ADPTTYPE(*EXTERNAL) are specified.
*PARALLEL
The printer is attached to the adapter using the parallel port.
*SERIAL
The serial port on the adapter is used to communicate with the
attached printer.
ATTACH
Physical attachment
For ASCII LAN-attached printers, specifies the physical attachment of the LAN
adapter.
Chapter 11. Working with ASCII Lexlink protocol LAN-attached printers 269
*WIRE4
Specifies EIA-232 4-wire attachment.
PORT
Port
For ASCII LAN-attached devices, if there is more than one serial or parallel
port available, this parameter specifies which port is used. Possible values are
0 through 17.
For the MarkNet XLe the following values are used:
Value Port
0 Serial
1 Parallel 1
2 Parallel 2
Note: This parameter is not used if the printer is attached to a 4033 LAN
adapter.
INACTTMR
Inactivity timer
Specifies an inactivity timer (time-out) value. For ASCII LAN-attached printers,
this value indicates the amount of time the printer writer keeps a lock on the
device before releasing it.
Note: This parameter is not used if the printer is attached to a 4033 LAN
adapter.
Chapter 11. Working with ASCII Lexlink protocol LAN-attached printers 271
v LAN remote adapter address - comes with the LAN adapter
Note: The adapter address for the 4033 LAN-adapter is printed on the box it is
packaged in.
The address for a 4039 printer with an INA card can be found using the
printer’s operator panel.
More...
F3=Exit F4=Prompt F5=Refresh F10=Additional parameters F12=Cancel
F13=How to use this display F24=More keys
To start PRT4039 type STRPRTWTR and prompt (F4). The following screen
appears. Type PRT4039 for the Printer parameter value and type the name of the
output queue from which you want to print spooled output files.
Spooled files from MYOUTQ will print on the printer named PRT4039.
| For network printing, the AS/400 system supports both HP Printer Job Language
| (PJL) and Simple Network Management Protocol (SNMP).
OS/400 provides all the support for ASCII printers that are attached to the TCP/IP
network. Once the physical environment is created, the ASCII TCP/IP
network-attached printers operate similarly to any other ASCII printer that is
attached to an AS/400.
| Figure 6 on page 275 and 3 provide software views of how ASCII TCP/IP
| network-attached printers appear to the AS/400 system.
Once the OS/400 TCP/IP configuration for the ASCII printer is complete and the
physical environment is in place, the printing operations can begin. As with other
printers, you can use Start Printer Writer (STRPRTWTR) command to start printing
operations.
Note: You must vary on the printer device description before starting the printer
writer.
| PJL restrictions
| In addition to the common restrictions listed above, the following restrictions
| apply only to ASCII TCP/IP network-attached printers that use PJL:
| v They must be able to accept HP PJL commands on the same TCP/IP port on
| which the print data is received .
| Additional PJL requirements are listed in “HP printer job language (PJL)” on
| page 273 section.
| SNMP restrictions
| In addition to the common restrictions listed above, the following restrictions
| apply only to ASCII TCP/IP network-attached printers that use SNMP :
| v They must support the industry standard Host Resource Management
| Information Base (RFC 1514). It is highly recommended, but not required, that
| these printers support the Printer Management Information Base (RFC 1759).
| v If the printer is connected to a network adapter, the adapter must be compatible
| with the printer. The adapter must also support the Host Resource Management
| Information Base. Consult the manufacturer of the adapter to determine if it
| supports the printer. Some network adapters do not support all printers.
| v If the printer is attached to an external network adapter that has more than one
| port, the printer should be connected to the first parallel port. There should be
| no other SNMP capable devices attached to the adapter.
| v You must set the printer, and any adapter that is connected to it, to a
| community name of public. Public is usually the default community setting from
| the factory. Community names are a means of access control for SNMP devices.
| Read-only access to the public community is sufficient.
|
Printer device description parameters that support ASCII TCP/IP
network-attached printers
To configure an ASCII printer device, the Create Device Description (Printer)
(CRTDEVPRT) command must be used.
You can enable ASCII TCP/IP network-attached printers by selecting certain values
for parameters in the printer device description. Not all of the parameters that
make up the printer device description are discussed here. Only the parameters
required to support ASCII TCP/IP network-attached printers are shown.
To configure an IBM 4312 printer, type CRTDEVPRT and press F4=Prompt. The
following display appears.
To start an IBM 4312 printer, type STRPRTWTR and press F4=Prompt. The
following display appears. Type PRT4312 for the Printer parameter value and type
the name of the output queue from which you want to print spooled output files.
Note: You cannot perform functions that your printer does not support. For
example, you cannot print in 180 degree orientation when your printer
only supports 0 and 90 degree orientations.
v Support for many different ASCII printers
Without host print transform function, each emulator supports a limited number
of ASCII printers. With the host print transform function, most IBM printers and
a large number of other printers are supported.
v Customized printer support
Workstation customizing objects that come with the host print transform
function can be updated by the user to change or add characteristics to a
particular printer. Also, if the host print transform function does not have a
workstation customizing object for a printer you want to use, you can create
your own.
v Support for the image object content architecture (IOCA) imbedded in an SCS
data stream. Image output can be printed on PCL printers (Hewlet-Packard
LaserJet**) or PPDS laser printers (IBM 4019 or 4029).
For the AFP-to-ASCII data stream conversion, there are additional advantages such
as support for AFP font, text, image and bar code commands.
Note: The host print transform function works with jobs that are sent directly to
the printer (SPOOL(*NO) on the printer file).
The host print transform function generates an ASCII printer data stream for a
number of IBM and non-IBM printers. To generate the different ASCII data
streams, the host print transform function uses AS/400 system objects that describe
characteristics of a particular ASCII printer. Using the SCS ASCII Transparency
(ATRN) command, passes the ASCII data stream through the existing emulator.
The existing emulator deletes the ASCII Transparency commands and passes the
ASCII data stream that is generated by the host print transform function to the
personal printer. CA/400 PC5250 and IBM Personal Communications do not
support partial ASCII transparency printing.
Note: The emulator must support the SCS ASCII Transparency (ATRN) command
to use it with the host print transform function. All the emulators described
in this chapter support the ATRN command.
To enable the host print transform function, you work with the printer device
description.
Chapter 13. Working with the host print transform function 285
v IBM pages printers
IBM’s Advanced Function Print (AFP) data stream defines an architecture for
presenting bar codes. Bar codes can be printed by using printer files and the
BARCODE DDS keyword. They can also be printed by using the Advanced
Function Printing Utilities/400. Bar code support works best on laser printers. Dot
matrix printers, and some ink jet printers do not support bar codes.
The AFP-to-ASCII transform supports the following industry standard bar code
types:
v Code 39, AIM USS-39
v MSI
v UPC/CGPC Version A
v UPC/CGPC Version E
v UPC Two-digit Supplemental
v UPC Five-digit Supplemental
v EAN-8
v EAN-13
v Industrial 2-of-5
v Matrix 2-of-5
v Interleaved 2-of-5
v Interleaved 2-of-5, AIM USS-1 2/5
v Codabar 2-of-7, AIM USS-Codabar
v Code 128, AIM USS-128
v EAN Two-digit Supplemental
v EAN Five-digit Supplemental
v POSTNET
v Japan Postal
v Royal Mail
| v Australian Postal 4-state
| v Dutch Postal (KIX)
Raster mode does not support all printer data streams. Refer to the Workstation
Customization Programming manual for detailed information about raster mode
support.
Chapter 13. Working with the host print transform function 287
v Raster mode does not support hardware justification of text.
v For SCS output that contains double byte characters (DBCS), you can specify
only one double byte coded font. Setting the QIGCCDEFNT system value selects
this font..
Note: The paper size value is used by the host print transform function to
support the computer output reduction (COR) function.
*MFRTYPMDL
This is the default. The AS/400 system substitutes the value that is
most common for your printer. It substitutes *LETTER for all page
printers, *CONT80 for narrow-carriage continuous-feed printers, and
*CONT132 for wide-carriage continuous-feed printers. If the printer
uses a paper size other than the default size, you should explicitly
specify that size to completely support the COR function.
The following additional parameter can be used by the host print transform
function when a user-defined workstation customizing object is necessary. A
user-defined customizing object for the printer is usually not needed due to the
extended support provided by the host print transform function.
WSCST
Workstation customizing object and library.
If the host print transform function is enabled and an object name is specified
on the WSCST parameter, that object must be compatible with the host print
transform function.
*NONE
The default is *NONE.
Chapter 13. Working with the host print transform function 289
Notes:
1. Automatic configuration of devices (printers, in this case) attached to the ASCII
Work Station Controller is not supported. The CRTDEVPRT command must be
used to create the printer device description.
2. The work station function of Client Access Express creates or changes its
printer device descriptions based on the printer’s session configuration. For this
emulator, the host print transform function should be enabled by changing the
session configuration on the personal computer and not the device description
in the AS/400 system.
In this case, you should create your printer device descriptions by typing the
Create Device Description (Printer) (CRTDEVPRT) command and pressing F4
(Prompt). You will need to enter a value for most of the parameters. See “Enabling
the host print transform function using printer device description parameters” on
page 288 for information on the parameters and values used by the host print
transform function.
To enable the host print transform function after automatic configuration, type the
Change Device Description (Printer) (CHGDEVPRT) command and press F4
(Prompt).
Note: Before you change a printer device description, it is recommended that you:
v End the printer writer (ENDWTR command)
v Vary off the printer device (WRKCFGSTS command)
See “Enabling the host print transform function using printer device description
parameters” on page 288 for information on the parameters and values used by the
host print transform function.
Note: The work station function of Client Access Express can automatically
configure printers with the host print transform function enabled.
To enable the host print transform function, type the Change Device Description
(Printer) (CHGDEVPRT) command and press F4 (Prompt).
Note: Before you change a printer device description, it is recommended that you:
See “Enabling the host print transform function using printer device description
parameters” on page 288 for information on the parameters and values used by the
host print transform function.
Note: The work station function of Client Access Express can automatically
configure printers with the host print transform function enabled.
Using the host print transform function with the IBM Client
Access Express work station function
The Client Access Express work station function program provides the following
data link control attachment of IBM personal computer systems for work station
function and printer emulation:
v Twinaxial
Chapter 13. Working with the host print transform function 291
v Token-ring
v Asynchronous
v Synchronous
The Client Access Express work station function provides a DOS 5250 emulator for
all of the supported Client Access Express Support connection methods. Up to five
work station sessions, in any combination of display or printer sessions, can be
configured. The work station function provides 3812 SCS printer emulation. The
personal printer can be attached to the personal computer through either the
parallel or serial interface.
Configuration recommendations
To use the host print transform function, change the printer session profile on the
personal computer using the options on the CFGWSF configuration program.
CFGWSF is the configuration program for the Client Access Express work station
function. The CFGWSF program provides options for specifying:
Printer manufacturer, type, and model
Paper sizes
Envelope sizes
Symbols code page support
Workstation customizing object.
When the printer session is started, these parameters are passed from the personal
computer to the AS/400 system. The printer device description is created or
changed to reflect the values passed from the CFGWSF program. Any changes
must be made by changing the printer session profile on the personal computer
instead of using the CHGDEVPRT command.
The Client Access Express work station function uses the Printer Function Table
Setup (PFTSETUP) program to customize features on a printer. If you have used
PFTSETUP to customize a printer, use of the host print transform function
overrides this customization.
However, if you need to customize your printer while using the host print
transform function, you should:
1. Make a note of the printer features that you customized.
You can use the PFTSETUP program to locate the customized features.
2. Transfer those customized features to an object compatible with the host print
transform function.
This means changing some features on this object to match the features you
customized with the PFTSETUP program.
3. Use this object name as the value for the workstation customizing object
parameter in that printer’s session profile.
Configuration recommendations
Configure printers that are supported by the InfoWindow display as recommended
in the InfoWindow display’s configuration menus. Configure any printer that is not
included in the list of supported printers as a 4201/4202 printer.
When you leave the InfoWindow display’s configuration menu, the printer device
description is automatically created if both the following are true:
v The printer is powered on
v Automatic configuration is on
After the printer device description is created on the AS/400 system, enable the
host print transform function using the CHGDEVPRT command. The display’s
printer configuration is not used after the host print transform function is enabled.
The data stream generated for the printer is based on the MFRTYPMDL parameter
value specified in the printer device description on the AS/400 system.
Note: Do not change the display’s printer configuration after your device
description has been created on the AS/400 system. Doing so can cause the
AS/400 printer device description to be replaced. In this case, the host print
transform function is no longer enabled. The CHGDEVPRT command can be
used to enable the host print transform function again.
The 348x displays can use a workstation customizing object (located in the device
description of the display) to define the printer attached to it. Conversely, the host
print transform function uses a workstation customizing object located in the
device description of the printer. If you have customized some printer features in
the display’s workstation customizing object, use of the host print transform
function overrides the customization.
However, if you need to customize your printer while using the host print
transform function, you should:
1. Make sure the host print transform function is enabled.
The TRANSFORM parameter value for the printer device description must be
*YES.
2. Use a workstation customizing object that is compatible with the host print
transform function.
Customize the printer features in this object to match the customized features
that you used in the display’s workstation customizing object.
Chapter 13. Working with the host print transform function 293
3. Use the workstation customizing object name that is compatible with the host
print transform function as the value for the WSCST parameter in the printer
device description.
Remember: The location of the WSCST object name (in the printer device
description, not the display device description) is important when
using customization with the host print transform function.
Configuration recommendations
Configure printers that are supported by the InfoWindow display as recommended
in Appendix A of the IBM 3477 InfoWindow user’s guide Configure printers that are
not supported by the 3477 with the following values:
v Type A for Printer Character Set
v 5256 for Printer Emulation
When you leave the display’s configuration menu, the printer device description is
automatically created if both the following are true:
v The printer is powered on
v Automatic configuration is on
After the printer device description is created on the AS/400 system, enable the
host print transform function using the CHGDEVPRT command. The display’s
printer configuration is not used after the host print transform function is enabled.
The data stream generated for the printer is based on the MFRTYPMDL parameter
value specified in the printer device description on the AS/400 system.
Note: Do not change the display’s printer configuration after your device
description has been created on the AS/400 system. Doing so can cause the
AS/400 printer device description to be replaced. In this case, the host print
transform function is no longer enabled. The CHGDEVPRT command can be
used to enable the host print transform function again.
If your 3477 is a Model H, you can turn off the power-on initialization sequence by
doing the following:
The 3477 Model H is the only 3477 InfoWindow display that supports
customization. The 3477 Model H display can use a workstation customizing object
(located in the device description of the display) to define the printer attached to it.
Conversely, the host print transform function uses a workstation customizing
object located in the device description of the printer. If you have customized some
printer features in the display’s workstation object, use of the host print transform
function overrides the customization.
However, if you need to customize your printer while using the host print
transform function, you should:
1. Make sure the host print transform function is enabled.
The TRANSFORM parameter value for the printer device description must be
*YES.
2. Use a workstation customizing object that is compatible with the host print
transform function.
Customize the printer features in this object to match the customized features
that you used in the display’s workstation customizing object.
3. Use the workstation customizing object name that is compatible with the host
print transform function as the value for the WSCST parameter in the printer
device description.
Remember: The location of the WSCST object name (in the printer device
description, not the display device description) is important when
using customization with the host print transform function.
Using the host print transform function with the 3197 display
station
The 3197 display station is a twinaxial display station that attaches to the AS/400
system using a twinaxial controller or a remote workstation controller such as
5294, 5394, or 5494. The 3197 supports a single display, two displays, or one
display and one emulated printer. The 3197 provides 5256 or 4214 printer
emulation for many IBM personal printers.
Chapter 13. Working with the host print transform function 295
Configuration recommendations
Refer to the IBM 3197 Display Stations User’s Guide to set up your display for a
printer session. Select Display-Printer Mode with a Printer Device ID of 5256. Specify
850 as the Printer Character Set Selection.
When you leave the InfoWindow display’s configuration menu, the printer device
description is automatically created if both the following are true:
v The printer is powered on
v Automatic configuration is on
After the printer device description is created on the AS/400 system, enable the
host print transform function using the CHGDEVPRT command. The display’s
printer configuration is not used after the host print transform function is enabled.
The data stream generated for the printer is based on the MFRTYPMDL parameter
value specified in the printer device description on the AS/400 system.
Notes:
1. The 3197 sends a power-on initialization sequence to the attached printer every
time the printer or display is powered on. This initialization is designed for
IBM printers. If a printer is attached that does not support the IBM data stream,
some unrecognizable characters may be printed. After this initialization
sequence, the data stream generated is based on the MFRTYPMDL parameter in
the printer device description on the AS/400 system. No more unrecognizable
characters will be printed.
2. Do not change the display’s printer configuration after your device description
has been created on the AS/400 system. Doing so can cause the AS/400 printer
device description to be replaced. In this case, the host print transform function
is no longer enabled. The CHGDEVPRT command can be used to enable the
host print transform function again.
The order in which the 3197 display and its attached printer are powered on can
affect the AS/400 system’s ability to recognize the printer. This order is dependent
on the model of the 3197. Use the Work with Configuration Status (WRKCFGSTS)
command to check the status of a printer device. If the status of the printer is vary
on pending or if the printer is not automatically configured, reverse the order in
which the display and printer were powered on.
Using the host print transform function with the ASCII work
station controller
The ASCII Work Station Controller (AWSC) resides on the AS/400 system and
allows up to 18 ASCII displays or printers to attach to each controller. The AWSC
provides 3812, 5219, 5224, or 5256 SCS printer emulation for most IBM printers
that support an EIA-232 or EIA-422 serial interface.
Configuration recommendations
There is no automatic configuration capability for printers attached to the AWSC.
The Create Device Description (Printer) (CRTDEVPRT) command must be used to
create the configuration descriptions. For existing printers, use the Change Device
Description (Printer) (CHGDEVPRT) command.
Configure printers not supported by the AWSC with 4019 as the device type,
Model 1 as the model, and 3812 as the emulated printer. Many of the other
parameters depend on the attached printer (line speed, data bits, and so on). To
After the host print transform function is enabled, the device type and model
parameters in the device description have no effect on the data stream sent to the
printer. The data stream generated for the printer is based on the MFRTYPMDL
parameter in the AS/400 printer device description.
The ASCII work station controller can use a workstation customizing object in the
printer device description to define the printer’s characteristics. That workstation
customizing object can be customized to use special features of a printer that the
AWSC does not support.
If the host print transform function is enabled, the customizing object specified for
the AWSC printer device description must be removed or replaced. The
customizing objects created for the AWSC are not compatible with the host print
transform function.
However, if you need to customize your printer while using the host print
transform function, you should:
1. Make sure the host print transform function is enabled.
The TRANSFORM parameter value for the printer device description must be
*YES.
2. Use a workstation customizing object that is compatible with the host print
transform function.
Customize the printer features in this object to match the customized features
that you initially used in the workstation customizing object specified in the
AWSC printer device description.
3. Use the workstation customizing object name that is compatible with the host
print transform function as the new value for the WSCST parameter in the
printer device description.
Remember: The AWSC and the host print transform function both use the
workstation customizing object parameter in the printer device
description. That object must contain the customized features and
be compatible with the host print transform function.
Using the host print transform function with OS/2 5250 work
station feature
The OS/2 5250 Work Station Feature is part of OS/2 Extended Edition or Extended
Services Communications Manager. Communications Manager provides twinaxial,
IBM token-ring, X.25, asynchronous, and synchronous data link control attachment
of personal computers and PS/2 personal computer systems to the AS/400 system.
Chapter 13. Working with the host print transform function 297
5250 Work Station Feature is a 5250 emulator for all the connection types
supported by the Communications Manager. Five work station sessions in any
combination of display or printer sessions can be configured. The 5250 Work
Station Feature provides 5219, 5224, and 5256 printer emulation for personal
printers. The personal printer can be attached to the personal computer through
either the parallel or serial interface.
Configuration recommendations
OS/2 5250 Work Station Feature can support printers through a printer function
table (PFT). To use PFTs to create your printer device descriptions on the AS/400
system, follow these steps:
1. If you are working with a printer that has a PFT, you need to:
a. Select printer emulation type 5219, 5224, or 5256.
b. Select the PFT for the printer you are working with.
c. Go to step 3.
2. If you are working with a printer that does not have a PFT, you need to:
a. Copy the DEFAULT.PFT file from the QIWSFLR or QIWSFL2 folder on the
AS/400 system into your personal computer’s CMLIB directory. Name the
file PFTHPT.
b. Configure the printer session on your personal computer with 5219 printer
emulation and use the PFT named PFTHPT.
c. Go to step 3.
3. Start your printer session on the personal computer. This creates a new device
description on the AS/400 system.
4. Use the CHGDEVPRT command to enable the host print transform function.
See “Enabling the host print transform function using printer device description
parameters” on page 288 for the parameters that enable the host print transform
function.
5. On the personal computer, stop the emulated print session and then restart it to
reestablish the printer session. The session ended when the printer device was
varied off (at the AS/400 system) before you used the CHGDEVPRT command.
The OS/2 5250 Work Station Feature supports printers through a printer function
table (PFT). If you have customized a printer by changing the supplied PFT, use of
the host print transform function overrides this customization.
However, if you need to customize your printer while using the host print
transform function, you should:
1. Make sure the host print transform function is enabled.
The TRANSFORM parameter value of the printer device description must be
*YES.
2. Make a note of the features you customized in the PFT.
3. Use a workstation customizing object that is compatible with the host print
transform function.
Update the features in this object to reflect the customized features you used in
the PFT.
OS/2 5250 Emulation is a 5250 emulator for all the connection types supported by
Communications Manager/2. Up to 15 work station sessions in any combination of
display or printer sessions can be configured. OS/2 5250 Emulation provides 3812
SCS printer emulation for all printers supported by OS/2 2.0 or later. Personal
printers can be attached to personal computers through either the parallel or serial
interface.
Configuration recommendations
Configure printers using an OS/2 printer driver. If the printer driver required by
your personal printer is not available, select a printer driver that most closely
matches the one your printer uses.
When the OS/2 5250 printer session has been connected, the AS/400 system
automatically creates a printer device description.
On the AS/400 system, use the CHGDEVPRT command to enable the host print
transform function. See “Enabling the host print transform function using printer
device description parameters” on page 288 for the parameters that enable the host
print transform function.
On the work station, restart the printer session. You need to do this to reestablish
the printer session. The session ended when the printer device was varied off (at
the AS/400 system) before you used the CHGDEVPRT command.
RUMBA/400 provides an OS/2 or Windows 5250 emulator for all of the supported
connection methods. Any number of work station sessions (limited by available
memory) in any combination of display or printer sessions can be configured.
RUMBA/400 provides 3812 SCS printer emulation for all printers supported by
OS/2 2.0 or later and Microsoft Windows 3.0 or later. The personal printers can be
attached to personal computers through either the parallel or serial interface.
Chapter 13. Working with the host print transform function 299
Configuration recommendations
Configure printers using an OS/2 or Windows printer driver. If the printer driver
required by your printer is not available, select a printer driver that most closely
matches the one your printer uses.
When the RUMBA/400 printer session has been connected, the AS/400 system
automatically creates a printer device description.
On the AS/400 system, use the CHGDEVPRT command to enable the host print
transform function. See “Enabling the host print transform function using printer
device description parameters” on page 288 for the parameters that enable the host
print transform function.
On the personal computer, restart the printer session. You need to do this to
reestablish the printer session. The session ended when the printer device was
varied off (at the AS/400 system) before you used the CHGDEVPRT command.
The S36/38 Work Station Emulation Program is a personal computer program. This
program allows a Micro Channel PS/2 to emulate up to four display or printer
sessions. The program uses a card in the PS/2 to communicate through a twinaxial
cable to a twinaxial port or remote controller.
Configuration recommendations
Configure printers supported by the IBM Enhanced 5250 Emulation program or
S36/38 Work Station Emulation program as recommended in the IBM Enhanced
5250 Emulation Program User’s Guide , G570-2221, or the IBM S36/38 Work Station
Emulation User’s Guide SC21-8068. For example, use the IBM4019.PFT and select
5219 Printer emulation for the IBM 4019 LaserPrinter. Configure printers that were
not previously supported by the emulation program using the DEFAULT.PFT file
and selecting 5219 printer emulation.
When the printer session is started, the AS/400 system automatically creates the
printer device description (if automatic configuration is turned on).
On the AS/400 system, use the CHGDEVPRT command to enable the host print
transform function. See “Enabling the host print transform function using printer
device description parameters” on page 288 for the parameters that enable the host
print transform function.
However, if you need to customize your printer while using the host print
transform function, you should:
1. Make sure the host print transform function is enabled.
The TRANSFORM parameter value for the printer device description must be
*YES.
2. Make a note of the features you customized in the PFT.
3. Use a workstation customizing object that is compatible with the host print
transform function.
Update the features in this object to reflect the customized features you used in
the PFT.
4. Use the workstation customizing object name that is compatible with the host
print transform function as the value for the WSCST parameter in the printer
device description.
Using the host print transform function with the IBM remote
5250 emulation program
The Remote 5250 Emulation Program is a personal computer program that allows
a personal computer or PS/2 to emulate an IBM 5294 Remote Workstation
Controller. The Remote 5250 Emulation Program relies on an SDLC
communications line to communicate with the AS/400 system. The Remote 5250
Emulation Program provides the ability to establish up to two display sessions or
one display and one printer session.
Configuration recommendations
See the Remote 5250 Emulation Program User’s Guide , G570-2203, for information on
configuring printer sessions. For example, use the IBM5204.PDT file and select
5219 Printer emulation for the IBM 5204 Quickwriter*. Configure printers that were
not previously supported by the emulation program using the TBLPRT.PDT and
selecting 5219 printer emulation.
When the printer session is started, the AS/400 system automatically creates the
printer device description (if automatic configuration is turned on).
On the AS/400 system, use the CHGDEVPRT command to enable the host print
transform function. See “Enabling the host print transform function using printer
device description parameters” on page 288 for the parameters that enable the host
print transform function.
Chapter 13. Working with the host print transform function 301
The Remote 5250 Emulation Program supports printers through a printer
description table (PDT). If you have customized a printer by changing the supplied
PDT, use of the host print transform function overrides this customization.
However, if you need to customize your printer while using the host print
transform function, you should:
1. Make sure the host print transform function is enabled.
The TRANSFORM parameter value for the printer device description must be
*YES.
2. Make a note of the features you customized in the PDT.
3. Use a workstation customizing object that is compatible with the host print
transform function.
Update the features in this object to reflect the customized features you used in
the PDT.
4. Use the workstation customizing object name that is compatible with the host
print transform function as the value for the WSCST parameter in the printer
device description.
The image print transform function can generate the following printer data
streams:
v Advanced Function Print Data Stream (AFPDS)
v Hewlett-Packard** Printer Control Language (PCL)
v PostScript** Level 1
Similar to the host print transform function, the image print transform function
converts the data on AS/400 instead of an emulator.
When a data stream is converted by the image print transform function, the printer
data stream that is created contains a bit-mapped image. A bit-mapped image is an
array of numerical values. Each value represents part or all of a pixel. A pixel is a
single point or dot of an image. An image is usually measured in terms of pixels,
for both width and height. The resolution of an image is then defined as the
number of pixels (dots) per unit of measure. For example, a resolution supported
by many printers is 300 dots per inch (dpi). Therefore, an image having
dimensions 1200 pixels by 1500 pixels would have a width of 4 inches and a height
of 5 inches when printed at 300 dpi.
Note: You cannot perform functions that your printer does not support. For
example, you cannot print in landscape orientation when your printer
only supports portrait orientation.
The TRANSFORM field and the IMGCFG field can be set when the device
description is created with the Create Device Desc (Printer) (CRTDEVPRT)
command, or changed after the device description was created with the Change
Device Desc (Printer) (CHGDEVPRT) command.
You can set the TRANSFORM field and the IMGCFG field when you create the
output queue with the Create Output Queue (CRTOUTQ) command. You can
change both fields after creating the output queue with the Change Output Queue
(CHGOUTQ) command.
Note: If any of the above attributes are specified in the user defined data attribute
of the spooled file with the convert image API, then only those attributes
that are not specified will be derived from the image configuration object.
The output paper size attribute is derived from the printer device description if the
output data stream format is AFPDS and the printer is an IPDS printer that has
AFP(*YES) specified in the configuration.
The Paper Size attribute is derived from the printer file (i.e. spooled file attributes)
if the output data stream format is not AFPDS and the printer is not an IPDS
printer that has AFP(*YES) specified in the configuration.
Chapter 14. Working with the image print transform function 305
Printing with convert image API
The convert image API provides the same transform capabilities as the image print
transform function. In addition, printing with the convert image API gives the user
more control over how the output will look than the image print transform
function does. It gives the user the ability to immediately transform a data stream
when delaying the transform is not desired. It also has more options regarding the
type of input object and output object. The convert image API supports input from
and output to an Integrated File System (IFS) file, a spooled file or main storage.
The convert image API can also generate a spooled file which can then be
transformed with the image print transform function. When this is done, the
convert image API stores all the values needed to do the transform in the user
defined data attribute of the spooled file for later use by the image print transform
function. For more information on how to use the convert image API, see the
System API Reference topic in the AS/400 Information Center.
All of these fields can be overridden by using the convert image API and
specifying a value for the field of the same name.
Chapter 14. Working with the image print transform function 307
*IMGC01
IPDS 240-dpi printer
*IMGC02
IPDS 300-dpi printer
*IMGC03
IPDS 600-dpi printer
*IMGC04
IPDS 1200-dpi printer
*IMGC05
IPDS 240-dpi printer with no-print border
*IMGC06
IPDS 300-dpi printer with no-print border
*IMGC07
IPDS 600-dpi printer with no-print border
*IMGC08
IPDS 1200-dpi printer with no-print border
*IMGC09
IPDS 240-dpi printer (IM/1 image)
*IMGC10
IPDS 240-dpi printer (IM/1 image) with no-print border
*IMGC11
IPDS 240-dpi printer (CCITT G4)
The recommended image configuration objects are listed below for some common
printers.
*IMGD01
Compaq Pagemarc 20
*IMGA01
Epson EPCL-4 Printer
*IMGA02
Epson EPCL-5 Printer
*IMGB10
Epson Stylus Photo with PostScript
*IMGB11
Epson Stylus Color 600, 800 with PostScript
*IMGA04
HP Color Laserjet 5
*IMGD04
HP Color Laserjet 5M
*IMGA04
HP Deskjet 560C, 820C, 1200C
*IMGA01
HP Deskjet 500, 600, 1200
*IMGA04
HP Deskjet 1600C, 1600CN
*IMGD04
HP Deskjet 1600CM
*IMGA09
HP Laserjet II, IID, IIP
*IMGB01
HP Laserjet II, IID, IIP with PostScript
*IMGA01
HP Laserjet III, IIID, IIISi, 4L
*IMGD01
HP Laserjet III, IIID, IIISi, 4L with PostScript
*IMGA02
HP Laserjet 4, 4P, 4V, 4Si, 4 Plus
*IMGD02
HP Laserjet 4M, 4MP, 4MV, 4Si MX, 4M Plus
*IMGA02
HP Laserjet 5, 5P, 5Si
*IMGD02
HP Laserjet 5M, 5MP, 5Si MX
*IMGA02
HP Laserjet 6, 6P, 6L
Chapter 14. Working with the image print transform function 309
*IMGD02
HP Laserjet 6M, 6MP
*IMGD02
IBM 3112, 3116 Page Printer with IPDS feature
*IMGA02
IBM 3112, 3116 Page Printer (ASCII/LAN)
*IMGD02
IBM 3112, 3116 Page Printer with PostScript
*IMGC01
IBM 3130, 3160-1 AF Printer (240-pel mode)
*IMGC02
IBM 3130 AF Printer (300-pel mode)
*IMGC09
IBM 3825, 3827, 3828 AF Printer
*IMGC01
IBM 3825, 3827, 3828 AF Printer (with AFIG)
*IMGC01
IBM 3829 AF Printer
*IMGC10
IBM 3835-001 AF Printer
*IMGC05
IBM 3835-001 AF Printer (with AFIG)
*IMGC05
IBM 3835-002, 3900 AF Printer
*IMGA01
IBM 3912, 3916 Page Printer (ASCII/LAN)
*IMGC06
IBM 3912, 3916 Page Printer with IPDS feature (twinax)
*IMGA01
IBM 3930-03 Page Printer
*IMGD01
IBM 3930-03 Page Printer with PostScript
*IMGC02
IBM 3935 AF Printer
*IMGA09
IBM 4019 LaserPrinters (HP mode)
*IMGB01
IBM 4019 LaserPrinters with PostScript
*IMGC06
IBM 4028 LaserPrinters
*IMGA01
IBM 4029 LaserPrinters
*IMGB02
IBM 4029 LaserPrinters with PostScript
Chapter 14. Working with the image print transform function 311
*IMGD05
Lexmark Optra SC Color Printer
*IMGA01
Okidata OL400 LED Page Printer
*IMGA02
Okidata OL800, OL810 LED Page Printers
*IMGB12
QMS 2025, 3225
*IMGD04
QMS Magicolor CX
*IMGB09
Tektronix Phaser 140
*IMGB04
Tektronix Phaser 300
*IMGB05
Tektronix Phaser 400
*IMGB05
Tektronix Phaser 540, 550
*IMGB06
Tektronix Phaser 560
*IMGA01
Xerox 4219/MRP
*IMGA02
Xerox 4220/MRP
*IMGA02
Xerox 4230 DocuPrinter
*IMGA02
Xerox 4512, 4517 Network Printer
*IMGB13
Xerox 4520mp Printer
*IMGD04
Xerox 4700 II Color Document Printer
*IMGB08
Xerox 4915 Color Laser Printer
*IMGB05
Xerox 4920, 4925 Color Laser Printer
Fonts
In order to convert PostScript files effectively, PostScript fonts are required to
convert text and symbols into bit-mapped images. Below are lists of fonts supplied
Note: DO NOT alter the IBM supplied font files or the psfonts.map file shipped
with OS/400. Changing a font file or font mapping can cause unpredictable
results.
Table 25 shows the Latin Fonts that are stored in the following directory:
/QIBM/ProdData/OS400/Fonts/PSFonts/Latin
Table 25. Latin Fonts.
Font Associated file
TimesNewRoman TNR.PFB
TimesNewRoman-Bold TNRB.PFB
TimesNewRoman-BoldItalic TNRBI.PFB
TimesNewRoman-Italic TNRI.PFB
Helvetica HEL.PFB
Helvetica-Bold HELB.PFB
Helvetica-BoldItalic HELBI.PFB
Helvetica-Italic HELI.PFB
Courier COU.PFB
Courier-Bold COUB.PFB
Courier-BoldItalic COUBI.PFB
Courier-Italic COUI.PFB
Table 26 shows the symbol fonts that are stored in the following directory:
/QIBM/ProdData/OS400/Fonts/PSFonts/Symbols
Table 26. Symbol Fonts.
Font Associated file
CourierSymbols COU_S.PFB
CourierSymbols-Bold COU_SB.PFB
HelveticaSymbols HEL_S.PFB
HelveticaSymbols-Bold HEL_SB.PFB
TimesNewRomanSymbols TNR_S.PFB
TimesNewRomanSymbols-Bold TNR_SB.PFB
Chapter 14. Working with the image print transform function 313
It behaves the same way as the psfonts.map file that is shipped with OS/400. An
important difference is that the image print transform function will search for fonts
by looking first at the user supplied font mapping file, and then at the OS/400 font
mapping file.
where MyNewFont is the name of the font, and MNF.PFB is the associated font
file.
3. Save the new psfonts.map file.
4. Copy the font file into the directory specified in the line added to the
psfonts.map file.
To delete a user supplied font, simply remove the line mapping the font name to
its associated file in the psfonts.map file, and remove the font file from AS/400.
Font substitutions
When a font requested within a PostScript data stream is not available on AS/400,
a font substitution can be defined if there is a similar font available. A font
substitution is the mapping of a font name to a font that is available and very
similar (in terms of its rasterization properties) to the font file being replaced. You
can also specify a font substitution if an existing font mapping is producing
undesirable output.
Table 27 shows the font substitution mappings that are defined for Latin Fonts.
Table 27. Latin Fonts.
Font Associated file
Times-Roman TNR.PFB
Times-Bold TNRB.PFB
Times-BoldItalic TNRBI.PFB
Times-Italic TNRI.PFB
Helvetica-BoldOblique HELBI.PFB
Helvetica-Oblique HELI.PFB
Courier-BoldOblique COUBI.PFB
Courier-Oblique COUI.PFB
Troubleshooting
The following are answers to questions that may arise when you use the image
print transform function or convert image API:
v Why does it take longer to process PostScript data streams?
One reason why PostScript data streams take a long time to process is the
amount of information that needs to be transformed. Color documents especially
require large amounts of memory and many data conversions, which means
longer processing times.
Chapter 14. Working with the image print transform function 315
incorrect no print border is retrieved from the image configuration object and
the data is consequently positioned incorrectly on the output page. The printer
may also be set up to automatically add a no print border, which will cause the
output generated by the image print transform function to be shifted on the
page. Verify that the correct image configuration object is being used with the
printer, and that the printer has been set up properly and has been physically
calibrated.
v Why didn’t the PostScript data stream generate a new data stream?
Chances are that the PostScript data stream did not contain any printable data.
To verify this, start the image print transform function and check the job log of
the writer. Look for a message that indicates that there was no printable data
found. If no message exists, an error may have occurred processing the file.
Refer to the job log of the corresponding QIMGSERV job.
v Why is the printed image three times the original size when converted from
color or gray scale to black and white?
When a color image or gray scale image is converted to black and white, a
dithering process takes place. In this process, a single color or gray scale pixel is
transformed into a 3x3 matrix of pixels. Each pixel within this matrix will be
either black or white, depending on the color being rendered.
Additional documentation
For more information, see the following:
v System API Reference in the AS/400 Information Center.
v Control Language in the AS/400 Information Center.
For additional information on printing and the AS/400, refer to the following
publications:
v IBM AS/400 Printing III (GG24-4028-00)
v IBM AS/400 Printing IV (GG24-4389-00)
| v IBM AS/400 Printing V (SG24–2160–01)
PrintManager/400
PrintManager is the collective name of a group of IBM licensed programs or
operating system functions designed to provide common access to printing,
including advanced function printing (AFP), across the supported environments.
PrintManager/400 provides the PrintManager functions within the OS/400
operating system and IBM SAA PrintManager provides those functions in the VM
and MVS operating systems.
PrintManager defines a set of print options that are consistent across the supported
environments, and it allows you to specify these print options within the
application. PrintManager also provides the ability to:
v Select AFP resources from a system library on the printing system
v Package AFP resources with the print job (inline) when you send the job from
one system to another.
These print options, combined with the ability to create common, portable
applications and printing definitions (with print descriptors), make possible easy
For more information about the PrintManager Interface, refer to Systems Application
Architecture Common Programming Interface PrintManager Reference , S544-3698. For
more information about the API, refer to PrintManager Application Programming
Interface Reference S544-3699.
This allows the programmers to add more flexibility in defining how their printed
output will look.
See the DDS Reference topic in the online Information Center for information on
how to use DDS with printing.
The advanced printer function utility (APF) allows you to create and maintain
changed-to-tailor forms by using special print capabilities available on the 5224
Models 1 and 2 and 5225 Models 1, 2, 3, and 4 dot matrix printers. APF can create
the background information needed to make it appear as though you are using a
preprinted form or a printer with a variety of special fonts.
Functions of APF
APF provides support to allow you to:
v Design the layout of a form
v Specify fields on a form that will contain special features
v Design special features for a form
v Produce blank copies of a form
v Merge spooled data with a predefined form
4. The bar codes that this utility prints are representations of Code 3 of 9, EAN (8 digit and 13 digit), changed PLESSEY (MSI), and
UPC (versions A and E) bar codes. Test all bar codes you print on the 5224 Printer or 5225 Printer to make sure the wanding or
scanning devices you use can read the codes created. Nonglossy paper is recommended.
GDDM routines perform basic graphics tasks, such as drawing a line from point A
to point B. Also, GDDM routines are called in an application program to start and
stop the graphics environment, set color and width of a line, send the picture to
the work station, and so forth.
Although you can write and compile the programs on any work station that has
been described to the system, only the following devices can be used to display
graphics:
v IBM Personal Computer with work station function
v IBM Personal Computer with work station emulation
v 5292 Model 2
v IBM Personal Computer with 5250 emulation
In this manual the term “graphics work station” means one of these devices.
On the IBM Personal Computer and IBM Personal System/2, the graphics
configuration of the device is determined by the hardware capability and the
virtual device interface (VDI) driver that is loaded in the CONFIG.SYS file on the
personal computer or Personal System/2. The following table describes the
capabilities of each VDI driver:
Chapter 15. Other printing functions provided by the OS/400 program 319
v IBM 6180 Plotter
v IBM 7371 Plotter
v IBM 7372 Plotter
It is also possible to send a graphics data format (GDF) file (the internal data
GDDM interprets to draw the picture) to other systems. The device receiving the
graphics data must have the software necessary to interpret the data.
Required Knowledge
To write graphics application programs for the AS/400 system, you must know
AS/400 application programming in one of the four high-level languages.
Note: The QWP4019 program was designed to make the 4019 fonts available for
the IBM LaserPrinter 4019 printer using emulation. Additional parameters
can be specified to enable functions in the SCS printers. Most of these
parameters are only valid for printers considered as a 5219 or 3812.
Chapter 15. Other printing functions provided by the OS/400 program 321
v The value in the page rotation (PAGRTT) parameter of the printer file is
*AUTO.
v The printer is attached to an emulator (for example, a 3477 InfoWindow
display) that supports page rotation.
For automatic page rotation to be done by an actual 3812 SCS printer, the
print quality control sent to the printer must specify draft quality.
Therefore, without the *IMP flag on the AS/400 system sends controls to
the printer for draft selection. Because the 3812 SCS printer supports only
one level of print quality, printed output is not affected by print quality
selection.
With the *IMP flag set on, the AS/400 system sends the value in the print
quality (PRTQLTY) parameter of the printer file directly to the emulator.
This is done instead of changing the print quality to draft when the value
of the page rotation (PAGRTT) parameter is *AUTO.
*IMPOFF
This parameter sets the *IMP flag off.
*SIC This parameter sets a flag in the printer device description that sends an
ASCII Set Initial Conditions command to the printer. This command turns
off the font intervention messages for a 4019 or 4029 printer.
The 4019 or 4029 printer must be attached to a 3477 InfoWindow display
and be configured as a 5219 printer.
The *ON flag must be set in the 4019 or 4029 device description.
Note: Do not attempt to turn this flag on for any device other than a 4019
or 4029 attached to a 3477 InfoWindow display.
*SICOFF
This parameter sets the *SIC flag off.
*COR This parameter sets a flag in the printer device description that enables
computer output reduction (value of *COR in the page rotation (PAGRTT)
parameter of the printer file.)
*COR is only needed if the *ON flag is set.
The printers must be attached to a 348x InfoWindow, configured as a 5219,
and have the *ON flag set in the printer device description.
To the AS/400 system, printers configured as 5219 appear the same
whether they are attached to a 3477 or to a 348x InfoWindow display.
The *ON flag prevents computer output reduction from being done on
printers attached to the 348x or 3477. This is because the 3477 does not
support computer output reduction. Therefore, if the *ON flag is set, the
*COR flag must be set on to enable computer output reduction for printers
configured as 5219 and attached to a 348x InfoWindow display.
*COROFF
This parameter sets the *COR flag off.
*RST This parameter sets a flag in the printer device description that causes the
writer to reset the printer at the beginning of each spooled file. In most
environments, this may cause a noticeable decrease in performance because
of the SNA overhead involved in doing the reset. This flag can be set for
any SCS printer.
sets *CNT on and tells the AS/400 system that PRT01 has a continuous form feed
device.
Flags are set off by calling QWP4019 with certain parameters specified. For
example,
CALL QWP4019 (PRT01 *OFF)
sets the 4019 flag off in the device description for PRT01.
Since the flags are stored in the device description, QWP4019 only needs to be run
once for each printer and each function. The flags can be changed only by running
QWP4019 or deleting the device description. To make sure the flag is set, it is
recommended that the printer writer for that printer be restarted after the
QWP4019 program has been called.
Example 1
Setting the 4019 flag on and then off in the device description for PRT01.
Chapter 15. Other printing functions provided by the OS/400 program 323
QWP4019 CALL Result
CALL QWP4019 (PRT01 *CHECK) The system returns 5219 or 3812 because the
4019 flag is off.
Example 2
Enabling COR and the 4019 fonts for a 4019 printer attached to a 348x InfoWindow
display.
Example 3
Enabling near letter quality (NLQ) print quality for a IBM Personal Printer Series II
2390 printer attached to a 3477 InfoWindow display.
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.
Table 29. QWP4019 Parameter Names and Calls
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.
The AFP Utilities make the most efficient use of an IPDS-capable printer, provide a
display screen editor that allows you to see the actual position-by-position design
of the overlay, and are supported on all displays that attach to the AS/400 system.
The following make up the AFP Utilities:
v Overlay utility
v Print format utility
v Resource management utility
The information in this guide identifies and describes the major elements of the
AFP Utilities.
Overlay utility
The overlay utility allows you to design electronic form overlays.
You can use overlays to reduce or eliminate the use of preprinted paper forms.
The overlay can be composed of text, image (page segments), lines, boxes, and bar
codes. All of the environmental data (font references, location on the page, and so
on) is defined as a part of the overlay definition.
The following diagram is an example of an overlay you can create using the AFP
Utilities.
Merge
Finished Product
RV2H309-0
Element descriptions
The overlay created by the AFP utilities is composed of any combination of the
following elements:
v Text
Text can be placed at a specified position on the overlay. The text attribute may
also be specified to describe the text characteristics such as font selection, format
and highlighting of underline, overstrike, color, degree of rotation, and character
enlargement.
With the AFP Utilities, the forms and formats for printing are designed by defining
a printout format definition instead of writing your own application programs.
In addition to the data from database file members, you can print fixed data, such
as a logo or a title.
The following diagram is an example of what you can print using the print format
utility.
Chapter 16. Other printing functions provided by licensed programs and AS/400 system hardware 327
Database
File
RV2H308-2
The advanced printer writer utility supports printers that are capable of printing
Japanese, Korean, Traditional Chinese, and Simplified Chinese including the
following:
v Work station printers 4028, 4216, 5317, 5553, 5557, 5563, 5575, 5577, and 5587
v Floor-standing printers 5227 (Models 1, 2, 3, and 5) and 5327 (Models 1, 2, and
3)
The advanced page printer writer utility supports the Japanese 5337 page printer.
The Kanji printer function utility supports the Japanese 5583 page printer.
Chapter 16. Other printing functions provided by licensed programs and AS/400 system hardware 329
The print form description/symbol migration aid utility converts the form
descriptions and symbol files of the System/36 advanced printer writer and Kanji
printer function to equivalent form descriptions and symbol files for the AS/400
system.
The printer function control utility gives users the capability of printing user data
with user-defined single-byte character set (SBCS) fonts.
The following manuals contain more detailed information about Advanced DBCS
Printer Support/400:
v ILE C/C++ for AS/400 MI Library Reference.
v Advanced Print Writer.
v IBM 5583 Kanji Print Function User’s Guide, N:SH18-2179.
v System/36 APW/KPF Migration Utilities User’s Guide, N:SH18-2234.
What is BGU?
The IBM Application System/400 Business Graphics Utility (BGU) is a licensed
program (Program 5738-DS1) that allows you to create, change, store, display,
print, and plot charts representing data. You can also store, retrieve, delete, change,
rename, and copy charts using the Manage existing chart formats option. All AS/400
graphics hardware devices are supported.
Data retrieved from database files can also be changed from a keyboard, allowing
the user to manipulate data from analysis, such as “what if” conditions.
Chapter 16. Other printing functions provided by licensed programs and AS/400 system hardware 331
Client Access Express
The AS/400 system is well suited to support personal computers and personal
computer printers (hereafter called personal printers). In your daily operations you
may have need for data that is created and stored on your personal computers to
be printed on AS/400 system printers. Conversely, you may have requirements for
data created and stored on your AS/400 system to be printed on personal printers.
You use the network printer function to print data from your PC application
programs on AS/400 printers. The network printer function allows you to use a
printer attached to the host system as though the printer were directly attached to
a personal computer.
There are several reasons why you might want to use the network printer function.
For example, you can take advantage of the faster speed or better quality of the
large AS/400 system printers. Additionally, if your personal computer work station
does not have a personal printer attached, you could print your PC data on
AS/400 printers.
The diagram below provides an example of the network printer function concept.
Printed
Sending
Output
Output
For this example, you will need to set up your PC application programs as if they
were sending output to an IBM Proprinter, Model 4201. The network printer
function intercepts and routes the PC output to an AS/400 spooled file. Since
AS/400 system printers like the 3812 are not designed to print data from personal
computers, the network printer function converts the PC data to SNA character
string (SCS) data.
The printer driver converts the standard print format generated by Windows or
OS/2 applications to an all-points-addressable raster format, suitable for printing
on AFP-configured IPDS printers.
| The printer drivers also have an option to convert the Windows or OS/2 print
| format into AFP page segment or overlay resource objects. These AFP resource
| objects can then be moved to the AS/400 system using the Client Access Express
| transfer function, to be used by AS/400 system applications printing on
| AFP-configured IPDS printers.
Printer emulation
Printer emulation is the printing of data from a host (AS/400, S/36) to personal
printers connected to personal computers (PC). Host applications generate print
jobs that can be printed on host attached printers, or printers attached to PCs.
Where they actually print is transparent to the host application. IBM AS/400 Client
Access is a recommended Emulator, with Personal Communications and Rumba
also being popular. There is a wide and growing list of PC printers with laser
printers being quite popular. IBM4019, IBM4039, HPLJ_IV, and various DESKJET
printers are examples.
Chapter 16. Other printing functions provided by licensed programs and AS/400 system hardware 333
Personal computer operating systems
Printer emulation can run on the DOS, OS/2, or Windows operating systems.
To assist you in working with printer emulation using OS/2, the following
products are available:
v Communications Manager/2
v RUMBA/400
Contact your IBM representative for more information on these products. If you
already have these products, consult the documentation that accompanies them.
The personal computers are attached to the AS/400 system using either Client
Access/400, OS/2 with Communications Manager/2, or RUMBA/400. Each
personal computer work station that shares the personal printer uses the network
printer function of Client Access Express.
The diagram below shows how you can share personal printers using the specific
example of attaching the IBM 4019 LaserPrinter to your AS/400 system as a Client
Access/400 work station performing printer emulation.
LPT2 LPT2
Your PC application programs are set up as if they are sending output to the IBM
4019 LaserPrinter that you are sharing. The network printer function is set up with
the ASCII data type. The network printer function intercepts and routes the output
to an AS/400 spooled file. Since the PC data is going to print on a personal printer,
the IBM 4019 LaserPrinter, the network printer function does not convert the PC
data.
The attached printer can be used either as a local screen printer or as a system
printer to print AS/400 spooled jobs (for example, printing an OfficeVision
document or a job generated on a personal computer using the network printer
function).
There are several advantages to using personal printers that attach to the
InfoWindow. The lower cost and smaller size of personal printers makes it
convenient to put personal printers at your display stations that are attached to
your AS/400 system.
Note: If you specify local for the type style option for printer setup on a 3477,
3486, 3487, or 3488 InfoWindow display, font selection or substitution by the
printer may give you unpredictable results.
For further information about attachment of personal printers to the 3477, see the
following manuals:
v IBM InfoWindow 3477 User’s Guide , GA18-2923
v Connecting Personal Printers to IBM Systems , S544-4209
The work station controller also provides the ability to attach a personal computer
running Client Access Express work station function. A personal printer attached to
the personal computer can be used as an AS/400 system printer
For further information about attachment of printers to the work station controller,
see the following manuals:
v ASCII Work Station Reference
v Connecting Personal Printers to IBM Systems , S544-4209
Chapter 16. Other printing functions provided by licensed programs and AS/400 system hardware 335
Sending and printing files with TCP/IP
| The TCP/IP Connectivity Utilities for OS/400 is a licensed program (5722-TC1)
| that provides connection services to other systems. Important to printing is the
| spooling and print support available with this licensed program.
You can request to have your spooled files sent and printed on any system in your
TCP/IP network. The term often used by UNIX** TCP/IP software to describe this
support is line printer requester (LPR). The LPR is the sending, or client portion,
of a spooled file transfer. On the AS/400 system, the Send TCP/IP Spooled File
(SNDTCPSPLF) command provides this function by allowing you to specify what
system you want the spooled file printed on and how you want it printed. There is
also a TCP/IP command, LPR, that provides the same parameters and function as
the SNDTCPSPLF command. The LPR can also transform an SCS or AFPDS
spooled file to ASCII by using the host print transform function before sending the
file.
The printing of the file is done by the printing facilities of the destination system.
The destination system must be running TCP/IP. On the AS/400 system, the line
printer daemon (LPD) is the process on the destination system that receives the
file sent by the SNDTCPSPLF command. The LPD process places the spooled file
on a local printer queue. To print the spooled file, the spooled file must be put on
an output queue already started to an active printer writer or a writer must be
started to that output queue.
For additional information about printing using TCP/IP, see the following
manuals:
v TCP/IP Configuration and Reference
v IBM AS/400 Printing III, GG24-4028
The examples in this part of the guide are intended to show you different methods
you can use to send data, within a network, to be printed on an AS/400 system.
S/370 AS/400
Printer
RS3H024-0
For detailed information on printer emulation, see the manual 3270 Device
Emulation Support .
RJE Printing
| Remote job entry (RJE) allows an AS/400 user to use System/390-based
| applications and data in combination with AS/400 functions. RJE is part of the
| IBM Communications Utilities licensed program (5722-CM1), which runs on all
| AS/400 systems with communications capabilities installed.
When using RJE, the AS/400 system functions as a remote work station that
submits jobs to a System/390 host for processing under one or more of the
following systems:
v MVS/SP JES2 (SNA and BSC)
v MVS/SP JES3 (SNA and BSC)
v VM/SP RSCS (BSC only)
v DOS/VSE POWER/VSE (SNA only)
v OS/VS1 RES (SNA and BSC)
RJE can communicate with the host system using either of the following line
protocols:
v Systems Network Architecture (SNA) over point-to-point switched or
nonswitched connections
v Binary synchronous communications (BSC) over point-to-point switched or
nonswitched connections
A writer (printer or punch) output stream can be directed to one of the following:
v A printer file (spooled or nonspooled)
v A physical database file member
v A diskette file (spooled)
v A DDM file
v User program
Printer Files
A destination must be defined for each writer specified in the RJE session
description. If a printer file is used, it must have a description that the AS/400
system can use to transfer data to a device. The Create Remote Job Entry
Configuration (CRTRJECFG) command uses the following command to create a
printer file:
CRTPRTF FILE(&CFGLIB/QxxPRTFPRn); +
CTLCHAR(*FCFC) +
OUTQ(&OUTQ); +
MAXRCDS(*NOMAX) +
SCHEDULE(*FILEEND) +
LVLCHK(*NO) +
TEXT('RJE output file for Printer PRnn').
RJE
From Host System
Writer
Diskette User-Supplied
Printer Data- Program
base
RV2H332-0
The FCT also functions as a translation table by converting the forms name or
number used by the host system into a corresponding name or number more
meaningful to the AS/400 user.
When the host system sends a peripheral data set information record (PDIR)
(SNA), or a forms-mount message (BSC), the FCT is searched for the
host-system-defined name or number. If the name or number is found, the
corresponding AS/400 form name for that entry is sent in the forms mount
message to the system operator. Both names must be placed in an FCT entry. For
example:
ADDFCTE FCT(MYRJELIB/MYRJEFCT) +
FORMTYPE(X2QH) +
LCLFORM(INVOICE)
Controlling the FCT: The following commands are supplied with RJE:
CRTFCT
Create Forms Control Table
CHGFCT
Change Forms Control Table
DLTFCT
Delete Forms Control Table
WRKFCT
Work with Forms Control Table
ADDFCTE
Add Forms Control Table Entry
CHGFCTE
Change Forms Control Table Entry
RMVFCTE
Remove Forms Control Table Entry
Cancelling Writers
If writers are cancelled with OPTION(*IMMED), or if a session ends abnormally
during processing, blocks of data may be lost. Each host system has the capability
to save a backup of the data. Refer to the appropriate host system manual for
details.
The following commands and control statements can be used to cancel an RJE
writer:
v RJE control statements
..CANCEL
Cancel: Control statement that cancels a printer or punch. This control
statement can be issued only from the RJE console. To issue it from the
console, type it on the command line and press F10.
..END End: Control statement that ends the session in a controlled manner.
This control statement can be issued only from the RJE console. To issue
it from the console, type it on the command line and press F10.
v AS/400 commands
ENDRJESSN
End RJE Session: Command that cancels all writers that are active and
defined in the session description.
CNLRJEWTR
Cancel RJE Writer: Command that cancels either individual writers or all
writers that are active and defined in the session description. If this
command is issued, the session does not end and the AS/400 system
continues to communicate with the host system.
WRKRJESSN
Work with RJE Session: Command that permits one or more writers
defined in the session description to be cancelled.
If you specify *FIXED, RJE reblocks the output stream according to its own
defaults, which are as follows:
v When an RJE printer is processing the output stream:
– If data is being written to a printer file, the record length is 132 bytes for 10
or fewer characters per inch (CPI), and 198 bytes when the CPI is greater than
10. You must specify *FCFC for the CTLCHAR parameter of either the Create
Printer File (CRTPRTF) or Change Printer File (CHGPRTF) command.
– If data is being written to a physical file, the record length is 132 bytes for
data format, and 133 bytes for FCFC format. Physical files do not have any
CPI value associated with them. The record length of the physical file must
equal the record length of the output data (132 or 133 bytes) to prevent record
misalignment.
v RJE punches reblock data as 80-byte records.
For SNA, carriage control is provided by the extended SNA character string (SCS)
controls. These are shown in Table 31 on page 347.
For BSC, carriage control is provided by carriage-control bytes (CCBs). These are
shown in Table 32.
Table 32. BSC Carriage-Control Bytes
Code Meaning
1010 00nn Space immediately nn spaces (no printing)
1011 nnnn Skip immediately to channel nnnn (no printing)
1000 00nn Space nn lines after printing
1001 nnnn Skip to channel nnnn after printing
1000 0000 Suppress space after printing
When you specify *FIXED for the OUTRCDLEN parameter of the CRTRJECFG,
CRTSSND, CHGSSND, or CVTRJEDTA command, the output stream is reblocked
as follows:
When you specify *FILE for the OUTRCDLEN parameter, the record length (page
width) of the file that receives the data determines the record length of the output
data.
For AS/400 printing applications, the extent of the function is limited to that
provided by a 3287 printer, regardless of the type and model of the printer actually
attached. This is functionally equivalent to a 5256-003 printer. For example, a 4224
printer, which has all-points-addressable capability, only provides 3287 printer
capability when attached to a 3x74 controller. However, if a 3284 printer is attached
to the 3x74 controller, it does not provide the 6 or 8 LPI support of the 3287 printer
because it is not equipped with the necessary hardware features.
For example, assume your page length set on the printer hardware switches is 11
inches, your actual forms are 3 inches long, the spooled file just completed
printing, and you press the Page Eject key to get the last printed form. By pressing
the Page Eject key, you may advance the forms 11 inches instead of the 3 inches
your form takes up.
However, the following attributes or DDS keywords are ignored if the target
printer is attached to a 3x74 controller.
v IGCCPI (DBCS attribute)
The IGCSOSI printer file parameter is processed in the OS/400 program and not in
the printer being used to print the spooled file.
There are, however, certain limitations to the DDM support, particularly where
printing applications are concerned. For example:
v The AS/400 Query licensed program does not support DDM files.
v It is not possible to print on a remote AS/400 system using, for example, an
OVRPRTF of QSYSPRT to the source DDM file because the print request is
rejected by DDM, as shown by the following job log extract:
3 > OVRPRTF FILE(QSYSPRT) TOFILE(ITSCID03/DDMQSYSPRT)
DDM file DDMSRC in MYLIB uses remote file QSYS/QSYSPRT.
File DDMSRC in MYLIB not a data base file.
Cannot open DDM file DDMSRC in MYLIB.
Function check. CPF4207 unmonitored by QWSGET at statement *N,
instruction X'0F9D'.
A function check was received while opening the print file.
The print operation used the default printer device file.
One way in which data could be printed on a remote AS/400 system using DDM
is as follows:
1. Create a DDM file on the source system using the Create DDM File
(CRTDDMF) command.
CRTDDMF FILE(MYLIB/DDMSRC) RMTFILE(QSYS/QSYSPRT)
RMTLOCNAME(B20) TEXT('DDM file for remote printing on B20').
2. Create a physical file of the appropriate record length to receive the spooled
data (80 bytes for print screen output, 132 bytes for normal spooled output),
using the Create Physical File (CRTPF) command.
CRTPF FILE(MYLIB/PFILE) RCDLEN(80) TEXT('CPYSPLF data file').
3. Create a similar file on the remote AS/400 system using the Submit Remote
Command (SBMRMTCMD) command.
SBMRMTCMD CMD('crtpf file (rlib/rfile) rcdlen(80)') DDMFILE(DDMSRC).
4. Copy the spool entry to the physical file using the Copy Spooled File
(CPYSPLF) command, taking the defaults (no control character).
CPYSPLF FILE(QSYSPRT) TOFILE(MYLIB/PFILE)
JOB(003049/USER/DSP06).
5. Use the Copy File (CPYF) command to copy the data from this physical file to
the remote physical file created in Step 3.
CPYF FROMFILE(MYLIB/PFILE) TOFILE(MYLIB/DDMSRC)
MBROPT(*ADD).
| Chapter 18. The IBM Internet Printing Protocol (IPP) server for
| AS/400
+ This chapter provides information about the IBM Internet Printing Protocol (IPP)
+ Server for AS/400 and how to enable it to provide additional support for printers
+ that are attached to an AS/400 system.
|
| What is the Internet Printing Protocol?
| The Internet Printing Protocol (IPP) defines an industry standard method of
| delivering print jobs using Internet technologies. The IPP protocol was developed
| by the Printer Working Group, a consortium of the major companies involved in
| network printing.
+ The IPP server can be configured to provide security features for user
+ authentication and encryption of print data.
+ To select the display language for the administrator, access the language selection
+ for your Internet browser, and select or enter a supported locale that is installed on
+ your system. Normally, there is a list to choose from. If a list is not displayed, you
+ can manually enter a locale. The locale is usually a two letter abbreviation that
+ represents a language. For example, English is represented by the letters ″en″.
+ Sometimes the locale may further be defined by a country. For example, French
+ spoken in Switzerland is represented by ″fr_CH″. If the locale defined for the
+ browser is not installed or supported by the administrator interface, the language
+ associated with the user profile is used. If this is language is not supported,
+ English is used by default.
+ where system is the name of the AS/400 system. From the AS/400 Tasks page, click
+ on the icon for the IBM IPP Server.
| You should now be presented with the IBM IPP Server Administrator interface.
| From here, you can configure the IPP server, create and delete IPP printer
| configurations, set up preferences for using the browser interface, and manage the
| IPP server.
+ The administrator interface is divided into two main sections, a navigational frame
+ on the left, and a form frame on the right. The form frame is further broken down
+ into a form content frame, a button frame, and a message frame. The message
+ frame, located at the bottom of the form frame, is the location where messages
+ appear during normal operation of the browser interface.
| To change navigational menus, use the navigation tabs located above the frames
| near the top of the browser window. The choices available are:
| Administration
| Provides a form for managing the IPP server.
| There are two document links at the top of the browser interface as well. Each of
| the document links will display the selected document in a separate browser
| window. The document links are:
| Getting Started
| Provides information on using the interface.
| Printer Device Programming Guide
| Links directly to the online version of the Printer Device Programming
| Guide.
|
| Configuring the IPP server
| If SSL connections are desired for any IPP printer, you must first enable the IPP
| server to use SSL by specifying an SSL port. To enable SSL connections:
| 1. Click on the Configuration tab to load the configuration navigational menu.
| 2. Click on Basic Configuration to load the basic configuration form.
| 3. Select the Enabled radio button.
| 4. Fill in a valid port number in the SSL Port text field.
| 5. Click the Apply button.
| The IPP server is automatically configured to port 631 for non-SSL data. To disable
| SSL connections, select the Disabled radio button on the form and click the Apply
| button.
| Note: Whenever a change is made to the configuration of the IPP server, whether
| it is for SSL connections or logging information, the IPP server must be
| stopped and then started again for the change to become effective.
| To configure how you want access logs created, written, and archived, follow these
| steps:
| 1. Click on the Configuration tab to load the configuration navigational menu.
| 2. Expand the Logs and Errors menu item.
| 3. Click on Access Logs to load the access logs form.
| 4. Fill in the form with the appropriate information.
| 5. Click the Apply button.
| To configure how you want error logs created, written, and archived, perform the
| following steps:
| 1. Click on the Configuration tab to load the configuration navigational menu.
| 2. Expand the Logs and Errors menu item.
| 3. Click on Error Logs to load the error logs form.
| 4. Fill in the form with the appropriate information.
| 5. Click the Apply button.
Chapter 18. The IBM Internet Printing Protocol (IPP) server for AS/400 353
+ Note: The IBM IPP Server Administrator and the IBM IPP Server are two different
+ applications. However, error logging must be enabled for the IPP server to
+ allow administrator interface error logging to be enabled. If an error occurs
+ using the IPP server, check the IPP server error log, specified using the error
+ log form of the administrator interface, to help locate the problem.
| The IPP server is initialized using a special configuration file. The file is
| QIBM/UserData/OS400/Ipp/conf/qippsvr.conf. Do not manually edit this file.
| The configuration file is changed via the IBM IPP Server Administrator browser
| interface.
+ To stop internal tracing for the administrator and the IPP server, select a logging
+ level above ″Error″ (ie, Critical, Alert, or Emergency) on the Error Logs form and
+ click the Apply button.
+ Use the following table to help troubleshoot other problems you may encounter
+ working with the IBM IPP Server Administrator or the IBM IPP Server.
| Table 34. Troubleshooting
| You do not have the correct authority to a To modify any configuration files, IBM IPP
| file. Server Administrator browser interface users
| require at least *IOSYSCFG authority. Verify
| that you have the correct authority.
| File does not exist or is corrupt. Always make sure the following files exist
| on your system:
| /QIBM/UserData/OS400/Ipp/conf/
| qippsvr.conf
| /QIBM/UserData/OS400/Ipp/conf/
| preferences.properties
| /QIBM/UserData/OS400/Ipp/conf/
| printer.properties
Chapter 18. The IBM Internet Printing Protocol (IPP) server for AS/400 355
| Table 34. Troubleshooting (continued)
| The browser interface is not being displayed The language specified in the browser is not
| in the language specified. supported by the IBM IPP Server
| Administrator browser interface application.
| You cannot find help for a field. Click the ″?″ help icon for information
| concerning a particular field. You may also
| activate ″verbose″ for the form, which
| provides a more detailed overview of the
| entire form.
| An internal error occurred using the browser Turn on tracing and examine the trace file to
| interface. help locate the problem.
+ The IPP server does not start or stay An error has probably occurred during
+ running after you attempt to start it. initialization. Whenever the IPP server is
+ started, an OS/400 fully-qualified job name
+ is displayed in the message frame, in the
+ form: JobNumber/JobUser/JobName
Any one element by itself will probably not allow you to control your printing
environment. However, by becoming familiar with all the elements and how they
interact, you will be able to create and control your printing environment.
These commands allow you to display and change your user profile:
v DSPUSRPRF (your user ID) allows you to display your user profile.
v CHGUSRPRF (your user ID) allows you to change your user profile.
When you display your user profile, you cannot change any of the attributes you
are viewing.
Your system administrator has configured the new printer and created an output
queue for it.
The printer name is PRT99 and its output queue name is also PRT99.
Method one: From a command line, type CHGUSRPRF (your user ID), and press
F4 (Prompt).
Your user profile with all its assigned values appear. Page through the user profile
until you find the output queue and printer device parameter values. Type PRT99
over the current values, and press the Enter key.
Verification of Change
To verify that the requested change took place (regardless of the method of change)
use the Display User Profile command DSPUSRPRF (your user ID). Page forward to
view the output queue and printer device parameter values. They will be PRT99.
Note: When you change your user profile, the change does not become effective
until the next time you sign on.
You can see, from the displayed system value QPRTDEV, that the name of the
printer your output goes to is PRT01 (if the SPOOL parameter of the printer file is
*NO).
If the SPOOL parameter of the printer file is *YES, your spooled files go to output
queue PRT01.
Note: This is true only if the default values for the printer file, job description, and
user profile have not been changed.
In this case, if you are using *SYSVAL for the output queue and printer device
values in your user profile and someone changes the QPRTDEV value, your
printed output could go to a different output queue or printer.
You might choose to create additional output queues if you have application
programs that have special forms requirements, limited number of printers
available on the system, low speed printers, or spooled files that you do not want
printed. Creating additional output queues to hold spooled files that require
special handling allows you to determine what gets printed, on what printer, and
when it gets printed.
Until you become very familiar with using CL commands to create output queues,
the best way to start is to type CRTOUTQ and press F4 (Prompt). The following
display appears:
Create Output Queue (CRTOUTQ)
Type choices, press Enter.
Output queue . . . . . . . . . . XXXXXXXXX Name
Library . . . . . . . . . . . *CURLIB Name, *CURLIB
Order of files on queue . . . . *FIFO *FIFO, *JOBNBR
Text 'description' . . . . . . . *BLANK
Additional Parameters
Display any file . . . . . . . . *NO *NO, *YES
Job separators . . . . . . . . . 0 0-9, *MSG
Operator controlled . . . . . . *YES *YES, *NO
Authority to check . . . . . . . *OWNER *OWNER, *DTAAUT
Authority . . . . . . . . . . . *USE *USE, *ALL, *CHANGE, *EXCLUDE
The remainder of the output queue parameters have a default value assigned.
For detailed information on the CRTOUTQ command and its parameters, press the
Help key or see the CL Reference information in the online Information Center.
In this example, let us assume that an application program that is run every day
uses a printer file, called PRTF1, to control which output queue your spooled files
are sent to.
In the printer file named PRTF1, the output queue value is OUTQ1 and the printer
device value is PRT3812.
Let us also assume that PRT3812 is out of operation for an unknown amount of
time. You need to print the spooled files from your application program but will
have to use a printer named PRT3816 and an output queue named OUTQ3816.
How can you change printer file PRTF1 to have your spooled files printed on
PRT3816?
There are two ways, one temporary and one permanent, that you can send your
spooled files to PRT3816.
v Temporarily, using the Override Printer File (OVRPRTF) command.
v Permanently, using the Change Printer File (CHGPRTF) command.
In our example,
1. Type OVRPRTF (PRTF1) and press F4 (Prompt).
2. Page forward until you locate the output queue and printer device parameters.
3. Type over the existing values for output queue and printer device with
OUTQ3816 and PRT3816 respectively.
Note: At this point the spooled files will go to OUTQ1 if the SPOOL parameter
in the printer file is set to *YES. The output will go directly to PRT3812 if
the SPOOL parameter in the print file is set to *NO.
4. Press the Enter key.
The application program that uses printer file PRTF1 will now send the spooled
files to output queue OUTQ3816.
In our example,
1. Type CHGPRTF (PRTF1) and press F4 (Prompt).
2. Page forward until you locate the output queue and printer device parameters.
3. Type over the existing values for output queue and printer device with
OUTQ3816 and PRT3816 respectively.
4. Press the Enter key.
The application program that uses printer file PRTF1 will now send the spooled
files to output queue OUTQ3816.
Note: If you choose to move spooled files from one output queue to another using
CL commands from a command line, you must know the library the target
output queue is in.
The Work with Spooled Files (WRKSPLF) command can be used to move a
spooled file from one output queue to another:
1. Type WRKSPLF and press the Enter key.
The Work with All Spooled Files display appears. This display lists all of your
spooled files and shows you what output queue they reside in.
2. Move the cursor to the spooled file you want to move and type a 2 (Change) in
the option field next to the file name.
This allows you to change the attributes of this spooled file. In this example,
the attribute you will change is the output queue name (and library if the
output queue is in a different library).
The Work with Output Queue (WRKOUTQ) command can be used to move a
spooled file from one output queue to another:
1. Type WRKOUTQ and press the Enter key
The Work with all output queues display appears.
2. Page forward until you find the output queue that your spooled files go to.
3. Type a 5 (Work with) next to the output queue you want to work with.
The Work with output queue display appears.
4. Page forward until you locate the spooled file you want to move to a different
output queue.
5. Move the cursor to the spooled file and type a 2 (Change) in the option field
next to the file name.
This allows you to change the attributes of this spooled file. In this example,
the attribute you will change is the output queue name (and library if the
output queue is in a different library).
6. Press the Enter key and the Change Spooled File Attributes (CHGSPLFA)
display appears.
7. Move the cursor to the Output queue parameter and type over the current
output queue name with the name of the output queue you want the spooled
file moved to.
If the library of the target output queue is different from the library that your
current output queue is in, type the name of the library that your target output
queue is in.
8. Press the Enter key, and you return to the Work with Output Queue display.
The value in the status (Sts) column is now *CHG. The spooled file is now in
the target output queue.
The Work with Job (WRKJOB) command can be used to move any spooled file that
was created by the present job from one output queue to another:
1. Type WRKJOB and press the Enter key.
The Work with Job display appears.
2. Select option 4 (Work with spooled files).
The Work with Job Spooled Files display appears.
3. Page forward until you locate the spooled file you want to move to a different
output queue.
Method one: Before you can assign a printer to print spooled files you have to
know the status of the printer you want to use.
1. To find the status of the printer you want to use, type WRKWTR on any
command line and press the Enter key. The Work with All Printers display
appears. This display shows all printers configured to the system.
2. Page forward until you find PRT3816.
Look at the Sts (status) column to determine the status of the printer. Let us
assume it is STR (started).
3. To find out which output queue it is assigned to, type an 8 (Work with output
queue) next to PRT3816 and press the Enter key.
The Work with Output Queue display appears. You can now see the name of
the output queue PRT3816 is assigned to and if there are any spooled files in
that output queue.
Note: If there are spooled files in the output queue and you assign the printer
to a different output queue, the spooled files in PRT3816 will not print.
You should notify the owner of those spooled files if you assign the
printer to a different output queue.
Let us assume there are no spooled files in the output queue assigned to
PRT3816.
4. Press F12 to return to the Work with All Printers display.
5. Type a 2 (Change) next to PRT3816 and press the Enter key. The Change
Writer display appears.
6. Move the cursor to the output queue parameters.
7. Type the name of the output queue you want to use (in this case, MYOUTQ).
The writer will start processing spooled files from MYOUTQ.
8. Press the Enter key.
You are returned to the Work with All Printers display.
9. Press F5 (Refresh).
10. Type an 8 (Work with output queue) next to PRT3816 and press the Enter key.
The Work with Output Queue display appears. At the top of the display, you
will see Queue: MYOUTQ.
This verifies that printer PRT3816 is now assigned to the output queue named
MYOUTQ.
11. Press F12 to return to the Work with All Printers display.
This command assigns printer PRT3816 to print spooled files from output queue
MYOUTQ.
These commands can be entered with the required parameters from any command
line, you can enter the command and press F4 to use the command prompt
display.
Note: You need special authority to create and delete user profiles.
DSPUSRPRF
Display User Profile. This command allows you to display your user
profile. It is useful for checking the user profile values. You can see the
output queue and printer device values. To display user profiles of other
users, you must have special authority.
CHGUSRPRF
Change User Profile. This command allows you to change the current
values of your user profile. If you have the correct level of authority, you
can change the user profiles of other users.
DLTUSRPRF
Delete User Profile. This command allows you to delete a user profile.
Note: You need special authority to create and delete user profiles.
Appendix B. CL Commands Frequently Used While Working with Printing Tasks 371
372 OS/400 Printer Device Programming V5R1
Appendix C. Printer File Return Codes
This appendix contains descriptions of all major and minor return codes for printer
files. These return codes are set in the I/O feedback area of the printer file. Return
codes report the results of each operation. The appropriate return code is available
to the application program that issued the operation. The program then checks the
return code and acts appropriately. Refer to your high-level language manual for
information about how to access these return codes.
The return code is a four-digit value: the first two digits contain the major code,
and the last two digits contain the minor code. With some return codes, a message
is also sent to the job log or the system operator message queue (QSYSOPR). You
can refer to the message for additional information. Message IDs followed by an
asterisk (*) may be received by applications while spooling output.
Note: Return codes that refer to a condition on the printer are available to the
application program only when printing with SPOOL = *NO specified in the
printer file. When SPOOL = *YES has been specified, the printer writer
program is the program communicating with the printer, not your
application program.
Major Code 00
Major Code 00 – Operation completed successfully.
Code Description/Action
0000 Description: For output operations performed by your program, 0000
indicates that the last output operation completed successfully.
The notify messages are used after certain error conditions to give the
operator the choice of continuing or canceling the printing of that file. If
the reply is CANCEL, another message is issued with a nonzero return code.
Action: Your program may continue. One of the following diagnostic
messages may have been issued to warn of an unusual condition that may
be significant to your program even though it is not an error.
Messages:
CPA4001 (Inquiry)
CPA5341 (Inquiry)
CPA4003 (Inquiry)
CPA5342 (Inquiry)
CPA4004 (Inquiry)
CPA5343 (Inquiry)
CPA4005 (Inquiry)
CPA5344 (Inquiry)
Major Code 80
Major Code 80 – Permanent system or file error (nonrecoverable).
Description: A nonrecoverable file or system error occurred. Recovery is unlikely until the
problem causing the error has been corrected.
Action: The following general actions can be taken by your program for each 80xx return
code. Other specific actions are given in each return code description.
v Continue processing without the printer.
v Close the printer file and open the file again.
v End.
Code Description/Action
8081 Description: The operation was not successful because a system error
condition was detected.
Action: Your printer may need to be varied off and then on again. Your
program can either:
v Continue processing without the printer.
v Close the device file and open the file again.
v End.
Messages:
CPF4182 (Escape)*
CPF5409 (Escape)
CPF4289 (Escape)
CPF5410 (Escape)
Messages:
CPF4502 (Escape)
CPF5104 (Escape)
CPF5116 (Escape)*
CPF5269 (Escape)
80B3 Description: The open operation was not successful because the printer file
or printer device is not available.
Messages:
CPF4262 (Escape)
CPF5413 (Escape)
CPF4509 (Escape)
CPF5419 (Escape)
CPF5103 (Escape)
CPF5420 (Escape)
CPF5247 (Escape)
CPF5430 (Escape)
CPF5412 (Escape)
CPF5437 (Escape)
80EB Description: An open operation was not successful because an open option
that was not valid or an invalid combination of options was specified in
your program, in the printer file, or in an override command.
Action: Close the printer file, correct the problem, and issue the open
operation again. See the individual messages to determine what options
are not valid.
Messages:
CPD4012 (Diagnostic)
CPF4209 (Escape)
CPD4013 (Diagnostic)*
CPF4214 (Escape)*
CPD4020 (Diagnostic)
CPF4217 (Escape)
CPD4021 (Diagnostic)*
CPF4219 (Escape)
Major Code 81
Major Code 81 – Permanent device error (nonrecoverable).
Action: The following general actions can be taken for each 81xx return code. Other
specific actions are given in each return code description.
v Continue processing without the printer device.
v Close the file, correct the problem, and open the file again. If the operation is still
unsuccessful, try it again only a limited number of times. (The number of times should
be specified in your program.)
v End.
Several return codes indicate that an error condition must be corrected by varying the
device off and on again.
Code Description/Action
8181 Description: A system error condition was detected during an I/O
operation to the printer device.
Action: Close the file. You may need to vary the device off and on again to
clear the error. Determine the cause of the failure from the accompanying
message. Check for any system operator messages indicating that
additional corrective action must be performed. Open the file again to
continue.
Messages:
CPF4289 (Escape)
CPF4552 (Escape)
Description: An attempt to open the printer file was not successful. The error may be
recoverable or permanent, but is limited to the printer device. Recovery is unlikely until
the problem causing the error has been corrected.
Action: The following general actions can be taken for each 82xx return code. Other
specific actions are given in each return code description. You can either:
v Continue processing without the device.
v Close the file, correct the problem, and open the file again. A subsequent operation could
be successful if the error occurred because of some temporary condition such as the
device being in use at the time.
If the operation is still unsuccessful, try it again only a limited number of times. (The
number of times should be specified in your program.)
v End.
Several return codes indicate that an error condition must be corrected by changing a value
in the file. To change a parameter value for the file, use the Change Printer File
(CHGPRTF) or the Override with Printer File (OVRPRTF) command.
Code Description/Action
8281 Description: A system error condition was detected on an open operation
that was not successful. The printer file may previously have been in error,
or the printer file could not be opened due to a system error.
Action: Your printer may need to be varied off and then on again to clear
the error. Your program can either:
v Continue processing without the printer.
v Close the file, correct the problem, and open the file again.
v End.
Messages:
CPF4168 (Escape)*
8282 Description: The open operation was not successful because the printer
device is unusable. This may occur because a cancel reply has been taken
to an error recovery message for the printer or because the printer has
been held by a Hold Communications Device (HLDCMNDEV) command.
No operations should be issued to the device.
Action: Close the file. Communications with the printer cannot be resumed
until the device has been reset to a varied-on state. If the device has been
held, use the Release Communications Device (RLSCMNDEV) command to
reset the device. If the device is in an error state, vary the device off and
then on again. Once the device is reset, normal operation can be started by
opening the printer device file again.
Messages:
CPF4110 (Escape)
CPF4298 (Escape)
CPF4354 (Escape)
Major Code 83
Major Code 83 – Device error occurred (recoverable).
Description: An error occurred during an I/O operation, but the printer device is still
usable. Recovery within your program might be possible.
Action: The following general actions can be taken for each 83xx return code. Other
specific actions are given in each return code description.
v Continue processing without the printer device.
v Correct the problem and continue processing with the printer device. If the attempt to
recover from the operation is unsuccessful, try it again only a limited number of times.
(The number of times should be specified in your program.)
v End.
Several return codes indicate that an error condition must be corrected by changing a value
in the file. To change a parameter value for the file, use the Change Printer File
(CHGPRTF) or Override with Printer File (OVRPRTF) command.
Code Description/Action
8319 Description: A negative response was received to the last printer operation
attempted by your program. The error may have been caused by the user
pressing the Cancel key on the printer.
Action: Your program can try a different operation, or close the file and
end. Refer to the device response code in the accompanying message to
determine why the operation was rejected. Correct the error in your
program before attempting to try the operation again.
Messages:
CPF4158 (Escape)
CPF4531 (Escape)
CPF5050 (Escape)
831D Description: The operation just attempted by your program was rejected
because a parameter was not valid, out of limits, or missing.
The first part of this appendix discusses these elements and the second part
contains tables that show how the elements work together.
See the “Bibliography” on page 555 for a list of manuals that contain additional
information about fonts and font-related products.
Downloading
Downloading is the process of sending something (for example, character sets or
code pages) to another computer or printer.
Some printers do not have fonts built into them. The host system can send
(download) character sets and code pages to the printer with the document or
ahead of time, to be stored for future use.
When an application program calls for a particular element (font or code page), the
system looks for it in the printer being used or in the AS/400 system. If it cannot
If you need to know more about fonts, font character sets, code pages, or coded
fonts, read on. If not, you can skip to “Font Substitution Tables” on page 400 for
information describing how fonts are substituted between printers and computers.
Some font character sets come with the AS/400 system; some can be downloaded
from a System/390 to an AS/400 system; some can be received from another
AS/400 system; and some are available as licensed programs.
Note: Any printer attached to Print Services Facility for OS/2 (PSF for OS/2)
accepts downloaded fonts.
The use of font character sets provides consistent or similar fonts across printers.
For example, a document created at one location using a specific font character set
could be sent to a different location, printed on a different model printer, and still
look the same.
With some exceptions, the above printers support font character sets that are 240
pels. The InfoPrint 3000, InfoPrint 4000, InfoPrint 20, InfoPrint 32, 4028, 3130, 3935,
4312, 4317, and 4324 printers support 300-pel fonts. A pel is a picture element,
representing the number of dots in a square inch (for example, 240 across and 240
down).
The 3130, InfoPrint 3000, and InfoPrint 4000 printers support both 240 and 300 pel
fonts. The operator can select which mode the printer is in through the printer
operator panel.
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 389
spaced and mixed-pitch fonts. In this example, the GT10 means that this
font character set is a Gothic Text style and the characters are 10 pitch or
10 characters per inch.
For more information about font character sets, see the manual About Type: IBM’s
Technical Reference for 240-Pel Digitized Type , GS544-3516.
If you choose to use font character sets with your applications, you must also
specify a code page (by providing a value for the CDEPAG parameter of the
printer file being used).
Example 1: Assume:
v The application calls for font character set C0D0GB10 (Gothic Bold, 10 pitch).
v The printer supports only resident fonts.
v The fidelity parameter value is *CONTENT.
In this example, the spooled file will print, with substituted font ID 39 (Gothic
Bold 10 pitch) because the fidelity parameter value is *CONTENT. If the fidelity
parameter value had been *ABSOLUTE, the spooled file would be held on the
output queue and it would not print.
Example 2: Assume:
v The application calls for FGID 51 (Matrix Gothic).
v The printer supports only downloaded font character sets.
v The fidelity parameter value is *CONTENT.
In this example, the spooled file will print. The AS/400 system substitutes a font
character set (C0S0CR10, Courier Roman 10 pitch) for FGID 51. This is not an exact
match. The AS/400 system matched (as closely as possible) the font character to
the FGID specified in the application.
Note: In this example, if the fidelity parameter was *ABSOLUTE, the spooled file
would be HELD.
There is a different FGID assigned for the same type family but different typeface.
For example, a Courier Roman Medium 10 pitch (characters-per-inch) is FGID 11
and Courier Roman Bold 10 pitch (characters per inch) is FGID 46.
RV2H331-1
Printers with resident fonts use FGIDs to name the resident fonts. Depending on
the technology used with the printer, resident fonts can be stored on font cards,
diskettes, in the memory of the printer, or mechanically on a font element or daisy
wheel.
To find out which fonts are supported by a printer, check the reference manual for
that printer.
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 391
Selecting Resident Fonts
Selecting a resident font to use with an application program is done by specifying
an FGID value on the FONT parameter of the printer file.
Font Substitution
Substitution can be one FGID for another, an FGID for a font character set, or a
font character set for an FGID.
Example 1: Assume:
v Your application calls for a font character set (FNTCHRSET specified on the
printer file), for example, C0S0CR10 for Courier Roman medium 10 pitch.
v The printer is a 4224 and has resident fonts identified by FGIDs.
v FGID 11 will be substituted for C0S0CR10 and sent to the printer.
In this example, the AS/400 system substitutes a font that is resident on that
printer.
Example 2: Assume:
v Your application calls for a font (specified on the FONT parameter of the printer
file). The font specified is font 26 (Gothic Matrix, Roman medium 10 pitch) and
the printer is a 3812.
v You decide to print the document on a 4019 printer. Font 26 is not supported on
the 4019.
In this example, the AS/400 system substitutes font 11 (Courier, Roman medium 10
pitch)
You can figure out such substitutions by looking at Table 36 on page 413.
Example 3: Assume:
v Your application uses a font (specified on the FONT parameter of the printer
file). The font specified is font 40 (Gothic, Roman medium 10 pitch).
v The printer you are going to print on supports only font character sets (for
example, a 3827).
In this example, the AS/400 system substitutes font character set C0D0GT10
(Gothic Text, Roman medium 10 pitch).
You can figure out such substitutions by looking at Table 39 on page 452.
Code Pages
Code pages come in two types:
v Code page (standalone)
v Character set and code page combination (referred to as a CHRID).
Code pages are groups of characters. Within a code page, there are unique
hexadecimal identifiers assigned to each of the characters.
Below is a diagram of two code pages: code page 37 and code page 285. They are
printed in a 10-characters-per-inch (courier 10) font. Notice the different character
that occurs at code point hex ‘5B’. One is a $ sign and the other an English pound
or currency sign. This example shows that different characters will print depending
on the code page you specify even though you are using an identical font style.
’
o j k l m n o p q r a o æ , Æ 9 o j k l m n o p q r a o æ , Æ
9 —— ——
s t u v w x y z ¡ ¿ -D Y Io O s t u v w x y z ¡ ¿ -D Y Io O
’
’
A R A R
E \ S T U V WX Y Z 2
Ô Ö Ò ÓÕ E \ S T U V WX Y Z 2
Ô Ö Ò ÓÕ
F 0 1 2 3 4 5 6 7 8 9 3
Û Ü Ù Ú F 0 1 2 3 4 5 6 7 8 9 3
Û Ü Ù Ú
RV2H330-0
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 393
v InfoPrint 4000 (has resident fonts also)
v 3900
v 3912 (has resident fonts also)
v 3916 (has resident fonts also)
v 3930 (has resident fonts also)
v 3935 (has resident fonts also)
v 4028 (has resident fonts also)
v 4312 (has resident fonts also)
v 4317 (has resident fonts also)
v 4324 (has resident fonts also)
v InfoPrint 20 (has resident fonts also)
v InfoPrint 32 (has resident fonts also)
Another way is with a code page global identifier (CPGID). CPGIDs are
printer-resident code pages and have numbers for names (for example, 259 or 500).
Generally, printers with resident fonts use CPGIDs to name the printer-resident
code pages. CPGIDs are also used within CHRIDs.
If you choose to use code pages with your applications, you must also specify a
font character set (by providing a value for the FNTCHRSET parameter of the
printer file being used).
These graphic character sets and code pages (CHRIDs) are used for fonts that are
resident on the printer. They are used in conjunction with a font ID to obtain a
resident font.
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 395
Some graphic character sets identify a character set that is a subset of the
code page. Others identify a character set that is equivalent to the code
page.
500 This is the name of the code page.
Selecting CHRIDs
CHRIDs are selected by specifying a certain value for the character identifier
(CHRID) parameter of the printer file. Additionally, a font ID value must be
specified for the FONT parameter on the printer file.
Substituting CHRIDs
If the CHRID is not available on the printer your application is using, the AS/400
system will substitute the CHRID that most closely matches the one requested by
the application.
Coded Fonts
A coded font is the pairing of a font character set and a code page. Coded fonts
allow users to specify a font character set and a code page with one value specified
on the printer file.
Coded fonts available on the AS/400 system can be viewed by using the Work
with Font Resources (WRKFNTRSC) command.
Coded font names are read by the AS/400 system and then translated to a font
character set and a code page. These two elements are then sent to the printer.
Coded font names on the AS/400 system are 6 or 8 characters long. Each character
or group of characters tells something about the coded font.
To find out which font character set and code page make up a coded font name,
use the Work with Font Resources (WRKFNTRSC) command. This command
allows you to specify the font resource to be worked with, the library it is in, and
the attribute (coded font).
Additional naming conventions have been adopted to more explicitly name the
code page used with a character set.
You can use the Work with Font Resources (WRKFNTRSC) command to view the
coded fonts that are available on the AS/400 system.
| You can use the MAPIGCFNT on the CRTPSFCFG and CHGPSFCFG commands to
| specify coded font names of the form X0nnnnnn should be mapped to XZnnnnnn.
| If the XZnnnnnn coded font is found it is used, if it is not found the X0nnnnnn
| coded font will be used.
Font Capturing
Font capturing refers to the ability of a printer to dynamically capture a host
downloaded font. In previous releases, downloaded fonts were saved across jobs,
but not across instances of the printer writer. With PSF/400 V4R2, the printer can
capture a host downloaded font, if it supports the font capturing function. The
captured font then appears like a printer-resident font, even if the printer has been
powered off and back on. On the next instance of the printer writer, the need for
subsequent font downloads is eliminated. The amount of data sent through the
network is thereby reduced.
Captured fonts remain on the printer for an indefinite amount of time. The printer
retains captured fonts until the space they occupy is needed for something else.
The decision to discard captured fonts is made by the printer and is not under the
control of the host printer writer.
Note: Even though a font may have been captured, the host font must still remain
on the system because the printer may discard fonts to free up space, and
the font may need to be reloaded. In addition, users must still have
authority to the font object on the host in order to use it.
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 397
is eligible for capture as well as a time and date stamp. The process of making a
font eligible for capture is also called marking a font in some IBM operating
environments.
Fonts supplied with the IBM AFP Font Collection(5648-113) are eligible to be
captured as is. There is no need to use the CHGFNTRSC command to make them
eligible.
Fonts that are created with the OS/2 Type Transformer, can be made eligible for
capture by selecting the Capture check box in the Typeface Descriptions dialog
box.
Eligibility Rules
Some fonts, especially very old fonts and custom built fonts, contain a value of
zero for the Graphic Character Set Global Identifier (GCSGID) and Font Global
Identifier (FGID) (both from the Font Descriptor (FND) structured field). Non-zero
values for these fields is necessary to allow capturing. In these cases, the
CRTFNTRSC command, or theCHGFNTRSC command will fail with a message
indicating that the font was not marked as eligible for capture. These fonts will
continue to be downloaded to the printer as usual.
Inline Fonts
Font resources that are sent inline with the print job are not eligible for capture
and will always be downloaded.
Raster Fonts
For raster technology fonts, both the character set and the code page must be
eligible for capturing for capturing to occur. If either is marked ineligible, or does
not contain sufficient information to uniquely identify it, then the font will be
downloaded.
Outline Fonts
In contrast with raster technology fonts, outline technology font character sets and
code pages are captured independently of each other. For example, a code page
could be captured, while a character set that is marked ineligible would be
downloaded.
Considerations
Before using the font capturing function, make sure that you understand the
considerations that are discussed in this section. Failure to do so may cause
unpredicatable results, even for users of another system who may be sharing the
printer.
When the configuration object has FNTCAPTURE(*YES), PSF uses this identifying
information from the font to query the printer to see if it has a font with the same
identifiers.
Because the identity of a font resource is carried within the font structured fields, it
is imperative that the modified or customized fonts be remarked to distinguish
them from the original font resource. Renaming a modified font, or placing it into
a different library does not change the identity of a font as far as font capture is
concerned. If a code page or character set that is marked eligible for capture is
modified, the resource must be remarked by using the CHGFNTRSC command so
that a new time and date stamp will be inserted into the resource. Failing to do so
will result in the modified font resource still having the exact same identifiers as
the original font resource. Having more than one font resource with the same
identifying information makes it impossible to predict which one of the two
resources will actually be used. This is especially important when a font resource
exists in more than one library on the system, and when a font resource exists on
multiple systems.
Guidelines
When using font capturing, make sure you know where the font resources are
coming from. Consider the following suggestions to reduce the chance of
unwanted font resources being captured by the printer.
1. Run the CHGFNTRSC command to update the time and date stamp for all
modified font resources. If a modified font resource is not appropriate for use
by everyone, including users from another system who share the printer, it
should be marked as not eligible for capture.
2. Treat font resources, and the commands that operate on them as system
resources to be used only by those users who need them. Allowing users to
make personal copies of font resources increases the risk of having different
fonts with the same identifying information.
3. To prevent font resources in user libraries from being captured, the PSF
configuration object may be configured with USRRSCLIBL(*NONE). This
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 399
causes the printer writer to ignore the user resource library list and search only
those libraries in the resource library list.
4. If you are concerned about modified font resources in user libraries, or are
sharing a printer with another system, you can take the following steps to
assure that the writer does not use captured fonts. This may be appropriate for
critical production jobs.
a. Turn off the capturing function by setting FNTCAPTURE(*NO) in the PSF
Configuration object. This prevents any fonts from being captured and also
assures that no captured resources will be used in the printer writer.
b. Run the CHGFNTRSC command with FNTCAPTURE(*NO) against the font
resources used by the production jobs. This assures that the font resource
will be downloaded, and that a captured font resource is never used.
Security
Do not mark sensitive fonts, such as signatures and MICR fonts, as eligible to be
captured. This is because there is no means for the host to clear captured fonts
from the printer, and it is possible that an unauthorized person could access the
captured font, even from another system.
Font Attributes
Font attributes are characteristics about a font that combine to give a font identity.
An example of a font attribute would be bold or italic.
Font Substitution
Table 36 on page 413 contains font ID substitution information which identifies
which fonts are supported by certain printers.
For example: if your application specified a certain font ID that your printer did
not support, you could find out which printers support that font and route your
printed output to a printer that supports that font ID. Also, this table provides
information on what fonts are substituted if the font id is not supported by the
printer the document is routed to.
For example, one range in the table is all font IDs greater than 0 but less than or
equal to 65. These fonts are all Roman medium, 10 pitch fonts. The default font is
Courier Roman medium, 10 pitch.
By using this table, you can identify which font ID is substituted for any font ID
that is not in Table 36 on page 413.
You need to use this table only if you cannot find your font ID in Table 36 on
page 413.
These printers do not support downloading of font character sets. These printers
use font IDs. When the printer writer program sends the spooled file to one of
these printers, a substitution from font character sets to font global identifiers
(FGIDs) takes place.
A substitution occurs if: the host resident font character set, or code page, cannot
be found on the AS/400 system, and your printer supports printer resident fonts
as well as host resident fonts. The system substitutes from host resident font
character set to FGID. This is true for the printers that are listed above except for
the: 3112, 3116, 3130, 3160–001, 3812, 3816, 3912, 3916, 3930, 3935, 4028, 4312, 4317,
and the 4324 printer. It is also true for the InfoPrint 20, InfoPrint 32, InfoPrint 60,
InfoPrint 3000, and InfoPrint 4000 printers. This is true of host resident code pages
to CPGIDs as well.
Go to Table 38 on page 426 to find out which FGID is substituted for each font
character set.
The font character sets reside on the AS/400 system. When the printer writer
program sends the spooled file to one of these printers, a substitution from FGIDs
to font character sets takes place.
Go to Table 39 on page 452 to find out which host font character set is substituted
for each FGID.
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 401
These printers support code page names, but not CPGIDs.
When the printer writer program sends the spooled file to one of these printers, a
substitution from CPGID to code page name takes place.
Go to Table 40 on page 469 to find out which code page name is substituted for
each CPGID.
When the printer writer program sends the spooled file to one of these printers, a
substitution from code page name to CPGID takes place.
A substitution occurs if: the host resident font character set, or code page, cannot
be found on the AS/400 system and your printer supports printer resident fonts as
well as host resident fonts. The system substitutes from host resident font character
set to FGID. This is true for the printers that are listed above except for the: 3112,
3116, 3130, 3160–001, 3812, 3816, 3912, 3916, 3930, 3935, 4028, 4312, 4317, and the
4324 printer. It is also true for the InfoPrint 20, InfoPrint 32, InfoPrint 60, InfoPrint
3000, and InfoPrint 4000 printers. This is true of host resident code pages to
CPGIDs as well.
Go to Table 38 on page 426 to find out which FGID is substituted for each font
character set.
Go to Table 42 on page 484 to find out which CPGID is substituted for each code
page name.
Types of Fonts: The following diagram identifies the types of fonts and gives
examples of each type:
v Mixed pitch fonts which simulate proportionally spaced fonts.
Characters in the font have a limited number of widths. Overall spacing is about
12 characters per inch. Examples are Document or Essay fonts.
v Uniformly spaced fonts which are similar to typewriter fonts.
Characters in the font are all the same width. Examples are Courier and Gothic
Text fonts. Some uniformly spaced fonts and many typographic fonts are
scalable. For scalable fonts, specify a point size to indicate the size of the font.
For example a 12 point uniformly spaced font corresponds to 10 CPI. An
example of such a font is font 416, Courier Roman Medium. If no point size is
specified when using scalable fonts, 10 point is defaulted.
v Typographic fonts
Typographic fonts have variable height, measured in points (1 point = 1/72
inch). Therefore, a 36-point font has characters that are 1/2 inch high.
Typographic fonts have variable widths. Width is part of the design and varies
on a character-by-character basis. Examples are Sonoran Serif and Century
Schoolbook.
Mixed Pitch
Uniformly Spaced
Typographic
RV2H301-2
The legend and table below provide information about each font. This information
could save you time in trial-and-error testing when choosing a font for your
application.
Table Legend
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 403
Table Legend
S = Scalable
S = Scalable
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 405
Table 35. Font Information (continued)
Type of Pitch
FGID Name Font Attributes Point (CPI)
159 Boldface M b 12
160 Essay M 12
162 Essay Italic M i 12
163 Essay Bold M b 12
164 Prestige M 12
167 Barak M 12
168 Barak Bold M b 12
173 Essay M 12
174 Gothic M 12
175 Document M 12
178 Barak M 18
179 Barak Bold M b 18
180 Barak M 15
181 Barak Mixed Bold M b 15
182 Barak M 5
183 Barak Bold M b 5
186 Press Roman M 12
187 Press Roman Bold M b 12
188 Press Roman Italic M i 12
189 Press Roman Italic M bi 12
Bold
190 Foundry M 12
191 Foundry Bold M b 12
194 Foundry Italic M i 12
195 Foundry Italic Bold M bi 12
203 Data 1 U 13
204 Matrix Gothic U 13
205 Matrix Gothic U 13
211 Shalom U 15
212 Shalom Bold U b 15
221 Prestige U 15
222 Gothic U 15
223 Courier U 15
225 Symbol U 15
226 Shalom U 15
229 Serif U 15
230 Gothic U 15
232 Matrix Gothic U 15
233 Matrix Courier U 15
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 407
Table 35. Font Information (continued)
Type of Pitch
FGID Name Font Attributes Point (CPI)
752 Nasseem T 12P 18
753 Nasseem Bold T b 12P 18
754 Nasseem Bold T b 18P 12
755 Nasseem Bold T b 24P 9
756 Nasseem Italic T i 12P 18
757 Nasseem Bold Italic T bi 12P 18
758 Nasseem Bold Italic T bi 18P 12
759 Nasseem Bold Italic T bi 24P 9
760 Times Roman T 6P 36
761 Times Roman Bold T b 12P 18
762 Times Roman Bold T b 10P 15
763 Times Roman Italic T i 12P 18
764 Times Roman Bold T bi 10P 21
Italic
765 Times Roman Bold T bi 12P 18
Italic
1051 Sonoran Serif T 10P 21
1053 Sonoran Serif Bold T b 10P 21
1056 Sonoran Serif Italic T i 10P 21
1351 Sonoran Serif T 12P 18
1653 Sonoran Serif Bold T b 13
1803 Sonoran Serif Bold T b 18P 12
2103 Sonoran Serif Bold T b 24P 9
2304 Helvetica Roman T S S
Medium
2305 Helvetica Roman Bold T b S S
2306 Helvetica Roman Italic T i S S
2307 Helvetica Roman Italic T bi S S
Bold
2308 Times New Roman T S S
Medium
2309 Times New Roman T b S S
Bold
2310 Times New Roman T i S S
Italic
2311 Times New Roman T bi S S
Italic Bold
4407 Sonoran Serif T 8P *27
4407 Sonoran Serif T 10P *21
4407 Sonoran Serif T 12P *18
4427 Sonoran Serif Bold T b 10P *21
4427 Sonoran Serif Bold T b 16P *13
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 409
Table 35. Font Information (continued)
Type of Pitch
FGID Name Font Attributes Point (CPI)
8503 Baskerville T 10P *21
8503 Baskerville T 12P *18
8523 Baskerville Bold T b 10P *21
8523 Baskerville Bold T b 14P *15
8523 Baskerville Bold T b 18P *12
8631 Baskerville Italic T i 10P *21
8651 Baskerville Italic Bold T bi 10P *21
8759 Nasseem T 12P *18
8779 Nasseem Bold T b 12P *18
8779 Nasseem Bold T b 18P *12
8779 Nasseem Bold T b 24P *9
8887 Nasseem Italic T i 12P *18
8907 Nasseem Italic Bold T bi 12P *18
8907 Nasseem Italic Bold T bi 18P *12
8907 Nasseem Italic Bold T bi 24P *9
12855 Narkisim T 8P *27
12855 Narkisim T 10P *21
12855 Narkisim T 18P *12
12855 Narkisim T 24P *9
12875 Narkisim Bold T b 8P *27
12875 Narkisim Bold T b 10P *21
12875 Narkisim Bold T b 12P *18
16951 Century Schoolbook T 6P *36
16951 Century Schoolbook T 8P *27
16951 Century Schoolbook T 10P *21
16951 Century Schoolbook T 12P *18
16971 Century Schoolbook T b 10P *21
Bold
16971 Century Schoolbook T b 14P *15
Bold
16971 Century Schoolbook T b 18P *12
Bold
17079 Century Schoolbook T i 10P *21
Italic
17099 Century Schoolbook T bi 10P *21
Italic Bold
20224 Boldface T b S S
33335 Optima T 6P *36
33335 Optima T 8P *27
33335 Optima T 10P *21
33335 Optima T 12P *18
Font Substitution
Font substitution is done by the AS/400 system when the application specifies a
font ID that is not supported by the designated printer or cannot be downloaded
from the AS/400 system to the designated printer.
Table 36 on page 413 lists many fonts (by FGID number) and printers that are
supported. A blank in any column indicates that the font ID is supported by that
printer, and no substitution takes place. However, if your application specifies a
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 411
font ID that is not in the table, you need to refer to Table 37 on page 425. Table 37
on page 425 provides the substituted FGID for font IDs in ranges such as FGID 0
through FGID 65.
How To Use the Font Substitution Charts: Following are three examples to
familiarize you with font substitution on the AS/400 system.
v Example one shows how to verify whether or not your font ID is supported by a
certain printer.
v Example two shows how to find out what font ID the AS/400 system substitutes
if the printer you want to use does not support your font ID.
v Example three shows how to find out what font ID the AS/400 system
substitutes if your font ID is not available on the AS/400 system or on the
printer.
Example One: If you want to verify that a font ID is supported by a certain printer,
locate the font ID in Table 36 on page 413. For example, locate font ID 112. Font ID
112 is supported by the 3812 and 3816 SCS and IPDS printers and the 4028 printer
(this is indicated by blanks in those spaces). The 4019 printer supports font ID 112
on a font card resident in the 4019 printer. The 4224, 4234, and 5219 printers
substitute font ID 87 or 86.
Note: A font card is a hardware card that can have many font character sets
resident on it. Font cards can be installed in printers to provide additional
fonts.
Example Two: If your application uses a font ID that is not supported on all
printers, you can determine the substitution by looking in Table 36 on page 413. For
example, locate font ID 30. The table shows that font ID 30 is supported on the
3812 and 3816 SCS and IPDS printers. However, if you are using any of the other
printers listed in the table, font ID 11 is substituted for font ID 30.
Example Three: Let us say your application calls for font ID 4 and you want to
print the spooled file on a 4224 printer. To determine if font ID 4 is a supported
font or one that is substituted for, read through the following steps:
Step 1 Look in Table 36 on page 413 to see if font ID 4 is listed. Font ID 4 is not in
Table 36 on page 413.
Step 2 Next, look in Table 37 on page 425. The table shows that font ID 11 is
substituted for fonts 0 through 65.
Step 3 Return to Table 36 on page 413 and locate font ID 11. This table shows that
font ID 11 is supported on the 4224 printer.
Step 4 The result of the font ID substitution is that your application will print
using font ID 11.
Changing Font IDs: To permanently change the font ID, you could, in your
application, specify a different font ID or use the Change Printer File (CHGPRTF)
command to specify a new font ID for the printer file. Information in Table 35 on
page 404 ID.
To temporarily change the font ID for your application, you could override the
font selection in your printer file by using the Override with Printer File
(OVRPRTF) command before the application runs.
Font Substitution and the 4019 Printer: The 4019 printer is supported by the
AS/400 system, as an emulated printer (usually 3812 or 5219). The AS/400 system
For more information and examples on how the QWP4019 program works, see
Table 29 on page 324.
Note to Reader:
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 413
Table 36. Font Substitution (continued)
Printers
| 3112
| 3116
| 3912
| 3916
| 4028
| 4312 3130
| 4317 3160
| 4324 3935
| InfoPrint InfoPrint
| 4224 3812 or 3812 or 20, 3000
| 4230 4234 3816 3816 InfoPrint InfoPrint
| FGID IPDS IPDS SCS IPDS 5219 32 40191 4000
40 26 26 11 11 11 *304
41 11 26 11 11 11 11
42 11 26 11 11 11 11
43 11 26 11 18 11 18
44 11 11 11 11 11 *304
46 11 26 11
49 26 26 26 26 11 *416
50 26 26 26 46 *420
51 26 26 11 11 11
52 11 11 11 11 11
55 26 26 26 26 46 46 *420
61 11 11 11 11 11 11 *416
62 11 11 11 11 11 18 *424
63 11 11 11 11 11 46 *420
64 11 11 11 11 11 46 *428
66 87 87 87 85 85 *304
68 87 87 87 92 85 92
69 87 87 87 111 85 111
70 87 87 87 85 85 85
71 87 87 87 92 85 92
72 87 87 87 111 85 111
74 87 87 87 87 85 85 85
75 85 85 85 85 85 85 85
76 85 85 85 85 85
78 85 85 85 85 85 85 *304
80 87 87 85 85
2
84 87 87 85 85
85
86 87 87
87 852 *400
2
91 87 87 92 92
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 415
Table 36. Font Substitution (continued)
Printers
| 3112
| 3116
| 3912
| 3916
| 4028
| 4312 3130
| 4317 3160
| 4324 3935
| InfoPrint InfoPrint
| 4224 3812 or 3812 or 20, 3000
| 4230 4234 3816 3816 InfoPrint InfoPrint
| FGID IPDS IPDS SCS IPDS 5219 32 40191 4000
183 *11 *11 *244 *11 *46 *46 *420
2
186 160 160 160 160 160 164 159
2
187 160 160 160 160 160 159 159
2
188 160 160 160 160 160 164 159
2
189 160 160 160 160 160 159 159
2
190 160 160 160 160 160 164 159
2
191 160 160 160 160 160 159 159
2
194 160 160 160 160 160 164 159
2
195 160 160 160 160 160 159 159
203 *222 204 204 204 *222 *254 *416
204 *222 *222 *223 *254 *304
205 *222 204 204 *222 *223 *254 *416
211 222 222 230 222 223 *254 *416
212 222 222 230 222 223 *254 *420
221 222 222
222 230 230 2232 *304
223
225 222 222 223 *254 223
226 222 222 230 222 223 *416
229 222 222 222 223 *254 223
230 222 222 222 223 *254 *304
232 222 230 230 222 223 *254 *223
233 223 230 230 223 223 *254 223
234 222 222 230 222 223 *254 *420
244 *11 *26 *11 *11 *416
245 *11 *26 *11 *46 *420
247 *400 *258 252 *222 254 254 *420
248 *400 *258 252 *222 254 254 *416
249 *400 *258 252 252 *222 254 *304
252 *400 *258 *222 254 254 254
253 *400 *258 *222 254 254 *420
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 417
Table 36. Font Substitution (continued)
Printers
| 3112
| 3116
| 3912
| 3916
| 4028
| 4312 3130
| 4317 3160
| 4324 3935
| InfoPrint InfoPrint
| 4224 3812 or 3812 or 20, 3000
| 4230 4234 3816 3816 InfoPrint InfoPrint
| FGID IPDS IPDS SCS IPDS 5219 32 40191 4000
754 *85 *85 *85 *85 *85 *85 *2309
755 *11 *11 *11 *11 *11 *46 *2309
756 *400 *258 *281 *281 *222 *254 *2310
757 *400 *258 *281 *281 *222 *254 *2311
758 *85 *85 *85 *85 *85 *85 *2311
759 *11 *11 *11 *11 *11 *46 *2311
760 *400 *258 *290 *290 *222 *254
761 *400 *258 *281 *281 *222 *254
762 *222 *222 *230 *230 *222 *254
763 *400 *258 *281 *281 *222 *254
764 *400 *258 *290 *290 *222 *254
765 *400 *258 *281 *281 *222 *254
1051 *400 *258 *222 *254
1053 *400 *258 *222 *254
1056 *400 *258 *222 *254
1351 *400 *258 *222 *254
1653 *222 *222 *222 *254 *2309
1803 *85 *85 *85 *85 *85 *85
2103 *11 *11 *11 *46
2304 *400 *258 *290 *290 *222 *760 *254
2305 *400 *258 *281 *281 *222 *761 *254
2306 *400 *258 *281 *281 *222 *763 *254
2307 *400 *258 *280 *290 *222 *764 *254
2308 *400 *258 *290 *290 *222 *760 *254
2309 *400 *258 *281 *281 *222 *761 *254
2310 *400 *258 *281 *281 *222 *763 *254
2311 *400 *258 *290 *290 *222 *764 *254
2
4407 *400 *258 *222 5687 *254 *2308
(8P)
4407 *400 *258 *222 56872 *254 *2308
(10P)
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 419
Table 36. Font Substitution (continued)
Printers
| 3112
| 3116
| 3912
| 3916
| 4028
| 4312 3130
| 4317 3160
| 4324 3935
| InfoPrint InfoPrint
| 4224 3812 or 3812 or 20, 3000
| 4230 4234 3816 3816 InfoPrint InfoPrint
| FGID IPDS IPDS SCS IPDS 5219 32 40191 4000
5707 *400 *258 *1053 *1053 *222
(10P)
5707 *400 *258 *1351 *1351 *222 *254
(12P)
5707 *222 *222 *1351 *1351 *222
(14P)
5707 *85 *85 *1653 *1653 *85
(18P)
5707 *11 *11 *2103 *2103 *11
(24P)
5815 *400 *258 *1056 *1056 *222
(10P)
5815 *400 *258 *1351 *1351 *222 *254
(12P)
5835 *400 *258 *1053 *1053 *222
(10P)
5835 *400 *258 *1351 *1351 *222
(12P)
5943 *400 *258 *1351 *1351 *222 56872 *2308
(12P)
5943 *222 *222 *1351 *1351 *222 57072 *2308
(14P)
5943 *85 *85 *1653 *1653 *85 57072 *2308
(18P)
6199 *400 *258 *290 *290 *222 56872 *2308
(6P)
6199 *400 *258 *751 *751 *222 56872 *2308
(8P)
6199 *400 *258 *1051 *1051 *222 56872 *2308
(10P)
6199 *400 *258 *1351 *1351 *222 56872 *2308
(12P)
6219 *400 *258 *1053 *1053 *222 56872 *2309
(10P)
6219 *222 *222 *1351 *1351 *222 57072 *2309
(14P)
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 421
Table 36. Font Substitution (continued)
Printers
| 3112
| 3116
| 3912
| 3916
| 4028
| 4312 3130
| 4317 3160
| 4324 3935
| InfoPrint InfoPrint
| 4224 3812 or 3812 or 20, 3000
| 4230 4234 3816 3816 InfoPrint InfoPrint
| FGID IPDS IPDS SCS IPDS 5219 32 40191 4000
8907 *85 *85 *1653 *1653 *85 57072 *2311
(18P)
8907 *11 *11 *2103 *2103 *11 57072 *2311
(24P)
12855 *400 *258 *751 *222 56872 *2308
(8P)
12855 *400 *258 *1051 *1051 *222 56872 *2308
(10P)
12855 *85 *85 *1653 *1653 *85 57072 *2308
(18P)
12855 *11 *11 *2103 *2103 *11 57072 *2308
(24P)
12875 *400 *258 *751 *222 56872 *2309
(8P)
12875 *400 *258 *1053 *1053 *222 56872 *2309
(10P)
12875 *400 *258 *1351 *1351 *222 56872 *2309
(12P)
16951 *400 *258 *290 *290 *222 56872 *2308
(6P)
16951 *400 *258 *751 *751 *222 56872 *2308
(8P)
16951 *400 *258 *1051 *1051 *222 56872 *2308
(10P)
16951 *400 *258 *1351 *1351 *222 56872 *2308
(12P)
16971 *400 *258 *1053 *1053 *222 56872 *2309
(10P)
16971 *222 *222 *1351 *1351 *222 57072 *2309
(14P)
16971 *85 *85 *1653 *1653 *85 57072 *2309
(18P)
17079 *400 *258 *1056 *1056 *222 56872 *2311
(10P)
17099 *400 *258 *1053 *1053 *222 56872 *2311
(10P)
20224 *160 *160 *159 *159 *159 *159 *159
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 423
Table 36. Font Substitution (continued)
Printers
| 3112
| 3116
| 3912
| 3916
| 4028
| 4312 3130
| 4317 3160
| 4324 3935
| InfoPrint InfoPrint
| 4224 3812 or 3812 or 20, 3000
| 4230 4234 3816 3816 InfoPrint InfoPrint
| FGID IPDS IPDS SCS IPDS 5219 32 40191 4000
34103 *400 *258 *290 *290 *222 56872 *2304
(6P)
34103 *400 *258 *751 *751 *222 56872 *2304
(8P)
34103 *400 *258 *1051 *1051 *222 56872 *2304
(10P)
34103 *400 *258 *1351 *1351 *222 56872 *2304
(12P)
34123 *400 *258 *1053 *1053 *222 56872 *2305
(10P)
34123 *222 *222 *1351 *1351 *222 57072 *2305
(14P)
34123 *85 *85 *1653 *1653 *85 57072 *2305
(18P)
34231 *400 *258 *1056 *1056 *222 56872 *2306
(10P)
34251 *400 *258 *1053 *1053 *222 56872 *2307
(10P)
37431 *400 *258 *1351 *1351 *222 56872 *2308
(12)
37431 *222 *222 *1351 *1351 *222 57072 *2308
(14P)
37431 *85 *85 *1653 *1653 *85 57072 *2308
(18P)
41783 *400 *258 *1351 *1351 *222 56872 *2308
(12P)
41803 *222 *222 *1351 *1351 *222 57072 *2309
(14P)
41803 *85 *85 *1653 *1653 *85 57072 *2309
(18P)
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 425
Table 37. Font Substitution by Font ID Range. (continued)
FGID Substituted FGID
Fonts with point size equal to 0 or not 252
specified
Fonts with point size greater 5687-6p
than 0 but less than 7.6
Fonts with point size greater 5687-8p
than or equal to 7.6 but less than 9.6
Fonts 2304 Fonts with point size greater 5687-10p
through 3839 than or equal to 9.6 but less than 11.6
or
Fonts 4069 Fonts with point size greater 5687-12p
through 65279 than or equal to 11.6 but less than 13.6
Fonts with point size greater 5707-14p
than or equal 13.6 but less than 17.6
Fonts with point size greater 5707-18p
than or equal to 17.6 but less than 23.6
Fonts with point size greater than or 5707-24p
equal to 23.6
Fonts 3840 through 4095 (User-defined) No Substitution
Fonts 65280 through 65534 (User-definded) No Substitution
The following table can help you determine what printer resident font character set
is requested when your spooled file references a host resident font character set
instead of a registered font identifier (ID). This font substitution is necessary
because these printers do not support the downloading of 240-pel host resident
font character sets. Depending upon the host resident font character set that is
requested, the appropriate registered ID value, font width value, and font
attributes are selected to match (as closely as possible) your font request.
The font width specifies the width of the blank character in 1440ths of an inch.
This is an indicator of how many characters will fit per inch of space on the paper.
The Map Fidelity indicates whether or not the substituted printer resident font is
considered to be an exact match to the font character set that is requested in your
spooled file.
Table 38. Host Resident to Printer Resident Font Character Set Mapping
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0A053A0 33077 73 Normal Exact
C0A053B0 33077 80 Normal Exact
C0A053D0 33077 93 Normal Exact
C0A053F0 33077 107 Normal Exact
C0A053H0 33077 120 Normal Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 427
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0A05790 33081 60 Normal Exact
C0A073A0 33097 73 Bold Exact
C0A073B0 33097 80 Bold Exact
C0A073D0 33097 93 Bold Exact
C0A073F0 33097 107 Bold Exact
C0A073H0 33097 120 Bold Exact
C0A073J0 33097 133 Bold Exact
C0A073N0 33097 160 Bold Exact
C0A073T0 33097 200 Bold Exact
C0A073Z0 33097 240 Bold Exact
C0A07300 33097 67 Bold Exact
C0A07360 33097 40 Bold Exact
C0A07370 33097 47 Bold Exact
C0A07380 33097 53 Bold Exact
C0A07390 33097 60 Bold Exact
C0A075A0 33099 73 Bold Exact
C0A075B0 33099 80 Bold Exact
C0A075B1 33099 320 Bold Exact
C0A075D0 33099 93 Bold Exact
C0A075F0 33099 107 Bold Exact
C0A075H0 33099 120 Bold Exact
C0A075J0 33099 133 Bold Exact
C0A075N0 33099 160 Bold Exact
C0A075N1 33099 400 Bold Exact
C0A075T0 33099 200 Bold Exact
C0A075Z0 33099 240 Bold Exact
C0A075Z1 33099 480 Bold Exact
C0A07500 33099 67 Bold Exact
C0A07560 33099 40 Bold Exact
C0A07570 33099 47 Bold Exact
C0A07580 33099 53 Bold Exact
C0A07590 33099 60 Bold Exact
C0A077A0 33101 73 Bold Exact
C0A077B0 33101 80 Bold Exact
C0A077D0 33101 93 Bold Exact
C0A077F0 33101 107 Bold Exact
C0A077H0 33101 120 Bold Exact
C0A077J0 33101 133 Bold Exact
C0A077N0 33101 160 Bold Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 429
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0A175B0 33227 80 Bold Italic Exact
C0A175B1 33227 320 Bold Italic Exact
C0A175D0 33227 93 Bold Italic Exact
C0A175F0 33227 107 Bold Italic Exact
C0A175H0 33227 120 Bold Italic Exact
C0A175J0 33227 133 Bold Italic Exact
C0A175N0 33227 160 Bold Italic Exact
C0A175N1 33227 400 Bold Italic Exact
C0A175T0 33227 200 Bold Italic Exact
C0A175Z0 33227 240 Bold Italic Exact
C0A175Z1 33227 480 Bold Italic Exact
C0A17500 33227 67 Bold Italic Exact
C0A17560 33227 40 Bold Italic Exact
C0A17570 33227 47 Bold Italic Exact
C0A17580 33227 53 Bold Italic Exact
C0A17590 33227 60 Bold Italic Exact
C0BPOSA0 323 120 Normal Exact
C0BPOSBN 323 240 Normal Exact
C0BPOSB0 323 168 Normal Exact
C0BPOS91 323 144 Normal Exact
C0B20CA0 335 73 Normal Exact
C0B20CB0 335 80 Normal Exact
C0B20CD0 335 93 Normal Exact
C0B20CF0 335 107 Normal Exact
C0B20CH0 335 120 Normal Exact
C0B20CJ0 335 133 Normal Exact
C0B20CN0 335 160 Normal Exact
C0B20CT0 335 200 Normal Exact
C0B20CZ0 335 240 Normal Exact
C0B20C00 335 67 Normal Exact
C0B20C50 335 33 Normal Exact
C0B20C60 335 40 Normal Exact
C0B20C70 335 47 Normal Exact
C0B20C80 335 53 Normal Exact
C0B20C90 335 60 Normal Exact
C0B200A0 335 73 Normal Exact
C0B200B0 335 80 Normal Exact
C0B200D0 335 93 Normal Exact
C0B200F0 335 107 Normal Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 431
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0B30080 337 53 Italic Exact
C0B30090 337 60 Italic Exact
C0B40CA0 336 73 Bold Exact
C0B40CB0 336 80 Bold Exact
C0B40CD0 336 93 Bold Exact
C0B40CF0 336 107 Bold Exact
C0B40CH0 336 120 Bold Exact
C0B40CJ0 336 133 Bold Exact
C0B40CN0 336 160 Bold Exact
C0B40CT0 336 200 Bold Exact
C0B40CZ0 336 240 Bold Exact
C0B40C00 336 67 Bold Exact
C0B40C50 336 33 Bold Exact
C0B40C60 336 40 Bold Exact
C0B40C70 336 47 Bold Exact
C0B40C80 336 53 Bold Exact
C0B40C90 336 60 Bold Exact
C0B400A0 336 73 Bold Exact
C0B400B0 336 80 Bold Exact
C0B400D0 336 93 Bold Exact
C0B400F0 336 107 Bold Exact
C0B400H0 336 120 Bold Exact
C0B400J0 336 133 Bold Exact
C0B400N0 336 160 Bold Exact
C0B400T0 336 200 Bold Exact
C0B400Z0 336 240 Bold Exact
C0B40000 336 67 Bold Exact
C0B40050 336 33 Bold Exact
C0B40060 336 40 Bold Exact
C0B40070 336 47 Bold Exact
C0B40080 336 53 Bold Exact
C0B40090 336 60 Bold Exact
C0B50CA0 338 73 Bold Italic Exact
C0B50CB0 338 80 Bold Italic Exact
C0B50CD0 338 93 Bold Italic Exact
C0B50CF0 338 107 Bold Italic Exact
C0B50CH0 338 120 Bold Italic Exact
C0B50CJ0 338 133 Bold Italic Exact
C0B50CN0 338 160 Bold Italic Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 433
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0B600B0 339 80 Reverse Exact
C0B600D0 339 93 Reverse Exact
C0B600F0 339 107 Reverse Exact
C0B600H0 339 120 Reverse Exact
C0B600J0 339 133 Reverse Exact
C0B600N0 339 160 Reverse Exact
C0B600T0 339 200 Reverse Exact
C0B600Z0 339 240 Reverse Exact
C0B60000 339 67 Reverse Exact
C0B60050 339 33 Reverse Exact
C0B60060 339 40 Reverse Exact
C0B60070 339 47 Reverse Exact
C0B60080 339 53 Reverse Exact
C0B60090 339 60 Reverse Exact
C0C055A0 16951 73 Normal Exact
C0C055B0 16951 80 Normal Exact
C0C055D0 16951 93 Normal Exact
C0C055F0 16951 107 Normal Exact
C0C055H0 16951 120 Normal Exact
C0C055J0 16951 133 Normal Exact
C0C055N0 16951 160 Normal Exact
C0C055T0 16951 200 Normal Exact
C0C055Z0 16951 240 Normal Exact
C0C05500 16951 67 Normal Exact
C0C05560 16951 40 Normal Exact
C0C05570 16951 47 Normal Exact
C0C05580 16951 53 Normal Exact
C0C05590 16951 60 Normal Exact
C0C075A0 16971 73 Bold Exact
C0C075B0 16971 80 Bold Exact
C0C075D0 16971 93 Bold Exact
C0C075F0 16971 107 Bold Exact
C0C075H0 16971 120 Bold Exact
C0C075J0 16971 133 Bold Exact
C0C075N0 16971 160 Bold Exact
C0C075T0 16971 200 Bold Exact
C0C075Z0 16971 240 Bold Exact
C0C07500 16971 67 Bold Exact
C0C07560 16971 40 Bold Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 435
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0D0GR10 310 144 Normal Not Exact
C0D0GT10 40 144 Normal Exact
C0D0GT12 66 120 Normal Exact
C0D0GT13 203 108 Normal Exact
C0D0GT15 230 96 Normal Exact
C0D0GT18 275 78 Normal Not Exact
C0D0GT20 281 72 Normal Exact
C0D0GT24 290 54 Normal Exact
C0D0RT10 41 144 Normal Exact
C0D0SB12 72 120 Bold Exact
C0D0SI10 43 144 Italic Exact
C0D0SI12 71 120 Italic Exact
C0D0SO12 332 120 Normal Not Exact
C0D0ST10 42 144 Normal Exact
C0D0ST12 70 120 Normal Exact
C0D0ST15 229 96 Normal Exact
C0G055A0 4663 73 Normal Exact
C0G055B0 4663 80 Normal Exact
C0G055D0 4663 93 Normal Exact
C0G055F0 4663 107 Normal Exact
C0G055H0 4663 120 Normal Exact
C0G055J0 4663 133 Normal Exact
C0G055N0 4663 160 Normal Exact
C0G055T0 4663 200 Normal Exact
C0G055Z0 4663 240 Normal Exact
C0G05500 4663 67 Normal Exact
C0G05560 4663 40 Normal Exact
C0G05570 4663 47 Normal Exact
C0G05580 4663 53 Normal Exact
C0G05590 4663 60 Normal Exact
C0G075A0 4683 73 Bold Exact
C0G075B0 4683 80 Bold Exact
C0G075D0 4683 93 Bold Exact
C0G075F0 4683 107 Bold Exact
C0G075H0 4683 120 Bold Exact
C0G075J0 4683 133 Bold Exact
C0G075N0 4683 160 Bold Exact
C0G075T0 4683 200 Bold Exact
C0G075Z0 4683 240 Bold Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 437
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0H200N0 2304 160 Normal Exact
C0H200T0 2304 200 Normal Exact
C0H200Z0 2304 240 Normal Exact
C0H20000 2304 67 Normal Exact
C0H20060 2304 40 Normal Exact
C0H20070 2304 47 Normal Exact
C0H20080 2304 53 Normal Exact
C0H20090 2304 60 Normal Exact
C0H300A0 2306 73 Italic Exact
C0H300B0 2306 80 Italic Exact
C0H300D0 2306 93 Italic Exact
C0H300F0 2306 107 Italic Exact
C0H300H0 2306 120 Italic Exact
C0H300J0 2306 133 Italic Exact
C0H300N0 2306 160 Italic Exact
C0H300T0 2306 200 Italic Exact
C0H300Z0 2306 240 Italic Exact
C0H30000 2306 67 Italic Exact
C0H30060 2306 40 Italic Exact
C0H30070 2306 47 Italic Exact
C0H30080 2306 53 Italic Exact
C0H30090 2306 60 Italic Exact
C0H400A0 2305 73 Bold Exact
C0H400B0 2305 80 Bold Exact
C0H400D0 2305 93 Bold Exact
C0H400F0 2305 107 Bold Exact
C0H400H0 2305 120 Bold Exact
C0H400J0 2305 133 Bold Exact
C0H400N0 2305 160 Bold Exact
C0H400T0 2305 200 Bold Exact
C0H400Z0 2305 240 Bold Exact
C0H40000 2305 67 Bold Exact
C0H40060 2305 40 Bold Exact
C0H40070 2305 47 Bold Exact
C0H40080 2305 53 Bold Exact
C0H40090 2305 60 Bold Exact
C0H500A0 2307 73 Bold Italic Exact
C0H500B0 2307 80 Bold Italic Exact
C0H500D0 2307 93 Bold Italic Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 439
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0L00GUC 311 96 Normal Not Exact
C0L00OAB 3 144 Normal Exact
C0L00T11 333 144 Normal Not Exact
C0MO55A0 50231 73 Normal Not Exact
C0MO55B0 50231 80 Normal Not Exact
C0MO55B1 50231 320 Normal Not Exact
C0MO55D0 50231 93 Normal Not Exact
C0MO55F0 50231 107 Normal Not Exact
C0MO55H0 50231 120 Normal Not Exact
C0MO55H1 50231 360 Normal Not Exact
C0MO55J0 50231 133 Normal Not Exact
C0MO55L0 50231 147 Normal Not Exact
C0MO55N0 50231 160 Normal Not Exact
C0MO55N1 50231 400 Normal Not Exact
C0MO55R0 50231 187 Normal Not Exact
C0MO55T0 50231 200 Normal Not Exact
C0MO55V0 50231 213 Normal Not Exact
C0MO55Z0 50231 240 Normal Not Exact
C0MO55Z1 50231 480 Normal Not Exact
C0MO5500 50231 67 Normal Not Exact
C0MO5541 50231 267 Normal Not Exact
C0MO5560 50231 40 Normal Not Exact
C0MO5570 50231 47 Normal Not Exact
C0MO5580 50231 53 Normal Not Exact
C0MO5581 50231 293 Normal Not Exact
C0MO5590 50231 60 Normal Not Exact
C0MP55A0 49463 73 Normal Not Exact
C0MP55B0 49463 80 Normal Not Exact
C0MP55D0 49463 93 Normal Not Exact
C0MP55F0 49463 107 Normal Not Exact
C0MP55H0 49463 120 Normal Not Exact
C0MP55N0 49463 160 Normal Not Exact
C0MP55Z0 49463 240 Normal Not Exact
C0MP5500 49463 67 Normal Not Exact
C0MP5560 49463 40 Normal Not Exact
C0MP5570 49463 47 Normal Not Exact
C0MP5580 49463 53 Normal Not Exact
C0MP5590 49463 60 Normal Not Exact
C0MP75A0 49483 73 Bold Not Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 441
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0N200H0 2308 120 Normal Exact
C0N200J0 2308 133 Normal Exact
C0N200N0 2308 160 Normal Exact
C0N200T0 2308 200 Normal Exact
C0N200Z0 2308 240 Normal Exact
C0N20000 2308 67 Normal Exact
C0N20060 2308 40 Normal Exact
C0N20070 2308 47 Normal Exact
C0N20080 2308 53 Normal Exact
C0N20090 2308 60 Normal Exact
C0N204B0 2308 80 Normal Not Exact
C0N300A0 2310 73 Italic Exact
C0N300B0 2310 80 Italic Exact
C0N300D0 2310 93 Italic Exact
C0N300F0 2310 107 Italic Exact
C0N300H0 2310 120 Italic Exact
C0N300J0 2310 133 Italic Exact
C0N300N0 2310 160 Italic Exact
C0N300T0 2310 200 Italic Exact
C0N300Z0 2310 240 Italic Exact
C0N30000 2310 67 Italic Exact
C0N30060 2310 40 Italic Exact
C0N30070 2310 47 Italic Exact
C0N30080 2310 53 Italic Exact
C0N30090 2310 60 Italic Exact
C0N304B0 2310 80 Italic Not Exact
C0N400A0 2309 73 Bold Exact
C0N400B0 2309 80 Bold Exact
C0N400D0 2309 93 Bold Exact
C0N400F0 2309 107 Bold Exact
C0N400H0 2309 120 Bold Exact
C0N400J0 2309 133 Bold Exact
C0N400N0 2309 160 Bold Exact
C0N400T0 2309 200 Bold Exact
C0N400Z0 2309 240 Bold Exact
C0N40000 2309 67 Bold Exact
C0N40060 2309 40 Bold Exact
C0N40070 2309 47 Bold Exact
C0N40080 2309 53 Bold Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 443
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0S0AE10 26 144 Normal Exact
C0S0AE10 45 144 Normal Exact
C0S0AE20 280 72 Normal Exact
C0S0AP13 206 108 Normal Not Exact
C0S0AP20 280 72 Normal Not Exact
C0S0BITR 155 120 Italic Exact
C0S0BRTR 159 120 Normal Exact
C0S0CB10 46 144 Bold Exact
C0S0CB12 108 120 Bold Exact
C0S0CB15 214 96 Bold Exact
C0S0CD15 417 96 Double Wide Exact
C0S0CE10 11 144 Normal Not Exact
C0S0CE12 85 120 Normal Exact
C0S0CH10 37 144 Normal Not Exact
C0S0CI10 18 144 Italic Exact
C0S0CI12 92 120 Italic Exact
C0S0CI15 215 96 Italic Exact
C0S0CO10 302 144 Normal Not Exact
C0S0CR10 11 144 Normal Exact
C0S0CR12 85 120 Normal Exact
C0S0CR15 223 96 Normal Exact
C0S0CW15 425 96 Double Wide Exact
Italic
C0S0DOTR 175 120 Normal Exact
C0S0D224 203 108 Normal Exact
C0S0D225 203 108 Normal Exact
C0S0D226 201 108 Bold Exact
C0S0D227 202 108 Italic Exact
C0S0EBTR 163 120 Bold Exact
C0S0EITR 162 120 Italic Exact
C0S0ELTR 173 120 Normal Exact
C0S0EOTR 196 120 Normal Not Exact
C0S0ESTR 160 120 Normal Exact
C0S0LB12 110 120 Bold Exact
C0S0LR12 87 120 Normal Exact
C0S0OB10 38 144 Bold Exact
C0S0OR10 5 144 Normal Exact
C0S0PB12 111 120 Bold Exact
C0S0PI12 112 120 Italic Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 445
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0S155F0 29111 107 Italic Exact
C0S155H0 29111 120 Italic Exact
C0S155J0 29111 133 Italic Exact
C0S155N0 29111 160 Italic Exact
C0S155T0 29111 200 Italic Exact
C0S155Z0 29111 240 Italic Exact
C0S15500 29111 67 Italic Exact
C0S15560 29111 40 Italic Exact
C0S15570 29111 47 Italic Exact
C0S15580 29111 53 Italic Exact
C0S15590 29111 60 Italic Exact
C0S175A0 29131 73 Bold Italic Exact
C0S175B0 29131 80 Bold Italic Exact
C0S175D0 29131 93 Bold Italic Exact
C0S175F0 29131 107 Bold Italic Exact
C0S175H0 29131 120 Bold Italic Exact
C0S175J0 29131 133 Bold Italic Exact
C0S175N0 29131 160 Bold Italic Exact
C0S175T0 29131 200 Bold Italic Exact
C0S175Z0 29131 240 Bold Italic Exact
C0S17500 29131 67 Bold Italic Exact
C0S17560 29131 40 Bold Italic Exact
C0S17570 29131 47 Bold Italic Exact
C0S17580 29131 53 Bold Italic Exact
C0S17590 29131 60 Bold Italic Exact
C0T055A0 4407 73 Normal Exact
C0T055B0 4407 80 Normal Exact
C0T055B1 4407 320 Normal Exact
C0T055D0 4407 93 Normal Exact
C0T055F0 4407 107 Normal Exact
C0T055H0 4407 120 Normal Exact
C0T055J0 4407 133 Normal Exact
C0T055N0 4407 160 Normal Exact
C0T055N1 4407 400 Normal Exact
C0T055T0 4407 200 Normal Exact
C0T055Z0 4407 240 Normal Exact
C0T055Z1 4407 480 Normal Exact
C0T05500 4407 67 Normal Exact
C0T05560 4407 40 Normal Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 447
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C0T175B1 4555 320 Bold Italic Exact
C0T175D0 4555 93 Bold Italic Exact
C0T175F0 4555 107 Bold Italic Exact
C0T175H0 4555 120 Bold Italic Exact
C0T175J0 4555 133 Bold Italic Exact
C0T175N0 4555 160 Bold Italic Exact
C0T175N1 4555 400 Bold Italic Exact
C0T175T0 4555 200 Bold Italic Exact
C0T175Z0 4555 240 Bold Italic Exact
C0T175Z1 4555 480 Bold Italic Exact
C0T17500 4555 67 Bold Italic Exact
C0T17560 4555 40 Bold Italic Exact
C0T17570 4555 47 Bold Italic Exact
C0T17580 4555 53 Bold Italic Exact
C0T17590 4555 60 Bold Italic Exact
C0V055A0 33847 73 Normal Exact
C0V055B0 33847 80 Normal Exact
C0V055D0 33847 93 Normal Exact
C0V055F0 33847 107 Normal Exact
C0V055H0 33847 120 Normal Exact
C0V055J0 33847 133 Normal Exact
C0V055N0 33847 160 Normal Exact
C0V055T0 33847 200 Normal Exact
C0V055Z0 33847 240 Normal Exact
C0V05500 33847 67 Normal Exact
C0V05560 33847 40 Normal Exact
C0V05570 33847 47 Normal Exact
C0V05580 33847 53 Normal Exact
C0V05590 33847 60 Normal Exact
C0V075A0 33867 73 Bold Exact
C0V075B0 33867 80 Bold Exact
C0V075D0 33867 93 Bold Exact
C0V075F0 33867 107 Bold Exact
C0V075H0 33867 120 Bold Exact
C0V075J0 33867 133 Bold Exact
C0V075N0 33867 160 Bold Exact
C0V075T0 33867 200 Bold Exact
C0V075Z0 33867 240 Bold Exact
C0V07500 33867 67 Bold Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 449
Table 38. Host Resident to Printer Resident Font Character Set Mapping (continued)
Font Character Registered Font Font Width Font Attributes Map Fidelity
Set Name ID
C04202B0 416 144 Normal Exact
C0420200 416 120 Normal Exact
C0420270 416 84 Normal Exact
C0420280 416 96 Normal Exact
C04203B0 416 144 Normal Exact
C0420300 416 120 Normal Exact
C0420380 416 96 Normal Exact
C04204B0 416 144 Normal Exact
C0420400 416 120 Normal Exact
C0420480 416 96 Normal Not Exact
C04205B0 49 416 Normal Exact
C0420500 416 120 Normal Exact
C0420570 416 84 Normal Not Exact
C0420580 416 96 Normal Not Exact
C04300B0 424 144 Italic Exact
C04300D0 424 168 Italic Exact
C04300J0 424 240 Italic Exact
C0430000 424 120 Italic Exact
C0430070 424 84 Italic Exact
C0430080 424 96 Italic Exact
C04304B0 424 144 Italic Exact
C0430400 424 120 Italic Exact
C04400B0 420 144 Bold Exact
C04400D0 420 168 Bold Exact
C04400J0 420 240 Bold Exact
C0440000 420 120 Bold Exact
C0440070 420 84 Bold Exact
C0440080 420 96 Bold Exact
C0440200 420 120 Bold Not Exact
C0440300 420 120 Bold Not Exact
C04404B0 420 144 Bold Exact
C04404D0 420 168 Bold Not Exact
C0440470 420 84 Bold Exact
C04405B0 420 144 Bold Exact
C0440500 420 120 Bold Not Exact
C04500B0 428 144 Bold Italic Exact
C04500D0 428 168 Bold Italic Exact
C04500J0 428 240 Bold Italic Exact
C0450000 428 120 Bold Italic Exact
In the case of the 3820, 3825, 3827, 3828, 3829, 3831, 3835, and 3900 printer font IDs
are not supported. Therefore, when the spooled file is directed to these printers,
the AS/400 system substitutes font character sets that allow the spooled file to
print on these printers.
The following table can help you determine what host resident character sets (font
character sets stored on the AS/400 system) are downloaded to a 3820, 3825, 3827,
3828, 3829, 3831, 3835, or 3900 printer when your spooled file references a
registered font identifier (font ID) instead of a host resident font character set.
In the case of *CONTENT fidelity, depending upon the registered font ID value,
the font width value, and the font attributes that are requested for a particular font
reference, the appropriate host resident font character set is selected to match (as
closely as possible) your font request.
In the case of *ABSOLUTE fidelity, depending upon the registered font ID value,
the font width value, and the font attributes that are requested for a particular font
reference, the appropriate host resident font character set is selected to match
exactly your font request. The AS/400 system also ensures, for *ABSOLUTE
fidelity, that the character set is compatible with the code page when mapping
from printer resident fonts to host resident fonts.
If the FGID has an asterisk next to it, the appropriate CHRID must be specified to
match this entry in the font table regardless of what fidelity value has been
specified.
The font width specifies the width of the blank character in 1440ths of an inch.
This is an indicator of how many characters fit per inch of space on the paper.
Some FGIDs, such as 416, have multiple widths associated with them. The Font
Width column of the table is blank for these FGIDs. Also, the primary and
secondary character set names of these FGIDs have an XX in the last two positions,
which identify the size of the font. For uniformly spaced fonts, there are six
widths: 84, 96, 120, 144, 168, and 240. For typographic fonts, there are 14 widths:
40, 47, 53, 60, 67, 73, 80, 93, 107, 120, 133, 160, 200 and 240. The AS/400 system
determines whether a uniformly spaced font or a typographic font is needed and
then selects the host resident character set name based on the width provided.
The first choice is used if it is present on your AS/400 system. The second choice
is used if the first choice cannot be found. The Map Fidelity column indicates
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 451
whether or not the first choice is considered to be an exact match to the printer
resident font (font ID) that is requested in your spooled file. As a rule, the second
choice is not considered to be an exact match.
If the first choice contains a metric-only font character set name, the AS/400
system uses the second choice regardless of the fidelity setting. A metric-only font
character set name begins with the characters C0E.
If code page (CPGID) 259 (the symbol font code page) has been specified, this table
is not used. Instead, if the FGID specified is a 10-pitch font, the C0S0SYM2
character set is substituted; otherwise, if the FGID specified is anything other than
a 10-pitch font, the C0S0SYM0 character set is substituted.
Table 39. Printer Resident to Host Resident Font Character Set Mapping
Registered Font Width Font Map Fidelity Font Font
Font ID Attributes Character Set Character Set
Name (first Name
choice) (second
choice)
2 144 Normal Exact C0E0DE10 C0S0CR12
2 144 Normal Exact C0E0DE0R C0S0SYM0
3 144 Normal Exact C0L00BOA
3 144 Normal Exact C0S0SYM2
5 144 Normal Exact C0S0OR10
5 144 Bold Exact C0S0OB10
5 144 Normal Exact C0E0OR10 C0S0OR10
5 144 Normal Exact C0S0SYM2
10 144 Normal Exact C0E0CY10 C04203B0
10 144 Normal Exact C0E0CY0R C0S0SYM0
11 144 Normal Exact C0S0CR10
11 144 Bold Exact C0S0CB10
11 144 Italic Exact C0S0CI10
11 144 Normal Exact C0S0SYM2
11 144 Normal Exact C0E0CR0K C04203B0
11 144 Normal Exact C0E0CR0F C0S0CR10
11 144 Normal Exact C0E0CR0N C04203B0
11 144 Normal Exact C0E0CR0Q C04203B0
11 144 Normal Exact C0E0CR0G C04202B0
11 144 Normal Exact C0E0CR0H C04202B0
12 144 Normal Exact C0S0PR10
12 144 Normal Exact C0S0SYM2
12 144 Normal Exact C0E0PR0G C04202B0
12 144 Normal Exact C0E0PR0H C04202B0
13 144 Normal Not Exact C0S0CR10
13 144 Normal Exact C0S0SYM2
13 144 Bold Not Exact C0S0CB10
18 144 Italic Exact C0S0CI10
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 453
Table 39. Printer Resident to Host Resident Font Character Set Mapping (continued)
Registered Font Width Font Map Fidelity Font Font
Font ID Attributes Character Set Character Set
Name (first Name
choice) (second
choice)
51 144 Bold Not Exact C0S0CB10
52 144 Normal Not Exact C0S0CR10
52 144 Bold Not Exact C0S0CB10
61 144 Normal Exact C0E0NR10 C04204B0
62 144 Italic Exact C0E0NI10 C04304B0
63 144 Bold Exact C0E0NB10 C04404B0
64 144 Bold Italic Exact C0E0NM10 C04504B0
66 120 Normal Exact C0D0GT12
66 120 Bold Exact C0D0GB12
66 120 Normal Exact C0S0SYM0
68 120 Italic Exact C0D0GI12
68 120 Italic Exact C0S0SYM0
69 120 Bold Exact C0D0GB12
69 120 Bold Exact C0S0SYM0
70 120 Normal Exact C0D0ST12
70 120 Normal Exact C0S0SYM0
71 120 Italic Exact C0D0SI12
71 120 Italic Exact C0S0SYM0
72 120 Bold Exact C0D0SB12
72 120 Bold Exact C0S0SYM0
74 120 Normal Not Exact C0S0CR12
74 120 Bold Not Exact C0S0CB12
75 120 Normal Not Exact C0S0CR12
75 120 Bold Not Exact C0S0CB12
76 120 Normal Exact C0E0AP12 C0S0AE10
78 120 Normal Exact C0E0KA12 C0L0KN12
80 120 Normal Not Exact C0S0CR12
80 120 Bold Not Exact C0S0CB12
80 120 Normal Exact C0S0SYM0
84 120 Normal Exact C0S0SR12
84 120 Normal Exact C0E0SR12 C0S0SR12
84 120 Normal Exact C0S0SYM0
85 120 Normal Exact C0S0CR12
85 120 Normal Exact C0S0CE12
85 120 Bold Exact C0S0CB12
85 120 Italic Exact C0S0CI12
85 120 Normal Exact C0S0SYM0
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 455
Table 39. Printer Resident to Host Resident Font Character Set Mapping (continued)
Registered Font Width Font Map Fidelity Font Font
Font ID Attributes Character Set Character Set
Name (first Name
choice) (second
choice)
110 120 Bold Exact C0S0LB12
110 120 Bold Exact C0E0LBEK C0440300
110 120 Bold Exact C0E0LBEN C0440300
110 120 Normal Exact C0S0SYM0
111 120 Bold Exact C0S0PB12
111 120 Normal Exact C0S0SYM0
112 120 Italic Exact C0S0PI12
112 120 Normal Exact C0S0SYM0
154 120 Normal Exact C0S0ESTR
154 120 Bold Exact C0S0EBTR
155 120 Bold Italic Exact C0S0BITR
155 120 Bold Italic Exact C0E0BIRK C0450300
155 120 Bold Italic Exact C0E0BIRN C0450300
155 120 Bold Exact C0S0SYM0
157 120 Bold Exact C0E0TBTR C0S0ESTR
157 120 Bold Exact C0E0TBRF C0420200
157 120 Normal Exact C0E0TBRR C0S0SYM2
158 120 Normal Not Exact C0S0ESTR
158 120 Bold Not Exact C0S0EBTR
158 120 Normal Exact C0S0SYM0
159 120 Bold Exact C0S0BRTR
159 120 Bold Exact C0E0BRRK C0440300
159 120 Bold Exact C0E0BRRN C0440300
159 120 Bold Exact C0E0BRRQ C0440300
159 120 Bold Exact C0E0BRRG C0440200
159 120 Bold Exact C0E0BRRH C0440200
159 120 Bold Exact C0S0SYM0
160 120 Normal Exact C0S0ESTR
160 120 Bold Exact C0S0EBTR
160 120 Italic Exact C0S0EITR
160 120 Normal Exact C0S0SYM0
162 120 Italic Exact C0S0EITR
162 120 Normal Exact C0S0SYM0
163 120 Bold Exact C0S0EBTR
163 120 Bold Exact C0S0SYM0
164 120 Normal Exact C0E0PRTR C0S0ESTR
164 120 Normal Exact C0E0PRRR C0S0SYM2
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 457
Table 39. Printer Resident to Host Resident Font Character Set Mapping (continued)
Registered Font Width Font Map Fidelity Font Font
Font ID Attributes Character Set Character Set
Name (first Name
choice) (second
choice)
213 96 Normal Exact C0E0NR15 C0420480
214 96 Bold Exact C0S0CB15
215 96 Italic Exact C0S0CI15
217 96 Double Wide Exact C0S0CD15
218 96 Double Wide Exact C0S0CW15
Italic
221 96 Normal Not Exact C0S0CR15
221 96 Bold Not Exact C0S0CB15
221 96 Normal Exact C0E0PR15 C0S0CR15
221 96 Normal Exact C0S0SYM0
222 96 Normal Exact C0D0GT15
222 96 Bold Not Exact C0S0CB15
222 96 Normal Exact C0E0LR15 C0S0LR15
222 96 Normal Exact C0E0LR5R C0S0SYM2
223 96 Normal Exact C0S0CR15
223 96 Double Wide Exact C0S0CD15
223 96 Bold Exact C0S0CB15
223 96 Italic Exact C0S0CI15
223 96 Double Wide Exact C0S0CW15
Italic
223 96 Normal Exact C0E0CR15 C0S0CR15
223 96 Normal Exact C0S0SYM0
223 96 Normal Exact C0E0CR5K C0420380
223 96 Normal Exact C0E0CR5N C0420380
223 96 Normal Exact C0E0CR5G C0420280
223 96 Normal Exact C0E0CR5H C0420280
225 96 Normal Not Exact C0S0CR15
225 96 Bold Not Exact C0S0CB15
225 96 Normal Exact C0S0SYM0
226 96 Normal Exact C0E0HR15 C0420580
229 96 Normal Exact C0D0ST15 C0S0CR15
229 96 Normal Exact C0S0SYM0
230 96 Normal Exact C0D0GT15 C0S0CR15
230 96 Normal Exact C0S0SYM0
232 96 Normal Not Exact C0S0CR15
232 96 Bold Not Exact C0S0CB15
233 96 Normal Exact C0S0CD15
244 288 Normal Exact C0S0SYM0
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 459
Table 39. Printer Resident to Host Resident Font Character Set Mapping (continued)
Registered Font Width Font Map Fidelity Font Font
Font ID Attributes Character Set Character Set
Name (first Name
choice) (second
choice)
304* 54 Normal Exact C0620050 C0D0GT20
304* 72 Normal Exact C0620060 C0D0GT20
304* 84 Normal Exact C0620070 C0D0GT18
304* 96 Normal Exact C0620080 C0D0GT15
304* 108 Normal Exact C0620090 C0D0GT13
304* 120 Normal Exact C0620000 C0D0GT12
304* 144 Normal Exact C06200B0 C0D0GT10
304* 168 Normal Exact C06200D0 C0D0GT10
304* 240 Normal Exact C06200N0 C0D0GT10
304* 72 Normal Exact C0620860 C0L0KN20
304* 84 Normal Exact C0620870 C0L0KN20
304* 96 Normal Exact C0620880 C0L0KN20
304* 120 Normal Exact C06208B0 C0L0KATA
304* 168 Normal Exact C06208D0 C0L0KATA
304* 240 Normal Exact C06208J0 C0L0KATA
305* 144 Normal Exact C0920AB0 C0L00AOA
306* 144 Normal Exact C0920BB0 C0L00BOA
307* 144 Normal Exact C0420P00 C050AE10
318* Bold Exact C07400XX C050CBXX
319* Italic Exact C07300XX C050CIXX
322* 144 Normal Exact C0440P00 C050AE10
323* 120 Normal Exact C0BPOSA0
323* 144 Normal Exact C0BPOS91
323* 168 Normal Exact C0BPOSB0
323* 240 Normal Exact C0BPOSBN
326 96 Bold Exact C0T40680
326 120 Bold Exact C0T40600
326 144 Bold Exact C0T406B0
326 180 Bold Exact C0T406E0
327 96 Italic Exact C0T30680
327 120 Italic Exact C0T30600
327 144 Italic Exact C0T306B0
327 180 Italic Exact C0T306E0
328 96 Normal Exact C0T20680
328 120 Normal Exact C0T20600
328 144 Normal Exact C0T206B0
328 180 Normal Exact C0T206E0
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 461
Table 39. Printer Resident to Host Resident Font Character Set Mapping (continued)
Registered Font Width Font Map Fidelity Font Font
Font ID Attributes Character Set Character Set
Name (first Name
choice) (second
choice)
425 96 Double Wide Exact C0S0CW15
Italic
428 Bold Italic Exact C04500XX C0S0CIXX
428 115 Bold Italic Exact C0450000 C0S0CI15
428 Bold Italic Exact C04502XX
428 Bold Italic Exact C04503XX
428 Bold Italic Exact C04504XX
428 Bold Italic Exact C04505XX
428* Bold Italic Exact C04507XX
432* Normal Exact C07200XX C0S0CRXX
434 177 Bold Exact C0E0OB08 C0S0CB10
435 221 Bold Exact C0E0OB06 C0S0CB10
751 53 Normal Exact C0T05580 C0D0GT24
751 53 Normal Exact C0S0SYM0
752 80 Normal Exact C0E20NB0 C0N204B0
753 120 Bold Exact C0E0BNTR C0N404B0
753 80 Bold Exact C0E40NB0 C0N404B0
754 120 Bold Exact C0E40NH0 C0N404H0
755 160 Bold Exact C0E40NN0 C0N404N0
756 80 Italic Exact C0E30NB0 C0N304B0
757 80 Bold Italic Exact C0E50NB0 C0N504B0
758 120 Bold Italic Exact C0E50NH0 C0N504H0
759 160 Bold Italic Exact C0E50NN0 C0N504N0
1051 67 Normal Exact C0T05500 C0D0GT20
1051 67 Normal Exact C0S0SYM0
1053 67 Bold Exact C0T07500 C0D0GT20
1053 67 Bold Exact C0S0SYM0
1056 67 Italic Exact C0T15500 C0D0GT20
1056 67 Italic Exact C0S0SYM0
1351 80 Normal Exact C0T055B0 C0D0GT18
1351 80 Normal Exact C0S0SYM2
1653 107 Bold Exact C0T075F0 C0S0CB15
1653 107 Bold Exact C0S0SYM2
1803 120 Bold Exact C0T075H0 C0S0CB10
2103 160 Bold Exact C0T075N0 C0S0CB10
2304 Normal Exact C0H200XX C050CRXX
2304 96 Normal Exact C0H20080 C0D0GT24
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 463
Table 39. Printer Resident to Host Resident Font Character Set Mapping (continued)
Registered Font Width Font Map Fidelity Font Font
Font ID Attributes Character Set Character Set
Name (first Name
choice) (second
choice)
2307 96 Bold Italic Exact C0H50080 C0D0GT24
2307 115 Bold Italic Exact C0H500H0 C0S0CI12
2307 144 Bold Italic Exact C0H500B0 C0D0GT18
2307 169 Bold Italic Exact C0H500D0 C0S0CI15
2307 221 Bold Italic Exact C0H500J0 C0S0CI10
2307 288 Bold Italic Exact C0H500Z0 C0S0CI10
2307 Bold Italic Exact C0H502XX
2307 Bold Italic Exact C0H503XX
2307 Bold Italic Exact C0H504XX
2307 Bold Italic Exact C0H505XX
2307* Bold Italic Exact C0H507XX
2308 Normal Exact C0N200XX C0S0CRXX
2308 96 Normal Exact C0N20080 C0D0GT24
2308 115 Normal Exact C0N200H0 C0S0CR12
2308 144 Normal Exact C0N200B0 C0D0GT18
2308 169 Normal Exact C0N200D0 C0S0CR15
2308 221 Normal Exact C0N200J0 C0S0CR10
2308 288 Normal Exact C0N200Z0 C0S0CR10
2308 Normal Exact C0N202XX
2308 Normal Exact C0N203XX
2308 Normal Exact C0N204XX
2308 Normal Exact C0N205XX
2308* Normal Exact C0N201XX
2308* Normal Exact C0N207XX
2309 Bold Exact C0N400XX C0S0CBXX
2309 96 Bold Exact C0N40080 C0D0GT24
2309 115 Bold Exact C0N400H0 C0S0CB12
2309 144 Bold Exact C0N400B0 C0D0GT18
2309 169 Bold Exact C0N400D0 C0S0CB15
2309 221 Bold Exact C0N400J0 C0S0CB10
2309 288 Bold Exact C0N400Z0 C0S0CB10
2309 Bold Exact C0N402XX
2309 Bold Exact C0N403XX
2309 Bold Exact C0N404XX
2309 Bold Exact C0N405XX
2309* Bold Exact C0N401XX
2309* Bold Exact C0N407XX
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 465
Table 39. Printer Resident to Host Resident Font Character Set Mapping (continued)
Registered Font Width Font Map Fidelity Font Font
Font ID Attributes Character Set Character Set
Name (first Name
choice) (second
choice)
4535 66 Italic Exact C0T15500 C0D0GT20
4535 72 Italic Exact C0T155A0 C0D0GT20
4555 Bold Italic Exact C0T175XX C0S0CIXX
4555 66 Bold Italic Exact C0T17500 C0D0GT20
4555 78 Bold Italic Exact C0T175B0 C0D0GT18
4555 132 Bold Italic Exact C0T175J0 C0S0CI10
4919 40 Normal Exact C0E20G60 C0D0GT18
4919 53 Normal Exact C0E20G80 C0S0CR15
4919 67 Normal Exact C0E20G00 C0S0CR12
4919 80 Normal Exact C0E20GB0 C0S0CR10
4939 67 Bold Exact C0E40G00 C0S0CB12
4939 93 Bold Exact C0E40GD0 C0S0CB10
4939 120 Bold Exact C0E40GH0 C0S0CB10
5047 67 Italic Exact C0E30G00 C0S0CI12
5067 67 Bold Italic Exact C0E50G00 C0S0CI12
5687 80 Normal Exact C0E20TB0 C0S0CR10
5687 67 Normal Exact C0E20T00 C0S0CR12
5687 53 Normal Exact C0E20T80 C0S0CR15
5687 40 Normal Exact C0E20T60 C0D0GT18
5707 160 Bold Exact C0E40TN0 C0S0CB10
5707 120 Bold Exact C0E40TH0 C0S0CB10
5707 93 Bold Exact C0E40TD0 C0S0CB10
5707 80 Bold Exact C0E40TB0 C0S0CB10
5707 67 Bold Exact C0E40T00 C0S0CB12
5815 80 Italic Exact C0E30TB0 C0S0CI10
5815 67 Italic Exact C0E30T00 C0S0CI12
5835 80 Bold Italic Exact C0E50TB0 C0S0CI10
5835 67 Bold Italic Exact C0E50T00 C0S0CI12
5943 120 Normal Exact C0E20MH0 C0S0CR10
5943 93 Normal Exact C0E20MD0 C0S0CR10
5943 80 Normal Exact C0E20MB0 C0S0CR10
6199 80 Normal Exact C0E20PB0 C0S0CR10
6199 67 Normal Exact C0E20P00 C0S0CR12
6199 53 Normal Exact C0E20P80 C0S0CR15
6199 40 Normal Exact C0E20P60 C0D0GT18
6219 120 Bold Exact C0E40PH0 C0S0CB10
6219 93 Bold Exact C0E40PD0 C0S0CB12
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 467
Table 39. Printer Resident to Host Resident Font Character Set Mapping (continued)
Registered Font Width Font Map Fidelity Font Font
Font ID Attributes Character Set Character Set
Name (first Name
choice) (second
choice)
33355 120 Bold Exact C0E40OH0 C0S0CB10
33355 93 Bold Exact C0E40OD0 C0S0CB10
33355 67 Bold Exact C0E40O00 C0S0CB12
33463 67 Italic Exact C0E30O00 C0S0CI10
33483 67 Bold Italic Exact C0E50O00 C0S0CI12
33591 80 Normal Exact C0E20FB0 C0S0CR10
33591 67 Normal Exact C0E20F00 C0S0CR12
33591 53 Normal Exact C0E20F80 C0S0CR15
33591 40 Normal Exact C0E20F60 C0D0GT18
33601 120 Bold Exact C0E40FH0 C0S0CB10
33601 93 Bold Exact C0E40FD0 C0S0CB10
33601 67 Bold Exact C0E40F00 C0S0CB12
33719 67 Italic Exact C0E30F00 C0S0CI12
33729 67 Bold Italic Exact C0E50F00 C0S0CI12
34103 80 Normal Exact C0E20HB0 C0S0CR10
34103 67 Normal Exact C0E20H00 C0S0CR10
34103 53 Normal Exact C0E20H80 C0S0CR15
34103 40 Normal Exact C0E20H60 C0D0GT18
34123 120 Bold Exact C0E40HH0 C0S0CB10
34123 93 Bold Exact C0E40HD0 C0S0CB10
34123 67 Bold Exact C0E40H00 C0S0CB12
34231 67 Italic Exact C0E30H00 C0S0CI12
34251 67 Bold Italic Exact C0E50H00 C0S0CI10
37431 120 Normal Exact C0E20EH0 C0S0CR10
37431 93 Normal Exact C0E20ED0 C0S0CR10
37431 80 Normal Exact C0E20EB0 C0S0CR10
41783 80 Italic Exact C0E30SB0 C0S0CI10
41803 120 Bold Italic Exact C0E50SH0 C0S0CI10
41803 93 Bold Italic Exact C0E50SD0 C0S0CI10
49719 54 Normal Exact C0P05580 C0D0GT18
This font substitution is necessary because these printers do not support printer
resident fonts. Depending upon the registered code page ID value that is requested
The first choice is used if it is present on your AS/400 system. The second choice
is used if the first choice cannot be found.
The Map Fidelity indicates whether or not the first choice is considered to be an
exact match to the printer resident font that is requested in your spooled file. As a
rule, the second choice is not considered to be an exact match.
Table 40. Printer Resident to Host Resident Code Page Mapping
Registered Code Host Resident Code Host Resident Code Map Fidelity
Page ID Page Name (first Page Name (second
choice) choice)
29 T1V10871 Exact
37 T1V10037 Exact
38 T1V10500 Exact
256 T1GDP256 Exact
259 T1000259 Exact
260 T1V10037 Exact
273 T1V10273 Exact
274 T1V10274 Exact
275 T1V10275 Exact
277 T1V10277 Exact
278 T1V10278 Exact
280 T1V10280 Exact
281 T1V10281 Exact
282 T1V10282 Exact
283 T1V10284 Exact
284 T1V10284 Exact
285 T1V10285 Exact
286 T1V10273 Exact
287 T1V10277 Exact
288 T1V10278 Exact
289 T1V10284 Exact
290 T1V10290 Exact
293 T1000293 T1S0AE10 Exact
297 T1V10297 Exact
310 T1000310 T1S0AE10 Exact
340 T1L0OCR1 T1V10500 Not Exact
361 T1000361 T1GI0361 Exact
363 T1GPI363 Exact
382 T1000382 T1GI0382 Exact
383 T1000383 T1GI0383 Exact
384 T1000384 T1GI0384 Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 469
Table 40. Printer Resident to Host Resident Code Page Mapping (continued)
Registered Code Host Resident Code Host Resident Code Map Fidelity
Page ID Page Name (first Page Name (second
choice) choice)
385 T1000385 T1GI0385 Exact
386 T1000386 T1GI0386 Exact
387 T1000387 T1GI0387 Exact
388 T1000388 T1GI0388 Exact
389 T1000389 T1GI0389 Exact
390 T1000390 T1GI0390 Exact
391 T1000391 T1GI0391 Exact
392 T1000392 T1GI0392 Exact
393 T1000393 T1GI0393 Exact
394 T1000394 T1GI0394 Exact
395 T1000395 T1GI0395 Exact
396 T1GI0396 Exact
420 T1000420 T1V10500 Not Exact
423 T1000423 Exact
424 T1000424 T1V10500 Not Exact
437 T1000437 T1V10500 Not Exact
500 T1V10500 Exact
803 T1000803 Exact
813 T1000813 Exact
819 T1000819 Exact
829 T1M00829 Exact
831 T1V10282 Exact
838 T1000838 Exact
850 T1000850 Exact
851 T1000851 Exact
852 T1000852 Exact
853 T1000853 Exact
855 T1000855 Exact
856 T1000856 Exact
857 T1000857 Exact
860 T1000860 Exact
861 T1000861 Exact
862 T1000862 Exact
863 T1000863 Exact
864 T1000864 Exact
865 T1000865 Exact
866 T1000866 Exact
869 T1000869 Exact
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 471
Table 40. Printer Resident to Host Resident Code Page Mapping (continued)
Registered Code Host Resident Code Host Resident Code Map Fidelity
Page ID Page Name (first Page Name (second
choice) choice)
1077 T1GDP281 Exact
1078 T1GDP282 Exact
1079 T1GDP284 Exact
1080 T1GDP285 Exact
1081 T1GDP279 Exact
1087 T1001087 Exact
1091 T1001091 Exact
1092 T1001092 Exact
2063 T1D0BASE Exact
2064 T1GDP276 Exact
2065 T1GI0361 Exact
2066 T1GPI363 Exact
2067 T1GI0382 Exact
2068 T1GI0383 Exact
2069 T1GI0384 Exact
2070 T1GI0385 Exact
2071 T1GI0386 Exact
2072 T1GI0387 Exact
2073 T1GI0388 Exact
2074 T1GI0389 Exact
2075 T1GI0390 Exact
2076 T1GI0391 Exact
2077 T1GI0392 Exact
2078 T1GI0394 Exact
2079 T1GI0395 Exact
2081 T1GE0200 Exact
2082 T1GE0300 Exact
2086 T1L0OCRB Exact
2087 T1L0OCR1 Exact
2092 T1S0S193 Exact
2093 T1S0S198 Exact
2102 T1L02773 Exact
2103 T1L02774 Exact
2108 T1S0AE10 Exact
Major Groups
International 103 038 500 Yes N/A N/A N/A Yes N/A Yes Yes
(and US ASCII)
Multinational 697 500 Yes Yes Yes Yes N/A N/A Yes Yes
337 256 500 Yes N/A N/A N/A N/A Yes Yes Yes
7
697 256 500 Yes N/A Yes IPDS N/A N/A Yes N/A
United States 101 037 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
697 037 N/A N/A N/A
US, Canada, 695 697 037 N/A N/A N/A N/A N/A N/A N/A N/A
Netherlands, 1140
Portugal, Brazil,
Australia, New
Zealand10
Individual Countries/Languages
Arabic 697 361 Yes N/A Yes N/A N/A N/A Yes N/A
Arabic X/B 235 420 500 Yes N/A Yes IPDS7 N/A N/A Yes Yes
697 420 Yes N/A 4224-No IPDS7 N/A N/A Yes N/A
4230-
Yes
4247-
Yes
10
| Arabic 1461 N/A N/A N/A N/A N/A N/A N/A N/A N/A
| 420
Austria/ 265 273 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Germany6 697 273 N/A N/A
Austria/ 697 286 273 Yes Yes N/A Yes Yes IPDS7 N/A N/A N/A Yes Yes
Germany 317 286 N/A IPDS7 N/A N/A N/A
Austria, 695 697 273 N/A N/A N/A N/A N/A N/A N/A N/A
Germany10 1141
Belgium6 697 500 N/A Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes N/A Yes Yes
269 274 N/A Yes Yes Yes N/A N/A N/A Yes
697 274 N/A N/A
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 473
Table 41. CHRID Values and Applicable Printers (CHRID Parameter) (continued)
Code Pages Printers1
| 3112 3116
| 3912 3916
| 4312 4317 3130 3160
| CHRID Sub- 4324 4028 3935
| Code stitute 42345 InfoPrint InfoPrint
| Page Code 42245 64009 20 3000
| Language xxx Page 38125 42305 64089 5224 InfoPrint InfoPrint
| Groups yyy2,3 yyy2,4 38165 42145 42475 64129 5219 5225 32 5 4000
Belgium, 695 697 500 N/A N/A N/A N/A N/A N/A N/A N/A
Canada, 1148
Switzerland10
Brazil6 273 275 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
697 275 N/A N/A
| Bulgaria, FYR 1381 1150 N/A N/A N/A N/A N/A N/A N/A N/A
| Macedonia, 1154 1025
| Serbia
| (Cyrillic)10
Canadian 277 276 297 037 Yes Yes N/A N/A N/A Yes Yes Yes Yes Yes Yes
French6 341 260 N/A Yes IPDS7 N/A N/A
697 260 Yes N/A N/A IPDS7 N/A N/A Yes N/A
Canada- 038 256 Yes N/A N/A N/A Yes N/A Yes N/A
Bilingual
039 256 Yes N/A N/A N/A Yes N/A Yes N/A
Canada-English 037 256 Yes N/A N/A N/A Yes N/A Yes N/A
| Chinese- 1174 N/A N/A N/A N/A N/A N/A N/A N/A
| Simplified 836
| Chinese- 1175 N/A N/A N/A N/A N/A N/A N/A N/A
| Traditional 037
| Chinese- 32000 697 37 N/A N/A N/A N/A N/A N/A N/A N/A
| Traditional10 1159
Cyrillic 960 880 N/A N/A Yes IPDS7 N/A N/A Yes Yes
Czechoslovakia/ 083 257 N/A N/A N/A N/A Yes N/A N/A N/A
Czech
Czechoslovakia/ 085 257 N/A N/A N/A N/A Yes N/A N/A N/A
Slovak
Denmark/ 281 277 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Norway6 697 277 N/A N/A
Denmark/ 697 287 277 Yes N/A Yes IPDS7 N/A N/A Yes N/A
Norway
321 287 Yes N/A Yes IPDS7 N/A N/A Yes Yes
Denmark, 695 697 277 N/A N/A N/A N/A N/A N/A N/A N/A
Norway10 1142
Farsi 1219 N/A N/A Yes IPDS7 N/A N/A N/A N/A
1097
Estonia 1307 N/A N/A 4224-No N/A N/A N/A N/A N/A
1122 4230-
Yes
4247-
Yes
| Estonia10 1391 1307 N/A N/A N/A N/A N/A N/A N/A N/A
| 1157 1122
Finland/ 285 278 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Sweden6 697 278 N/A N/A
Finland/ 697 288 278 Yes N/A Yes IPDS7 N/A N/A Yes N/A
Sweden
325 288 Yes N/A Yes IPDS7 N/A N/A Yes Yes
Finland, 695 697 278 N/A N/A N/A N/A N/A N/A N/A N/A
Sweden10 1143
France (1977)6 289 279 297 Yes N/A N/A N/A N/A Yes Yes N/A
6
France (1980) 288 297 Yes Yes Yes Yes Yes Yes Yes Yes Yes N/A Yes Yes Yes Yes
697 297 N/A N/A
France 251 256 Yes N/A N/A N/A Yes N/A Yes Yes
France/ 031 256 Yes N/A N/A N/A Yes N/A Yes N/A
Belgium
France10 695 697 297 N/A N/A N/A N/A N/A N/A N/A N/A
1147
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 475
Table 41. CHRID Values and Applicable Printers (CHRID Parameter) (continued)
Code Pages Printers1
| 3112 3116
| 3912 3916
| 4312 4317 3130 3160
| CHRID Sub- 4324 4028 3935
| Code stitute 42345 InfoPrint InfoPrint
| Page Code 42245 64009 20 3000
| Language xxx Page 38125 42305 64089 5224 InfoPrint InfoPrint
| Groups yyy2,3 yyy2,4 38165 42145 42475 64129 5219 5225 32 5 4000
Germany/ 028 256 Yes N/A N/A N/A Yes N/A Yes N/A
Austria
029 256 Yes N/A N/A N/A Yes N/A Yes N/A
Greek 218 423 N/A N/A Yes IPDS7 N/A N/A Yes Yes
7
925 875 N/A N/A Yes IPDS N/A N/A Yes Yes
10
| Greek 1371 218 423 N/A N/A N/A N/A N/A N/A N/A N/A
| 875
Hebrew 941 424 Yes N/A Yes IPDS7 N/A N/A Yes Yes
7
697 424 Yes N/A 4224-No IPDS N/A N/A Yes N/A
4230-
Yes
4247-
Yes
1147 N/A N/A 4224-No IPDS7 N/A N/A N/A Yes
803 4230-
Yes
4247-
Yes
| Hebrew10 1356 N/A N/A N/A N/A N/A N/A N/A N/A N/A
| 424
Hong Kong 119 256 Yes N/A N/A N/A Yes N/A Yes Yes
Hungary 091 257 N/A N/A N/A N/A Yes N/A N/A N/A
Icelandic 697 871 Yes N/A Yes IPDS7 N/A N/A Yes Yes
697 029 Yes N/A N/A N/A N/A N/A Yes N/A
Iceland10 695 697 871 N/A N/A N/A N/A N/A N/A N/A N/A
1149
Italy6 293 280 Yes Yes Yes Yes Yes Yes IPDS7 Yes Yes Yes Yes Yes Yes
697 280 Yes N/A N/A
Japan-English6 297 281 Yes Yes Yes Yes Yes Yes IPDS7 Yes Yes Yes Yes Yes Yes
697 281 Yes N/A N/A
068 256 Yes N/A N/A N/A Yes N/A Yes N/A
069 256 Yes N/A N/A N/A Yes N/A Yes N/A
Japan- 332 290 Yes N/A Yes Yes N/A Yes Yes Yes
Katakana6
| Japan- Katakana 1172 N/A N/A N/A N/A N/A N/A N/A N/A
| 290
| Japan- 1398 N/A N/A N/A N/A N/A N/A N/A N/A
| Katakana10 290
| Japan-Latin 1172 N/A N/A N/A N/A N/A N/A N/A N/A
| 1027
| Japan-Latin10 1398 N/A N/A N/A N/A N/A N/A N/A N/A
| 1027
| Korean 1173 N/A N/A N/A N/A N/A N/A N/A N/A
| 833
Korean 933 833 N/A N/A 4230- IPDS7 N/A N/A N/A N/A
Yes
4247-
Yes
4224-
N/A
697 290 Yes N/A N/A IPDS7 N/A N/A Yes N/A
Latin 959 870 N/A N/A Yes IPDS7 N/A N/A Yes Yes
Latin America/ 025 256 Yes N/A N/A N/A Yes N/A Yes N/A
Puerto Rico
Latvia/Lithuania 1305 N/A N/A 4224-No N/A N/A N/A N/A N/A
1112 4230-
Yes
4247-
Yes
| Latvia/Lithuania101393 1305 N/A N/A N/A N/A N/A N/A N/A N/A
| 1156 1112
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 477
Table 41. CHRID Values and Applicable Printers (CHRID Parameter) (continued)
Code Pages Printers1
| 3112 3116
| 3912 3916
| 4312 4317 3130 3160
| CHRID Sub- 4324 4028 3935
| Code stitute 42345 InfoPrint InfoPrint
| Page Code 42245 64009 20 3000
| Language xxx Page 38125 42305 64089 5224 InfoPrint InfoPrint
| Groups yyy2,3 yyy2,4 38165 42145 42475 64129 5219 5225 32 5 4000
Lao 1341 N/A N/A N/A N/A N/A N/A N/A N/A
1132
Netherlands 043 256 Yes N/A N/A N/A Yes N/A Yes N/A
Norway/ 055 256 Yes N/A N/A N/A Yes N/A Yes N/A
Denmark
Poland 093 257 N/A N/A N/A N/A Yes N/A N/A N/A
Portugal6 301 282 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
697 282 N/A N/A
Portugal 697 831 282 Yes Yes N/A Yes N/A N/A N/A Yes Yes N/A
063 256 N/A N/A N/A Yes N/A N/A
Romania 087 258 N/A N/A N/A N/A Yes N/A N/A N/A
South Africa 081 258 N/A N/A N/A N/A Yes N/A N/A N/A
Spain6 305 283 284 284 Yes Yes N/A Yes Yes Yes Yes Yes Yes Yes Yes Yes
697 283 N/A N/A N/A N/A
697 289 284 Yes N/A Yes IPDS7 N/A N/A Yes N/A
7
329 289 Yes N/A Yes IPDS N/A N/A Yes Yes
045 256 Yes N/A N/A N/A Yes N/A Yes N/A
Spanish 309 284 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes N/A
Speaking6 697 284 N/A N/A N/A N/A Yes N/A N/A Yes
1149 N/A
284
Spain, Latin 695 697 284 N/A N/A N/A N/A N/A N/A N/A N/A
America 1145
(Spanish)10
Sweden/ 052 256 Yes N/A N/A N/A Yes N/A Yes Yes
Finland
053 256 Yes N/A N/A N/A Yes N/A N/A N/A
Thai 1102 N/A N/A Yes IPDS7 N/A N/A N/A N/A
889
938 838 N/A N/A 4230- IPDS7 N/A N/A N/A N/A
Yes
4247-
Yes
4224-
N/A
| Thai10 1395 938 838 N/A N/A N/A N/A N/A N/A N/A N/A
| 1160
Turkish 965 905 N/A N/A 4230- IPDS7 N/A N/A Yes Yes
Yes
4247-
Yes
4224-
Yes
1152 N/A N/A 4230- IPDS7 N/A N/A N/A Yes
1026 Yes
4247-
Yes
4224-
N/A
| Turkish10 1378 1152 N/A N/A N/A N/A N/A N/A N/A N/A
| 1155 1026
| Ukraine 1326 N/A N/A N/A N/A N/A N/A N/A N/A N/A
| 1123
| Ukraine10 1388 1326 N/A N/A N/A N/A N/A N/A N/A N/A
| 1158 1123
United 313 285 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes
Kingdom6 697 285 N/A N/A
U.K./ Israel 066 256 Yes N/A N/A N/A Yes N/A Yes N/A
U.K./ 067 256 Yes N/A N/A N/A Yes N/A Yes N/A
Israel-Latin
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 479
Table 41. CHRID Values and Applicable Printers (CHRID Parameter) (continued)
Code Pages Printers1
| 3112 3116
| 3912 3916
| 4312 4317 3130 3160
| CHRID Sub- 4324 4028 3935
| Code stitute 42345 InfoPrint InfoPrint
| Page Code 42245 64009 20 3000
| Language xxx Page 38125 42305 64089 5224 InfoPrint InfoPrint
| Groups yyy2,3 yyy2,4 38165 42145 42475 64129 5219 5225 32 5 4000
United 695 697 285 N/A N/A N/A N/A N/A N/A N/A N/A
Kingdom10 1146
USA- 017 256 Yes N/A N/A N/A Yes N/A Yes N/A
Accounting
USA/Australia 001 256 Yes N/A N/A N/A Yes N/A Yes N/A
Vietnamese 1336 N/A N/A N/A N/A N/A N/A N/A N/A
1130
| Vietnamese10 1397 1336 N/A N/A N/A N/A N/A N/A N/A N/A
| 1164 1130
Countries of the 410 890 N/A N/A Yes IPDS7 N/A N/A N/A N/A
former
Yugoslavia
Countries of the 095 257 N/A N/A N/A N/A Yes N/A N/A N/A
former
Yugoslavia-
Latin
Noncountry Languages
APL 697 293 Yes N/A N/A IPDS7 N/A N/A Yes N/A
7
380 293 Yes N/A 4224- IPDS N/A N/A Yes Yes
N/A
4230-
N/A
4247-
N/A
APL Alternate 697 310 Yes N/A 4224-No IPDS7 N/A N/A Yes Yes
4230-
Yes
4247-
Yes
963 310 Yes N/A 4224-No N/A N/A N/A Yes Yes
4230-
Yes
4247-
Yes
DCF 1132 Yes N/A 4230- IPDS7 N/A N/A Yes Yes
Compatibility 1002 Yes
4247-
Yes
4224-No
DCF US Text 1133 N/A N/A 4230- N/A N/A N/A N/A Yes
1003 N/A
4247-
N/A
4224-
N/A
DCF text with 1259 N/A N/A 4230- N/A N/A N/A N/A Yes
numeric space 1068 N/A
4247-
N/A
4224-
N/A
EBCDIC 101 256 Yes N/A N/A N/A Yes N/A Yes Yes
GML List 1258 N/A N/A N/A N/A N/A N/A N/A Yes
Symbols 1039
International 697 361 Yes N/A N/A N/A N/A N/A Yes N/A
Typographic
OCR 697 340 500 Yes N/A Yes IPDS7 N/A N/A Yes N/A
(unregistered)
OCR A 697 892 500 Yes N/A Yes IPDS7 N/A N/A Yes N/A
7
968 892 Yes N/A Yes IPDS N/A N/A Yes Yes
7
OCR A 580 340 892 Yes N/A Yes IPDS N/A N/A Yes N/A
(unregistered)
OCR B 697 893 500 Yes N/A Yes IPDS7 N/A N/A Yes N/A
7
969 893 Yes N/A Yes IPDS N/A N/A Yes Yes
7
OCR B 590 340 893 Yes N/A Yes IPDS N/A N/A Yes N/A
(unregistered)
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 481
Table 41. CHRID Values and Applicable Printers (CHRID Parameter) (continued)
Code Pages Printers1
| 3112 3116
| 3912 3916
| 4312 4317 3130 3160
| CHRID Sub- 4324 4028 3935
| Code stitute 42345 InfoPrint InfoPrint
| Page Code 42245 64009 20 3000
| Language xxx Page 38125 42305 64089 5224 InfoPrint InfoPrint
| Groups yyy2,3 yyy2,4 38165 42145 42475 64129 5219 5225 32 5 4000
Personal 697 437 Yes N/A 4224-No N/A N/A N/A Yes N/A
Computer 4247-
Yes
4230-
Yes
Symbols 340 259 Yes N/A N/A N/A N/A N/A Yes Yes
Symbol- 201 259 500 Yes N/A N/A N/A Yes N/A Yes N/A
Selectric
Symbol-6640 202 259 500 Yes Yes N/A N/A Yes N/A Yes N/A
Symbol-6670 203 259 Yes N/A N/A N/A Yes N/A Yes N/A
Symbols, Adobe 1257 N/A N/A N/A N/A N/A N/A N/A Yes
1087
Symbols Set 7 697 259 Yes N/A N/A N/A N/A N/A Yes N/A
Symbols Mod 1191 N/A N/A N/A N/A N/A N/A N/A Yes
Set 7 1091
Symbols Set 8 630 363 N/A N/A N/A N/A N/A N/A N/A Yes
:
1
The 5256, 5262, and 4245 work station printers do not support the hardware function required for
alternative CHRID processing. If a nondefault character set and code page is selected for these printers, a
diagnostic message is sent and processing continues using the default character set.
2
If the printer supports the code page specified (the second part (yyy) of the CHRID parameter) but not the
character set (xxx), then the character set supported by the printer is used along with the specified code
page. For example, if 337 037 (extended character set for displays) is specified for the 5224 and 5225
Printers, the print file is printed with character set 101, code page 037.
3
In some cases, the printer will substitute a supported code page for an unsupported code page. Consult the
various printer reference guides for defaults on the code page mapping.
4
If the printer does not support or map the code page specified, an attempt is made by the system to find a
satisfactory substitute. This column shows the code page substitutes that are made if the specified printer
supports the substitute.
5
The 3812, 3816, 4214, 4224, 4230, 4234, and 4247 Printers support character set 697 (full character set). This
character set contains all the characters in the limited character sets. For example, 697 037 would contain all
the characters in 101 037 or 337 037 (extended character set for displays).
6
This language is considered a primary language group. All other entries, if any, under the primary
language group are considered as alternative language groups.
7
Supported by 4234 IPDS version and 64xx with IPDS feature only.
8
Supported by 4234 SCS version only.
9
64xx SCS emulation mode set to 4234
10
Provides support for Euro currency symbol.
This code page substitution is necessary because these printers do not support the
downloading of 240-pel host resident fonts. Depending upon the host resident code
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 483
page name that is requested for a particular font reference, the appropriate
registered code page ID value is selected to match (as closely as possible) your font
request.
The Map Fidelity indicates whether or not the substituted printer resident code
page is considered to be an exact match to the code page that is requested in your
spooled file.
Table 42. Host Resident to Printer Resident Code Page Mapping
Host Resident Code Page Registered Code Page ID Map Fidelity
Name
T1V10037 37 Exact
T1GDP256 256 Exact
T1V10273 273 Exact
T1V10274 274 Exact
T1V10275 275 Exact
T1V10277 277 Exact
T1V10278 278 Exact
T1V10280 280 Exact
T1V10281 281 Exact
T1V10282 282 Exact
T1V10284 284 Exact
T1V10285 285 Exact
T1000290 290 Exact
T1L02773 2102 Exact
T1L02774 2103 Exact
T1S0AE10 2108 Exact
T1V10297 297 Exact
T1000361 361 Exact
T1GI0361 2065 Exact
T1000382 382 Exact
T1GI0382 2067 Exact
T1GI0383 2068 Exact
T1000384 384 Exact
T1GI0384 2069 Exact
T1000385 385 Exact
T1GI0385 2070 Exact
T1000386 386 Exact
T1GI0386 2071 Exact
T1000387 387 Exact
T1GI0387 2072 Exact
T1000388 388 Exact
T1GI0388 2073 Exact
T1000389 389 Exact
Each entry in the following table shows the valid range of values for lines per page
for each printer type and for each value of lines per inch (LPI) valid for the printer.
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 485
Note: Because of slight adjustments made for position checks, it is recommended
to not print on line 1 when specifying 8 or 9 LPI on an IPDS printer.
Table 43. Lines per Page (LPI Parameter)
Printer 3 Lines per 4 Lines per 6 Lines per 7.5 Lines per 8 Lines per 9 Lines per 12 Lines per
Inch Inch Inch Inch Inch Inch Inch
3287 – 1-104 1-104 – 1-104 – –
3812 SCS – 1-56 1-84 – 1-112 1-126 1-168
3812 IPDS – 2-56 2-84 – 2-112 2-112 2-168
3816 SCS – 1-56 1-84 – 1-112 1-126 1-168
3816 IPDS – 2-56 2-84 – 2-112 2-112 2-168
3820 – 1-56 1-84 – 1-112 1-126 1-168
3825 – 1-56 1-84 – 1-112 1-126 1-168
3827 – 1-56 1-84 – 1-112 1-126 1-168
3835 – 2-91 2-136 – 2-182 2-204 2-273
3935 1-68 1-102 1-136 1-153 1-204
4028 – 2-56 2-84 – 1-112 1-112 or 2-168
2-126
4214 – 1-255 1-255 – 1-255 1-255 –
4224, 4234 – 2-91 2-136 – 2-182 2-204 2-273
IPDS
4230 – 2-91 2-136 – 2-182 2-204 2-273
4234 SCS – 1-255 1-255 – 1-255 – –
4245 Models – – 1-255 – 1-255 – –
T12 and T20
4247 – 2-91 2-136 – 2-182 2-204 2-273
5211 – – 2-84 – 2-112 – –
5219 – 2-255 2-255 – 2-255 – 2-255
Continuous
Forms
5219 Cut – 57 86 – 114 – 172
Sheet
5224 – 1-255 1-255 – 1-255 1-255 –
5225 – 1-255 1-255 – 1-255 1-255 –
5256 (set – – 1-255 – 1-255 – –
manually)
5262 – – 1-255 – 1-255 – –
5553 1-255 1-255 1-255 1-255 1-255 – 1-255
5583 1-255 1-255 1-255 1-255 1-255 – –
6252 – 1-255 1-255 – 1-255 1-255 –
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 487
Table 44. Characters per Line (CPI Parameter) (continued)
5 10 12 13.3 15 16.7 18 20
Characters Characters Characters Characters Characters Characters Characters Characters
Printer per Inch per Inch per Inch per Inch per Inch per Inch per Inch per Inch
5256 Model
3 – 1-132 – – – – – –
5262 – 1-132 – – – – – –
5553 – 1-136 1-163 1-181 1-204 – 1-244 1-272
5583 – 1-132 1-158 1-176 1-198 – 1-236 1-264
6252 – 1-132 – – 1-198 – – –
2
6408 SCS – 1-132 – – 1-198 – – –
3
6408 IPDS 1-66 1-132 1-158 – 1-198 1-238 – –
:
1
Many character per inch values (implied by the pitch of the font, see the FONT parameter), are supported
in addition to the ones listed here. To find the maximum characters per line, multiply the implied
characters per inch value listed in the font table by maximum page width supported (in inches). The
maximum page width supported by the 3812 and 3816 Printers is 8.5 inches for non-rotated forms and 14.0
inches for rotated forms.
2
Emulates 4234 SCS or 5225
3
Emulates 4234 IPDS
Note: Go to Table 29 on page 324 for information on how to work with your
emulated 4019 printer to make the 4019 resident fonts available.
Note that image, graphics, and bar codes are not supported under any emulation
or means of attachment.
Pay special attention to the treatment of fonts and the footnotes relating to page
length and width.
Table 45 shows a matrix of functions when printing via any system function other
than OfficeVision. In this table a supported function is indicated by an X.
Table 45. 4019 Printer-System Functions
ATTACHED VIA ⇒ 3477 3197 AWSC WSF WSE E5250 R5250 OS/2
WSF
EMULATING ⇒ 5219 4214 3812 3812 5219 5219 5219 5219
Printer File Commands
1
Page Length X X X X X X X X
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 489
Table 45. 4019 Printer-System Functions (continued)
ATTACHED VIA ⇒ 3477 3197 AWSC WSF WSE E5250 R5250 OS/2
WSF
EMULATING ⇒ 5219 4214 3812 3812 5219 5219 5219 5219
Hardware X X X X X X
Justification 50
Hardware X X X X X X X
Justification 100
Duplex
Copies X X X X X X X X
File Separators X X X X X X X X
Additional DDS Keywords
Barcode
Chrsiz
Color
Font (Changing
Type Styles)
Highlight X
Skipa X X X X X X X X
Skipb X X X X X X X X
Spacea X X X X X X X X
Spaceb X X X X X X X X
Underline X X X X X X X X
Other Functions
Graphics
Image
Symbols Code X X X
Page 259
This substitution allows the use of fonts that are slightly shorter when the LPI
value is greater than or equal to 8.
Table 46. 4234 Compressed Font Substitution by Lines Per Inch (LPI) Value
Font Used When LPI is 4 or 6 Font Substituted When LPI is Greater Than
or Equal to 8
11 52
26 51
85 75
87 74
160 154
204 205
222 232
223 233
258 259
400 300
Appendix D. Working with Fonts, Font Character Sets, Code Pages, CHRIDs, and Coded Fonts 491
492 OS/400 Printer Device Programming V5R1
Appendix E. Printer Data Streams
SNA Character String (SCS)
The SNA character string (SCS) has a relatively simple structure, consisting of a
1-byte hexadecimal control code followed by the data to be printed. Multiple
control codes can be inserted into SCS by printing applications in order to achieve
certain types of output. The SNA character string is sent to the printer in physical
blocks of 256 bytes.
The EBCDIC 1-byte control characters provide functions such as line end,
backspace, and indent that have an immediate effect. The multibyte (extended)
control characters provide functions such as line spacing, horizontal and vertical
margins, and tab settings. These have both a continual and an immediate effect.
Some of the multibyte control characters remain in effect only until the line end,
but the majority remain in effect until the end of the document or until they are
redefined.
The final-form text document contains formatting control codes at the beginning to
establish its initial format. If the control codes are omitted, pre-defined default
values are used. These formatting controls are followed by the text of the
document, interspersed with the required formatting control codes.
Formatting control codes within a final-form text document control the following
functions:
v Top margin location
v Left margin location
AFPDS is a structured data stream. Structured fields are used to define composed
text pages, line format data, and a mixture of line and composed text data. The
structured field is a self-identifying string of bytes containing data or parameters
and must have an introducer, which contains a length field, an identifier, a flag,
and a sequence number. This is followed by parameter bytes that contain control
information or data to be printed.
Length
A 2-byte field that specifies the length of the record (not including the 5A
control character).
Identifier (ID)
A 3-byte field that specifies the type of the structured field.
Flag byte
A 1-byte field that specifies information about the data field.
Sequence number
A 2-byte field that identifies the record.
Control and data
A text control code, the name of an object, or coordinates for positioning
an image or page segment. The control information is followed by the data
to be printed.
The AS/400 system uses the following objects when processing AFPDS:
AFPDS spool buffers
The AFPDS print file is sent to the AS/400 system in one or more buffers.
These buffers contain single or multiple contiguous structured fields. A
pointer to the buffer and the length of each buffer are passed to the
AS/400 system.
AFPDS resource objects
Resource objects contain data and control information that can be used in
printing a job. These can be shared by different pages in the same job. A
resource is composed entirely of structured fields.
Types of resources are:
v Fonts
v Form definitions (FORMDEFs)
v Page segments
v Overlays
v Page definitions
Device control
Function set is composed of the IPDS commands that set up a page,
communicate device controls, and manage acknowledgement protocol. The
Note: There is no text data block. Text can be positioned anywhere in the
valid printable area. Data blocks can be positioned in relation to the
text.
IPDS has an hierarchical relationship between a physical page, a logical page, and
data blocks. In the following figure, the logical page boundaries do not correspond
to the physical page boundaries.
One of the strengths of IPDS is that independent applications can create source
data for each data block. The output of these independent applications is merged
at the printer to create an integrated mixed data page. For example, text data could
be produced on an editor like the OfficeVision editor, image data could be the
output of a scanner stored in a folder, and graphics data could be produced by
Business Graphics Utility. IPDS makes it possible to integrate application output
rather than requiring the use of integrated applications.
Loaded Fonts
A font is a set of characters in a particular type style and size. Fonts can be
downloaded from the host or may be resident in printer storage. Downloaded
fonts are called loaded fonts and come in one of the following configurations:
Coded font
A complete code page of graphic characters in a particular style. (A code
page maps each character in a font to a numeric value or code point.)
Symbol set
A set of characters simpler in structure than a coded font. Symbol sets are
used where typographic quality is not required. Many dot matrix printers
and displays use symbol sets.
Coordinate Systems
Xm, Ym Coordinate System (Physical Page)
IPDS uses orthogonal coordinate systems to define any point on a page. Distances
between these coordinate systems are measured in logical units or L-units rather
than physical pels.
The Xm, Ym coordinate system is the physical-page coordinate system. The top-left
corner of the physical page is always (0,0).
The Xm, Ym coordinate system is fixed for each media size. IPDS commands
cannot change the orientation of these coordinates. Xp, Yp Coordinate System
(Logical Page)
The Xp, Yp coordinate system is the logical-page coordinate system. The origin of
this system (Xp=0, Yp=0) is specified as an offset from the physical page origin
(Xm=0, Ym=0) through the Load Page Position command. IPDS commands cannot
change the orientation of the Xp, Yp coordinate system; it is always parallel to, but
offset from, the Xm, Ym coordinate system.
The size of the logical page in the Xp dimension is called the Xp extent. The size of
the logical page in the Yp dimension is called the Yp extent. The Xp, Yp coordinate
system is used to locate data blocks on the logical page.
The coordinate system for overlays is the same as the Xp, Yp coordinate system for
logical pages.
Note: Characters are developed on a page in the direction in which they will be
read (left to right, for example). The printer may actually place characters or
lines on a page in various directions (as in bidirectional printing).
The coordinates of the first text position on the logical page are called the initial
inline text coordinate (Io) and the initial baseline text coordinate (Bo). The
coordinates of the current position on the logical page are called the current inline
text coordinate (Ic) and the current baseline text coordinate (Bc).
Every IPDS command contains a flag byte. The setting on the acknowledgement-
required bit on this flag byte indicates the end of a command sequence to the
printer. The printer then sends an acknowledge reply to the host, as illustrated in
Length
A 2-byte field that specifies the length of the command. This count
includes itself, the command field, the flag byte and the optional
correlation ID (CID), and data fields. The length field can range from
X’0005’ to X’7FFF’.
Command
A 2-byte field that specifies the IPDS command.
Flag A 1-byte field that contains the IPDS command stream flags.
v Bit 0 is the acknowledgement required (ARQ) flag. If this bit is on, the
host requests the printer to send an acknowledge reply.
v Bit 1 is the correlation ID (CID) flag. If it is on, a 2-byte correlation ID
follows. If it is off, the CID is not present and the following bytes (if
any) contain the data field.
CID (correlation ID)
A 2-byte field that specifies an identifier for the command. A presentation
services program can use any value between X’0000’ and X’FFFF’ for the
correlation ID.
Data Not present for all commands. If present, it contains specific orders,
parameters, and data appropriate for the given command.
Default Handling
Defaults are values used as control parameters when no other values are specified
in the current command. IPDS defaults are invoked through omission or through
values transmitted in the data field portion of commands. The IPDS default
structure is normally hierarchical. General IPDS default rules are:
v If power has been interrupted or if the printer has been initialized,
printer-established page default values are used until specific IPDS default
values are received.
v Initial page values are established when the printer receives a Load Page
Descriptor command. If no such command is received, printer-established
default values remain in effect.
v Initial data block values are established when the printer receives either a Write
Image Control, Write Image Control 2, Write Bar Code Control, or Write
Graphics Control command. These values remain in effect until data controls
override them or until the printer receives an End command that ends the block.
The strategic architecture for the interchange of revisable and presentation form of
documents and objects used as resources is MO:DCA, which has evolved from
Revisable Form Text: Document Content Architecture (RFT:DCA).
The data stream for an MO:DCA document consists of various objects, such as text,
images, and graphics, as well as the logical and layout structure of the document.
The logical structure defines the logical content of the document—chapters, figures,
and lists. The layout structure defines the way the data should be presented.
┌─────────────┐
│ Document │
└──────┬──────┘
│
│
┌───────────┬───────────────┼───────────────┬───────────┐
│ ┌──────┴──────┐ ┌──────┴──────┐ ┌──────┴──────┐ │
┌──┴──┐ │ Resource │ │ Master │ │ Pages │ ┌─┴───┐
│ BDT │ │ Groups │ │ Environment │ │ │ │ EDT │
│ │ │ │ │ Groups │ │ │ │ │
└─────┘ └─────────────┘ └─────────────┘ └─────────────┘ └─────┘
The following different types of objects make up MO:DCA. All of these objects are
supported by IPDS:
v Bar Code Object Content Architecture (BCOCA)
v Image Object Content Architecture (IOCA)
v Graphics Object Content Architecture (GOCA)
v Presentation Text Object Content Architecture (PTOCA)
v Font Object Content Architecture (FOCA).
Two structured fields provide the necessary presentation information to the printer:
P T descriptor structured field
Defines several positional parameters for the object
P T data structured field
Contains the presentation text and the control sequences for positioning
graphic characters. These graphic characters are defined within the coded
fonts.
PostScript
PostScript is not a data stream but rather a page description language developed
by Adobe Systems Incorporated and used to prepare page layouts for printing.
This involves not only text with typesetting information on sizes and fonts, but
graphics and scanned images as well. An example is Aldus Pagemaker**, which
| Other DBCS device file support and conversion information can be found in the
| Data Management topic in the online Information Center.
In the following figure, using the first byte as the vertical axis and the second byte
as the horizontal axis, 256 x 256 intersections (code points) are expressed. The
lower-right code area is designated as the valid double-byte code area and X is
assigned to the double-byte blank.
2nd byte
1st 0 4 4 F F
byte 0 0 1 E F
00
40 x
41
FE
FF
By assigning the values hex 41 to hex FE in the first and second bytes as the DBCS
character codes, the codes can be grouped in wards with 192 code points in each
ward. For example, the code group with the first byte starting with hex 42 is called
ward 42. Ward 42 has the same alphanumeric characters as those in a
corresponding single-byte EBCDIC code page, but with double-byte codes. For
example, the character A is represented in single-byte EBCDIC code as hex C1 and
in IBM-host code as hex 42C1.
This code scheme applies to the AS/400 system, System/36, and System/38, as
well as the System/390* system. A different DBCS code scheme, called the IBM
Personal Computer DBCS code scheme, is used on the Personal System/55. For
details of the IBM Personal Computer DBCS code scheme, refer to IBM PS/55
publications.
Shift-Control Characters
When the IBM-host code scheme is used, the system sometimes uses shift-control
characters to identify the beginning and end of a string of double-byte characters.
The shift-out (SO) character, hex 0E, indicates the beginning of a double-byte
character string. The shift-in (SI) character, hex 0F, indicates the end of a
double-byte character string.
2-Byte Data
Control
Character
RSLH713-1
Double-byte data can be displayed only at DBCS display stations and printed only
on DBCS printers. Double-byte data can be written onto diskettes and tape, as well
as onto disk storage.
| Consider the width of double-byte characters when you calculate the length of a
| double-byte data field because field lengths are usually identified as the number of
| alphanumeric character positions used. For more information on calculating the
| length of fields containing double-byte data, refer to the DDS Reference topic in
| the online Information Center.
There are two types of double-byte characters: basic and extended. These
characters are usually processed by the device on which the characters are
displayed or printed.
Note: This does not apply to IPDS printers that support DBCS data. For IPDS
printers, all characters printed are downloaded from the AS/400 system.
Basic Characters
A DBCS device can process basic double-byte characters without any assistance
from the system. The device knows about the graphic characters because they are
stored in the device. The number of double-byte characters that are stored in the
device varies with the language supported and the storage size of the device. A
DBCS device can display or print basic characters without using the extended
character processing function of the operating system.
Extended Characters
When processing extended characters, the device requires the assistance of the
system. The system must tell the device what the character looks like before the
device can display or print the character. Extended characters are stored in a DBCS
font table, not in the DBCS device. When displaying or printing extended
characters, the device receives them from the DBCS font table under control of the
operating system.
Note: You may also use double-byte literals as text and comments in a file,
such as with the DDS keyword TEXT. However, the system does not
consider a file, whose only DBCS attribute is that it has double-byte
comments, to be a DBCS file.
– By specifying the Alternative Data Type (IGCALTTYP) DDS keyword in
display and printer files. This keyword lets you use display and printer files
with both alphanumeric and double-byte applications. When you put the
IGCALTTYP keyword into effect, you can use double-byte data with the file.
Put the IGCALTTYP keyword into effect by creating, changing, or overriding
display and printer files with the IGCDTA(*YES) value. You can put the
IGCALTTYP keyword into effect for display and printer files by specifying
IGCDTA(*YES) on the following device file commands:
- Create Display File (CRTDSPF)
- Create Printer File (CRTPRTF)
- Change Display File (CHGDSPF)
- Change Printer File (CHGPRTF)
- Override with Display File (OVRDSPF)
- Override with Printer File (OVRPRTF)
Except when using the IGCALTTYP function, you do not need to specify
IGCDTA(*YES) on the file creation command if you have already specified
DBCS functions in the DDS. Instead, specify IGCDTA(*YES) when the file has
DBCS functions that are not indicated in the DDS. For example, specify
IGCDTA(*YES) on the file creation command if the file is intended to contain
double-byte data.
v By specifying IGCDTA(*YES) on the following device file creation commands:
– Create Diskette File (CRTDKTF)
– Create Display File (CRTDSPF)
– Create Printer File (CRTPRTF)
– Create Tape File (CRTTAPF)
v By specifying IGCDTA(*YES) on the following database file creation commands:
Note: DBCS-graphic data type fields are supported for externally-described (DDS)
printer files only. For program-described printer files, the application
program must enclose the DBCS-graphic data type fields with the
appropriate shift-out and shift-in characters.
When the data involved contains double-byte characters, the printer file that is
used to place the data into the spooled file must be capable of processing
double-byte data. A printer file is capable of processing double-byte data when
*YES is specified on the IGCDTA parameter for the file. In most cases, the system
In some cases, however, the system cannot recognize the occurrence of double-byte
data and may attempt to use a printer file that is not capable of processing
double-byte data. If this occurs, the output at the display or printer may not be
readable. This can happen when object descriptions containing double-byte
characters are to be displayed or printed on an alphanumeric device.
To ensure that you receive correct results when you display or print double-byte
characters, some recommendations should be followed. Action is required on your
part if you have a single-byte national language installed as a secondary language.
Printer files that are received as part of the DBCS version of a product are always
capable of processing DBCS data.
Note: The IBM-supplied printer file QPSPLPRT should not have the IGCDTA
parameter value changed to *YES. If you run the CHGPRTF command in
the above example you must change the IGCDTA parameter value back
to *NO.
After this command has been completed, all printer files in all libraries will be
enabled for double-byte data. The change will be a permanent change.
2. If all printer and display devices attached to your system are not
DBCS-capable, it is recommended that you do not enable all IBM-supplied
printer files.
Instead, use the library search capabilities of the system to control which
printer files will be used for any particular job. When the potential exists that
double-byte data will be encountered, the library list for the job should be such
that the printer files that are DBCS-enabled will be found first in the library list.
Conversely, if only single-byte data is expected to be encountered, the library
list should be set up so the printer files that are not enabled for DBCS will be
found first. In this way, the printer file capabilities will match the type of data
that will be processed. The decision as to what type of printer file to use is
made on the basis of what type of data will be processed. The device that will
be used to actually display or print the data may also influence this decision.
In some cases it may be desirable to make the printer file only temporarily
DBCS-capable instead of making a permanent change. For a specific job, you
can make this temporary change by using the OVRPRTF command.
To temporarily enable a specific printer file, you can use the following
command:
OVRPRTF FILE(filename) IGCDTA(*YES)
where filename is the name of the printer file you want to enable.
Character Rotation
The DBCS printers can rotate double-byte characters 90 degrees counterclockwise
before printing so that the printed output can be read vertically.
HRSLS302-2
and rotates them so that you can read the printed characters vertically:
HRSLS303-2
Specify character rotation with the IGCCHRRTT parameter on the Create Printer
File (CRTPRTF), Change Printer File (CHGPRTF), and Override with Printer File
(OVRPRTF) commands, or with the IGCCHRRTT keyword in the DDS for the file
you are printing. This function rotates only double-byte characters. It does not
rotate alphanumeric characters.
HRSLS304-2
HRSLS305-2
To print twice as wide and twice as high, you would specify CHRSIZE (2 2).
HRSLS307-2
Specify condensed character printing with the IGCCPI parameter on the CRTPRTF,
CHGPRTF, and OVRPRTF commands.
The maximum number of lines that can be printed at one time is 200. The
maximum number of active vertical lines (vertical lines currently being printed on
the page) is 150. More than 200 DFNLIN keywords may be used per page if all the
define lines from the previous records have been printed.
Specify how to print shift-control characters on the DBCS printers with the
IGCSOSI parameter on the CRTPRTF, CHGPRTF, and OVRPRTF commands.
For data printed using the DBCS-graphic data type with an externally described
printer file, shift-out/shift-in processing is not used. Instead, the shift control
characters added to the DBCS data do not occupy any space on the printed output.
Condensed Printing
When specifying condensed printing on DBCS printers (by specifying
IGCCPI(*CONDENSED) on the CRTPRTF, CHGPRTF, or OVRPRTF command),
consider the following:
v Specify the page width in alphanumeric print positions with the CPI parameter.
Although the record to be printed may contain 88 double-byte characters (which
would use 176 print positions in normal printing) and the page width is 132
print positions, the double-byte data should print properly in condensed mode.
When describing printer files used with printers configured as a 5553 Printer, select
a page size in the range based on characters per inch:
CPI Page-Width Range
10 1 through 136
12 1 through 163
13.3 1 through 181
15 1 through 204
18 1 through 244
20 1 through 272
Choose one of the following (depending on the CPI selected) when describing
printer files used with printers configured as a 5583 Printer:
CPI Page-Width Range
10 1 through 132
12 1 through 158
13.3 1 through 176
15 1 through 198
18 1 through 236
20 1 through 264
You can specify that the system replace unprintable double-byte characters by
specifying the replace unprintable character parameter (RPLUNPRT(*YES)) on the
CRTPRTF, CHGPRTF, or OVRPRTF command, but you cannot choose the
replacement character.
When the system finds an unprintable double-byte character during printing, the
following happens:
v If you specify RPLUNPRT(*YES), the system does not send a message when it
finds unprintable characters. Instead, the system prints unprintable extended
characters as either the double-byte underline (__) when you specify extended
character processing, or as an undefined character when you do not specify
extended character processing.
For Japanese printers, the default symbol used is:
For Chinese and Korean printers, the default symbol used is the underscore.
Spanned Lines
If a printed line of double-byte data exceeds its specified page width (line length),
the system tries to continue printing the data. To do this, the system ignores the
FOLD parameter on the CRTPRTF, CHGPRTF, and OVRPRTF commands. As a
result, the system might not print the double-byte data as you expected and the
following occurs:
v If a record to be printed exceeds the page width, the printer wraps the data
(continues printing the record on the next line). Because the system is not aware
that the data is wrapped, the system does not skip lines and start new pages
properly. A new page might start in the middle of a record.
To avoid this problem, break double-byte data fields that might span pages into
several smaller fields.
One way to make sure that either the display or printer file is a DBCS file is to
override the file using the OVRDSPF or the OVRPRTF command. For example, to
override the system-supplied default printer file (the printer file used to print
displays that are printed by pressing the Print key), enter:
OVRPRTF FILE(QSYSPRT) IGCDTA(*YES)
Notes:
1. If you do not plan to use double-byte data, do not change the printer file
QSYSPRT to a DBCS file with a CHGPRTF command. This printer file is used
to print a variety of system data, including alphanumeric data. A system
performance degradation results if QSYSPRT is a DBCS file and it is processing
only alphanumeric data.
2. If the Print key is used to print the image of a display containing DBCS-graphic
data type fields, the system inserts shift-out and shift-in (SO/SI) characters
around the graphic data. Depending on the IGCSOSI printer file value, the
SO/SI characters could print as blanks, causing the printed alignment to be
different from what was displayed.
Refer to the Data Managementtopic in the online Information Center for more
information on overrides.
To avoid this problem, do the following when you receive the end-of-forms
message:
1. Remove the current form from the tractor feed.
2. Insert new forms.
3. Align the first form to the first line.
4. Press the CANCEL button on the printer.
5. Press the SELECT button on the printer.
6. Respond to the end-of-forms message:
Use the Work with Writer (WRKWTR) command to find out approximately
which page was last printed. The WRKWTR command displays the number
of pages that the writer has currently printed.
b. For direct printer output, enter RETRY to reprint the last page printed. This
ensures that all of the data is printed.
In addition, the following occurs using printer files that are indicated to be
DBCS-capable through DDS or with the IGCDTA parameter:
v For direct printer output, the system prints the file and sends a diagnostic
message describing the situation to your program message queue.
Instead of printing double-byte data, the system prints double-byte characters as
underscores (__) and prints shift-control characters as blanks ( ). Although the
system does not print the individual double-byte characters, they are correctly
stored in the system.
v For spooled printer output, the system sends an inquiry message to the message
queue named on the Start Printer Writer (STRPRTWTR) command. This message
lets you do the following:
– Continue printing. When you continue printing, the system prints the file but
does not print double-byte characters within it. Instead, the system prints
double-byte characters as underscores (__) and prints shift-control characters
as blanks ( ). Although the system does not print the individual double-byte
characters, they are correctly stored in the system.
– Hold the spooled file so that you can transfer it to an output queue used only
for DBCS output. See Chapter 3. Spool support for instructions on transferring
a spooled file.
– Cancel printing altogether.
Spool Support
Create separate output queues for double-byte and alphanumeric data. This may
improve throughput (the rate at which the system processes work) because the
system can process alphanumeric data more quickly than it can process
double-byte data.
| See theWork Management topic in the online Information Center for detailed
| information about creating output queues.
The QPQCHGCF program provides a way for you to indicate whether a particular
section of a double byte coded font is resident in the printer or should be
downloaded.
The QPQCHGCF program provides a way for you to indicate a particular section
of a double byte coded font is
v Resident in the printer and should not be downloaded
v Is not resident in the printer or has been changed (different version than one in
the printer) and needs to be downloaded by PSF/400 to the printer.
The font character set name may be a generic name. A generic name is a
character string of one or more characters followed by an asterisk (*); for
example, C0S0*. The asterisk substitutes for any valid characters. A generic
name specifies all font character sets with names that begin with the generic
prefix. If an asterisk is not included in the name, the system assumes it to be
the complete font character set name. To change all the font character sets in a
certain range, for example C0G16F70 - C0G16F7F, you should specify
C0G16F7* for the font character set name. Specifying C0G16F* would be the
same as *ALL and change all the font character sets in the coded font
(assuming all font character set names started with C0G16F0).
Resident-font-indicator:
Specifies whether the font character set is resident in the printer or if it is not
resident in the printer and needs to be downloaded by the system.
*NO: The font character set is not resident in the printer and needs to be
downloaded by the system to the printer. Also, the font character set may be
resident in the printer, but has been modified. In that case, *NO should be
specified.
:PK *YES: The font character set is resident in the printer and does not need to
be downloaded by the system to the printer.
Note:
All IBM supplied coded fonts are shipped with the resident font indicator
turned off. That means the entire font will be downloaded unless the
QPQCHGCF program is run to mark the IBM supplied sections as resident.
The font character set and code page pair are treated the same for marking
them resident or need to be downloaded. If the font character set has changed,
then the corresponding code page will also be marked as needing to
downloaded. If the code page has been changed, then the corresponding font
character will also be marked as needing to downloaded.
Example 2: Example below marks all the font character set/code page pairs in
sections 41 - 4F as resident and then marks sections 50 - 55 as resident.
CALL QPQCHGCF (X0G16B QFNT61 C0G16F4* *YES)
CALL QPQCHGCF (X0G16B QFNT61 C0G16F50 *YES)
CALL QPQCHGCF (X0G16B QFNT61 C0G16F51 *YES)
CALL QPQCHGCF (X0G16B QFNT61 C0G16F52 *YES)
CALL QPQCHGCF (X0G16B QFNT61 C0G16F53 *YES)
CALL QPQCHGCF (X0G16B QFNT61 C0G16F54 *YES)
CALL QPQCHGCF (X0G16B QFNT61 C0G16F55 *YES)
To run a batch job to mark IBM supplied sections as resident, you must edit the
appropriate member in QCDEFNT.
v Edit the JOBD parameter on the //BCHJOB statement. This JOBD should have
enough authority to change the coded fonts in the QFNT6X libraries.
v Edit this source file if you have changed any IBM supplied sections and want
these sections to be downloaded.
In order that the marked coded fonts take effect, you must perform the following:
v End PSF/400 (ENDWTR), if it is active.
v Run batch program to mark coded fonts.
v Start PSF/400 (STRPRTWTR).
Tables in this section describe the open and I/O feedback areas associated with
any opened printer file. The following information is presented for each item in
these feedback areas:
v Offset, which is the number of bytes from the start of the feedback area to the
location of each item
v Data type
v Length, which is given in number of bytes
v Contents, which is the description of the item and the valid values for it
The support provided by the high-level language you are using determines how to
access this information and how the data types are represented. See your
high-level language manual for more information.
Note: The tables in this appendix are relevant only to device file type of printer.
For a complete description of all file types (printer, diskette, displays, tape,
database, ICF, and inline) see the Data Managementtopic in the online
Information Center.
The open feedback area is the part of the open data path (ODP) that contains
general information about the file after it has been opened. It also contains
file-specific information, depending on the file type, plus information about each
device defined for the file. This information is set during open processing and may
be updated as other operations are performed.
Table 51. Open Feedback Area
Offset Data Type Length in Bytes Contents
0 Character 2 Open data path (ODP) type:
DS Printer file not being spooled, display,
tape, ICF, save, or diskette file not
being spooled.
SP Printer or diskette file being spooled or
inline data file.
68 Character 3 Reserved.
71 Binary 2 Number of lines on a printed page.
73 Binary 2 Number of positions on a printed line.
75 Binary 4 Not applicable to printer.
| 79 Binary 4 Spooled file number.
83 Character 10 Reserved.
93 Character 10 Reserved.
103 Binary 2 Not applicable to printer.
105 Binary 2 Maximum number of records that can be read
or written in a block when using blocked record
I/O.
107 Binary 2 Overflow line number.
109 Binary 2 Blocked record I/O record increment. Number
of bytes that must be added to the start of each
record in a block to address the next record in
the block.
111 Binary 4 Reserved.
115 Character 1 Miscellaneous flags.
Bit 1: Reserved.
Bits 3-5:
Not applicable to printer.
Bits 7-8:
Reserved.
The I/O feedback area consists of two parts: a common area and a file-dependent
area. The file-dependent area varies by the file type. This guide discusses device
file type of printers only.
Byte 1:
hex 00 Database
hex 01 Display
hex 02 Printer
hex 04 Diskette
hex 05 Tape
hex 09 Save
hex 0B ICF
One DDS uses row/column as the positioning method for the data being acted on.
The other DDS uses absolute positioning as its positioning method. When absolute
positioning is used in DDS, all other objects (page segments, boxes, rotated text)
must use absolute positioning.
The following figure shows DDS coding using the row/column method of
positioning.
000100911101 R LABEL
000200911101 NAME 25A O 8 10
000300911101 ADDR1 25A O 9 10
000400911101 CITY 15A O 10 10
000500911101 STATE 2A O 10 27
000600911101 ZIPCD 5S 0O 10 30BARCODE(POSTNET *HRITOP)
000700911101 13 5'Made in the USA'
000800911101 TXTRTT(270)
000900911101 FONT(5687 (*POINTSIZE 6))
Use of absolute positioning requires the Advanced Function Printing data stream
(AFPDS). This is obtained on the AS/400 system by specifying *AFPDS on the
device type (DEVTYPE) parameter of the printer file.
Inches or centimeters are the measurement methods available. You choose the
measurement method by specifying *INCH or *CENT on the unit of measure
(UOM) parameter of the printer file.
In this example, a page segment called LOGO is specified to start printing at 1.5
units down and 1 unit in. The TEXT record (Made in the USA) is supplied by the
application program. The UOM parameter value (*INCH or *CM) of the printer file
determines which unit of measurement is used.
Atlanta GA
RV2H336-1
AS/400
Atlanta GA
RV2H335-1
To print the FGID, font character set, or coded font you want to see, edit the DDS
source and insert the correct identifier or name.
Notes:
1. These sample programs work only with printers configured as AFP(*YES).
2. See “Appendix D. Working with Fonts, Font Character Sets, Code Pages,
CHRIDs, and Coded Fonts” on page 387 for the names of FGIDs, font character
sets, and coded fonts.
Getting Started
Follow the instructions in the list below. If you need assistance with any of the CL
commands, use the F4 (Prompt) key and then press the Help key on any of the
parameters.
1. Create a library to contain the objects needed to print the font samples. In this
example, the library is named FONTSAMPLE.
CRTLIB FONTSAMPLE
2. Add FONTSAMPLE to your library list.
ADDLIBLE FONTSAMPLE
3. Create a source physical file in FONTSAMPLE to contain your source code. In
this example the source file is named SOURCE.
CRTSRCPF FONTSAMPLE/SOURCE
4. Add a member named FONT to that physical file. This member is used for
entering the source code for the printer file.
ADDPFM FILE(FONTSAMPLE/SOURCE) MBR(FONT)
5. Edit the member FONT with the source entry utility (SEU).
STRSEU SRCFILE(FONTSAMPLE/SOURCE) SRCMBR(FONT) TYPE(PRTF)
Type the DDS source code (shown in “DDS Source Code” on page 548) for the
printer file. When you are done, press F3 to exit.
6. Create the printer file from the DDS source you just typed in.
CRTPRTF FILE(FONTSAMPLE/FONT) SRCFILE(FONTSAMPLE/SOURCE) SRCMBR(FONT)
DEVTYPE(*AFPDS)
7. Choose the high-level language you will be using to produce printed output.
The compiler for the high-level language you choose must be installed on
your system. Samples are given for C, RPG, Pascal, and COBOL. Add a
C Source Code
5738PW1 V2R2M0 920615 SEU SOURCE LISTING
SOURCE FILE . . . . . . . FONTSAMPLE/SOURCE
MEMBER . . . . . . . . . CCODE
SEQNBR*...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7
...+... 8 ...+... 9 ...+... 0
100 #include <stdio.h>
200 #include <xxasio.h>
300 main()
400 {
500 FILE *outfile;
600
700 outfile = fopen("font","wb type=record");
800 QXXFORMAT(outfile, "REC1 ");
900 fwrite("",0,0,outfile);
1000 }
* * * * E N D O F S O U R C E * * * *
IBM may have patents or pending patent applications covering subject matter
described in this document. The furnishing of this document does not give you
any license to these patents. You can send license inquiries, in writing, to:
IBM Director of Licensing
IBM Corporation
North Castle Drive
Armonk, NY 10504-1785
U.S.A.
The following paragraph does not apply to the United Kingdom or any other
country where such provisions are inconsistent with local law:
INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS
PUBLICATION “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS
FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or
implied warranties in certain transactions, therefore, this statement may not apply
to you.
Licensees of this program who wish to have information about it for the purpose
of enabling: (i) the exchange of information between independently created
programs and other programs (including this one) and (ii) the mutual use of the
information which has been exchanged, should contact:
IBM Corporation
Software Interoperability Coordinator
3605 Highway 52 N
Rochester, MN 55901-7829
U.S.A.
This information contains examples of data and reports used in daily business
operations. To illustrate them as completely as possible, the examples include the
names of individuals, companies, brands, and products. All of these names are
fictitious and any similarity to the names and addresses used by an actual business
enterprise is entirely coincidental.
COPYRIGHT LICENSE:
If you are viewing this information softcopy, the photographs and color
illustrations may not appear.
Trademarks
The following terms are trademarks of the IBM Corporation in the United States or
other countries or both:
AD/Cycle
Advanced Function Printing
AFP
APPN
Application System/400
AS/400
C/400
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of
Microsoft Corporation in the United States and/or other countries.
Other company, product, and service names may be trademarks or service marks
of others.
Notices 553
554 OS/400 Printer Device Programming V5R1
Bibliography
The following is a list of manuals and topics in configuration information, including detailed
the iSeries 400 Information Center that provide descriptions of network interface, line,
additional information about topics described or controller, device, mode, and class-of-service
referred to in this manual. The manuals in this descriptions, configuration lists, and connection
bibliography are listed with their full title and lists.
order number, but when referred to in text, a | v Networking.
shortened version of the title is used.
| This topic in the online iSeries 400 Information
v About Type: Guide for Type Users (Current Release) | Center contains information on configuring and
G544-3122. | using the Transmission Control
This publication introduces the use of | Protocol/Internet Protocol (TCP/IP) and
typography in designing and printing | writing programs to the TCP/IP application
documents with special emphasis using | program interface.
Advanced Function Printing fonts and printing | v DDS Reference: Printer.
systems.
| This topic in the online iSeries 400 Information
v About Type: Samples of 240-Pel Digitized Type | Center provides detailed descriptions of the
G544-3644. | entries and keywords needed to describe
This manual provides type samples of 240-pel | database files (both logical and physical) and
fonts. | certain device files (for displays, printers, and
v About Type: Technical Reference for 240-Pel | intersystem communications function (ICF))
Digitized Type, S544-3516. | external to the user’s programs.
This manual provides information about the | v Database Management.
names, content and size of the character sets, | This topic in the online iSeries 400 Information
code pages and coded fonts in the font licensed | Center provides information about using files
programs used in printing on 240-pel | in application programs. This manual includes
dots-per-inch (240-pel) non-impact printers | information on the following topics:
supported by Advanced Function Printing | – Fundamental structure and concepts of data
(AFP) software. | management support on the system
v About Type: Typographic Primer for Digitized Type | – Overrides and file redirection (temporarily
G544-3183. | making changes of files when an application
This publication introduces typographic | program is run)
concepts to show the reader how to create | – Copying files by using system commands to
effective printed material with style and | copy data from one place to another
emphasis, and to illustrate how much value
| – Tailoring a system using double-byte data
type characters from IBM’s typographic fonts
can add to business messages. This is primarily | v Local Device Configuration.
a marketing tool. | Provided via PDF, this manual provides
| v Management Central. | information on how to do an initial local
| hardware configuration and how to change that
| This topic in the online iSeries 400 Information
| configuration. This manual also contains
| Center gives system operators a fast path for
| conceptual information about device
| system operator tasks on AS/400. It covers the
| configuration and planning information for
| basics of system startup and provides
| device configuration on the 9406, 9404, and
| information about the system control panel,
| 9402 system units.
| starting and stopping the system, using media,
| working with PTFs, and handling problems. | The PDF includes additional information such
| as configuration terminology for lines,
v Communication Configuration.
| controllers, and devices. It also includes
Provided via PDF, using this manual, the user | information on automatic configuration, how to
can configure the communications functions | do an initial configuration, how to change a
available with OS/400. It provides general | configuration to suit the system, how to do
Index 559
deleting double-byte data (continued) example (continued)
output queue where you can use 515 overriding (continued)
damaged 137 downloading file names or types 71
device, alphanumeric font 387 file names or types and attributes
effects of printing double-byte data DSPFFD (Display File Field Description) of new file 72
on 525, 527 command 111 printer file used in program 70
device definition list 536 DSPUSRPRTI (Display User Print exit points
device description 49 Information) command 173 network print server 197
device type considerations duplex 54 expanded printing 521
OS/400 226 definition 64 extended alphabetics 108
DEVTYPE values keyword 64 extended character processing 516
*AFPDSLINE 223 externally described printer file
*LINE 223 description 41
OS/400 223
DFNLIN (define line) keyword 522
E example 59
EDGE STITCH parameters used at close
dialog sharing processing 67
Element 1: Reference Edge 54
parameter 255 parameters used at open
Element 2: Reference Edge Offset 54
direct print jobs 141 processing 60
Element 3: Number of Staples 54
diskette file parameters used for output
Element 4: Staple Offsets 54
DBCS 517 processing 61
example 54
display device
edge stitch parameter (EDGESTITCH)
for graphics 319
Element 1: Reference Edge 96
display file
DBCS 517
Element 2: Reference Edge Offset 96 F
Element 3: Number of Staples 96 feedback area
Display File Field Description (DSPFFD)
Element 4: Staple Offsets 96 I/O
command 111
example 96 common 538
Display Print Services Facility
using 96 printer 540
Configuration (DSPPSFCFG) 245
edit code open
Display User Print Information
creating 110 definition 533
(DSPUSRPRTI) command 173
definition 64 device definition list 536
Display User Print Information
description 110 FGID (font global identifier)
(RTVUSRPRTI) command 173
externally described files 110 example 390
displaying
keyword 64 selection 390
user print information 173 program-described files 110
distributed data management (DDM) substitution 390
user-defined
printing 349 fidelity (FIDELITY) parameter 88
changing 111
document content architecture, final-form field
description 110
text 494 editing output 110
edit word
double-byte character file
definition 64
basic 516 description 110 attributes
code scheme 512 keyword 64 changing 70
extended 516 editing changing versus overrides 70
how the system processes 516 output fields 110 DBCS
how to identify a string of 514 electronic overlay description of 517
process extended characters 516 creating 89 device 521
size 515 elements of printing how to specify 517
unprintable 524 description printer 519
double-byte character set (DBCS) 511 job description 3 displaying field descriptions 111
code scheme 512 messages 3 overrides versus changing 70
codes, invalid 515 output queue 3 sending 143, 236
field print devices 3 file description
determining the length 515 printer files 3 adding fields 111
files, restrictions on 519 printer writer 3 changing 111
printer functions 521 spooled file 3 deleting fields 111
printer support 329, 330 system values 3 recompiling 111
printers, using condensed printing user profile 3 file separator 156
on 523 workstation description 3 final-form text 494
double-byte character set printer examples 359 first-character forms-control 101
support 329, 521 empty spooled file member first-character forms-control data
double-byte code reclaiming 150 control codes, list 103
effects of printing invalid 515 end-of-forms on the 5553 Printer 526 example 103
double-byte data Euro currency symbol FNTCHRSET (font character set)
basic information 511 font families with Euro currency example 390
considerations for using 515 symbol 214 naming convention 388
fields, determining the length 515 example selection 390
identifying 515 overriding substituting 390
restrictions on 515 attributes of printer file 70 FNTRSL 55
Index 561
IPDS (intelligent printer data mixed object: document content open processing (continued)
stream) 496 (continued) architecture (MO:DCA) 505 externally described printer file
Xm, Ym coordinate system 500 MO:DCA (mixed object: document parameter list 60
Xp, Yp coordinate system 501 content architecture) 505 program-described printer file
IPDS dialogs multinational environment parameter list 49
sharing 254 character set 107 order of spooled files on output
IPDS pass-through code page 107 queue 77, 129
limitations 247 extended alphabetics 107 OS/400
working with 246 multiple output queue AFPCHARS parameter 225
IPDS to PDF controlling 136 application considerations for line
transformation 250 when to use 136 data 225
multiple printer writer carriage control characters 226
balancing printer work 140 CTLCHAR values 224
J example 140
MULTIUP (pages per side) parameter
CVTLINDTA parameter 225
device type considerations 226
job description
duplex 81 DEVTYPE(*AFPDSLINE) 226
commands 369
examples 82 DEVTYPE(*LINE) 226
definition 16
font specified 81 DEVTYPE values 223
job separator 156
printer used 81 FORMDF parameter 218
restrictions 85 IGC parameters 229
INVDTAMAP (Invoke Data Map)
K Keyword 231
keyword, DDS 61
N INVMMAP (medium-map-name) DDS
keyword 232
naming
PAGDFN parameter 221
L spooled file 151
network-attached printers
table reference characters (TRC) 229
LAN-Attached printers TBLREFCHR parameter 224
TCP/IP 273
ASCII 263 OS/400 network print server
network file
level checking accessing 195
receiving 242
changing fields in a file exit points 197
working with 242
description 111 prestart jobs 195
network print server
library OUTPTY (output priority) parameter 77
accessing 195
description 209 exit points 197 output
library list prestart jobs 195 printer file
description 209 network printer example 68
device resource 258 description 332 from externally described 68
user resource 258 network printing 339 from program-described 68
licensed program 3270 printer emulation 339 redirecting
definition 325 BSC 3270 printer emulation 339 spooled file 112
limitation distributed data management (DDM) output, printed
AFP-to-ASCII transform 286 printing 349 locating
line data functions 339 using user profile 140
DDS keywords supported 230 object distribution printing 350 output considerations
description 235 RJE printing 340 spooled file 101
work with 223 Notices 551 output priority (OUTPTY) parameter 77
line printer daemon (LPD) number of output processing
definition 336 externally described printer file
spooled files
line printer requester (LPR) parameter list 61
controlling 150
definition 336 program-described printer file
Line Printer Requester (LPR) parameter list 56
command 336
lines per inch (lpi) O output queue
changing in a printer file 362
definition 485 object distribution printing 350
commands 370
LPR (Line Printer Requester) ODP (open data path)
controlling printing with
command 336 definition 533
ending time 131
LVLCHK (level check) parameter overrides 71 spooled file size (pages) 131
specifying 111 open considerations starting time 131
SCHEDULE parameter 100 creating 12, 126, 129
spooled files 100 damaged 137
M open data path (ODP) DBCS considerations 527
manuals description 533 default for printer 128
AS/400 555 overrides 71 default for system printer 129
matching parameters open feedback area definition 4
System/390 and AS/400 237 definition 533 description 125
message device definition list 536 determining your 12
about spooled files 143 open processing multiple 12, 136
when requesting printing 5 description 49 order of spooled files on 77, 129
Index 563
printing (continued)
controlling
Q remote system printing 159 (continued)
description 159
examples 23 QPRTDEV (default printer device) system example
double-byte characters value AS/400 (V3R1 or later) to PS/2
condensed 521 changing 360 with PSF for OS/2 189
considerations for 521 displaying 360 AS/400 (V3R1 or later) to
expanded 521 IBM-supplied value 22 VM/MVS 186
on alphanumeric printers 527 QPRTJOB job AS/400 (V3R7 or later) to NetWare
restrictions on 523 cleanup 158 for remote system printing 192
rotated 521 description 157 AS/400 to AS/400 (both systems at
special functions 521 using 157 V3R1 or later) 176
elements QPRTTXT (print text) system value 109 AS/400 to AS/400 (V3R1 or later
definitions 3 QPSPLPRT to V2R3 or earlier) 181
diagram 5 printer file how it works 160
examples 359 restriction 139 spooled file status
hierarchy diagram 15 QRCLSPLSTG (reclaim spool storage) defer (DFR) 174
job description 16 system value 151 send (SND) 174
output queue 12 queue Start Remote Writer (STRRMTWTR)
printer files 7, 19 output command, using 169
printer writer program 14 damaged 137 remote writer
spooled file 10 DBCS 527 starting 139
system value 22 recovering 137 remote writer program
user profile 17 QWP4019 program definition 4, 139
workstation description 18 description 321 starting 140
graphics examples 323 resources for Advanced Function Printing
#$@INCLGRPH command how it works 323 fonts 209
word 117 how to use 321 form definitions 209
images of fonts 547 page definitions 209
on a remote system 159 page overlays 209
personal computer environment 332 R page segments 209
status of spooled file 147 RCLSPLSTG (Reclaim Spool Storage) restarting
using RJE 343 command 150 printing 148
PrintManager/400 317 RCVNETF (Receive Network File) Restore Spooled File (ZRSTSPLF)
prioritizing command 242 command 156
spooled file 77, 129 Receive Network File (RCVNETF) restriction
command 242 double-byte data
processing
receiving condensed characters 523
extended characters 516
Advanced Function Printing data end-of-forms on the 5553
profile, user stream (AFPDS) file Printer 526
changing 360 RCVNETF command 242 extended characters 523
definition 4 WRKNETF command 242 files 519
displaying 360 printer output from host system 344 in alphanumeric field 525
parameters for printed output 17 Reclaim Spool Storage (RCLSPLSTG) invalid double-byte codes 515
working with 360 command 150 on alphanumeric printers 527
program reclaiming spanned lines 525
QWP4019 321 empty spooled file members 150 spanned pages 526
program-described printer file record length spooling 527
print data 345 unprintable double-byte
description 41
recovering characters 524
example 47
output queue 137 using Print key 526
first-character forms-control data
redirecting RESTRTMR (Restart timer) 255
control codes, list 101
output 112, 152 RETRY (SNA retry count) 255
parameters used at close
spooled files 112, 152 RETRYDLY (Delay time between SNA
processing 58
REDUCE (reduce) retries) 255
parameters used at open
processing 49 *NONE specified 86 return code
parameters used for output *TEXT specified 81 printer file
processing 56 reduce parameter (REDUCE) description 373
*NONE specified 86 major 00 373
prompt display 12
*TEXT specified 81 major 80 375
proportionally spaced font 104
related printed information 555 major 81 379
PSF (Print Service Facility) configuration Release Writer (RLSWTR) command 140 major 82 381
object major 83 383
Remote PrintManager (RPM)
working with 245 description 205 RJE configuration
PSF Direct remote system printing 159 creating 341
description 206 benefits 159 RJE forms control table 342
PTOCA (presentation text object content Create Output Queue (CRTOUTQ) RJE printing 340
architecture) 507 command, using 161 canceling writers 344
Index 565
support Work with Spooled Files (WRKSPLF)
DBCS command 136, 142
description 511 Work with Writers (WRKWTR)
device 521 command 137, 527
device file 517
Working with overlays 329
printer 521
spooling 527 workstation description
system value definition 4, 18
changing 360
writer
definition 5
displaying 360 changing 137, 140
QPRTDEV (printer device) 22 holding 140
QPRTTXT (print text) 109 releasing 140
QRCLSPLSTG (reclaim spool working with 137
storage) 151 writers
multiple 140
WRKNETF (Work with Network Files)
T command 242
table reference characters (TRC)
WRKSPLF (Work with Spooled Files)
ANSI 229
command 136, 142
machine code 229
OS/400 229 WRKWTR (Work with Writers)
tape device file command 137, 527
DBCS 517
TBLREFCHR parameter
OS/400 224
TCP/IP network-attached printers 273
Z
TCP/IP spooled file ZRSTSPLF (Restore Spooled File)
sending 336 command 156
transform, data stream ZSAVSPLF (Save Spooled File)
AFP-to-ASCII 283 command 156
SCS-to-ASCII 283
typographic font 104
U
unprintable character
5262 and 4245 printers 107
double-byte restrictions 524
replacing 106
user print information 173
changing 173
displaying 173
user profile
changing 359
command 369
definition 4
displaying 359
parameters for printed output 17
working with 359
USRRSCLIBL 54
W
Work with Network Files (WRKNETF)
command 242
Work with PSF Configuration
(WRKPSFCFG) 245
work with spooled file
options
attributes 145
change 144
list of 142
messages 143
send 143
work with print status 147
Overall, how satisfied are you with the information in this book?
How satisfied are you that the information in this book is:
When you send comments to IBM, you grant IBM a nonexclusive right to use or distribute your comments in any
way it believes appropriate without incurring any obligation to you.
Name Address
Company or Organization
Phone No.
___________________________________________________________________________________________________
Readers’ Comments — We’d Like to Hear from You Cut or Fold
SC41-5713-04 Along Line
_ _ _ _ _ _ _Fold
_ _ _and
_ _ _Tape
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Please
_ _ _ _ _do
_ _not
_ _ staple
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _Fold
_ _ _and
_ _ Tape
______
NO POSTAGE
NECESSARY
IF MAILED IN THE
UNITED STATES
IBM CORPORATION
ATTN DEPT 542 IDCLERK
3605 Highway 52 N
ROCHESTER MN 55901-7829
_________________________________________________________________________________________
Fold and Tape Please do not staple Fold and Tape
Cut or Fold
SC41-5713-04 Along Line
SC41-5713-04
Spine information: