About cookies on this site Our websites require some cookies to function properly (required). In addition, other cookies may be used with your consent to analyze site usage, improve the user experience and for advertising. For more information, please review your options. By visiting our website, you agree to our processing of information as described in IBM’sprivacy statement. To provide a smooth navigation, your cookie preferences will be shared across the IBM web domains listed here.
Troubleshooting
Problem
This document provides directions for creating and using a basic Infoprint Server mapping object.
Resolving The Problem
A map object is an object that is used to supply values to the IBM-supplied Infoprint Server mapping program. It acts as a database where the IBM-supplied mapping program will look for intelligent routing distribution rules. Each map object is made up of multiple map entries. Each map entry defines what is to be done to a spooled file if its attributes match the selection criteria specified by that map entry. A PDF map object should have at minimum two entries. The last entry should be a catch-all entry that will be used to process a file if it does not match any other entries' selection criteria.
Each map entry has two parts:
Creating the Map Object and Map Entries
1. CRTPDFMAP QGPL/MYMAPOBJ
2. WRKPDFMAPE QGPL/MYMAPOBJ
3. A Work With PDF Map Entries screen will be displayed:

To add an entry, set the Option to 1, the Sequence Number to a number, and Segmented to *NO. (You can have entries that let you handle different segments of a spooled file differently; however, that is not covered in this document.) Press Enter.
4. An Add PDF Map Entry screen will be displayed:

This is where you set the selection criteria. For instance, if you want the system to use this entry to work on spooled files with a name of MYSPLF, you would set Spooled File to MYSPLF. If you want this entry to work for any spooled file, you would leave all of the selection criteria set to *ALL. Once you are done setting the selection criteria, press Enter. (Note: If you set the Output Queue to a specific output queue here, in order for this entry to be used, the writer would have to be started to that specific output queue.)
5. A Define PDF Map Action for Spooled File screen will be displayed:
This is the first screen where you would define what you want to happen to the resulting PDF file. For instance, if you want it to be e-mailed, set Mail to *YES. If you want it to be e-mailed and also to have a copy archived in an IFS directory, you would set Mail to *YES and Stream File to *YES. When done here, press Enter.
6. An Add PDF Map Entry screen will be displayed. It will contain parameters related to the PDF map action you selected on the previous screen. You can use F1 while your cursor is on any of the given parameters in order to get more detail on what valid values would be. The default values of *PSFDFT, *PSFCFG, and *SPLF have the following meanings: *PSFDFT – value is assigned from Infoprint Server, *PSFCFG – value is assigned from the PSFCFG object settings, *SPLF – value is assigned from the spooled file’s attributes.
A. For PDF map action Mail *YES, you get the following parameters:
Some of the parameters (CC e-mail addresses, BCC e-mail addresses, ReplyTo e-mail addresses, E-mail body, and E-mail attachments) are only usable if you are specifying an SMTP mail server for the PDF Mail Server in your PSFCFG object.
B. For PDF map action PDF Spooled File *YES, you get the following parameters:
C. For PDF map action AFP Spooled File *YES, you get the following parameters:
D. For PDF map action Stream File *YES, you get the following parameters:
Press Enter.
7. Repeat Steps 3 through 6 until you have all of the mapping entries you need. The system will go through these entries according to their sequence number. The spooled file will use the first mapping entry it encounters where it fits the selection criteria. (Note: The last mapping entry in the sequence should be a catch-all, meaning it should have all of its selection criteria set to *ALL. The catch-all entry is meant to handle any spooled file that has already filtered through all the previous mapping entries.)
Using the Mapping Object
1. Make sure the writer for the Infoprint Server LAN *IPDS device you want to use is ended. (ENDWTR writer_name) A working Infoprint Server LAN *IPDS device will already have a PSFCFG object created and referenced in the device description as the User Defined Object.
2. CHGPSFCFG psfcfg_object_name
a. Set PDF User Program to *IBMPGM
b. Set PDF Mapping Object to the name of the mapping object you created. You need to specify the library it is in, as well.
3. Press Enter.
The next time you restart the writer to your Infoprint Server LAN *IPDS device, your mapping object will be in use.
Changing the Entries in an Existing Mapping Object
1. End the writer for any Infoprint Server LAN *IPDS device that uses that mapping object.
2. WRKPDFMAPE map_object_name
3. Take option 2 on any map entries you want to change.
Each map entry has two parts:
- File selection criteria: These settings are used by Infoprint Server to determine whether a file should be handled by this map entry or not.
- Map action: These settings define to the system how the resulting pdf file should be built and handled.
Creating the Map Object and Map Entries
1. CRTPDFMAP QGPL/MYMAPOBJ
2. WRKPDFMAPE QGPL/MYMAPOBJ
3. A Work With PDF Map Entries screen will be displayed:

To add an entry, set the Option to 1, the Sequence Number to a number, and Segmented to *NO. (You can have entries that let you handle different segments of a spooled file differently; however, that is not covered in this document.) Press Enter.
4. An Add PDF Map Entry screen will be displayed:

This is where you set the selection criteria. For instance, if you want the system to use this entry to work on spooled files with a name of MYSPLF, you would set Spooled File to MYSPLF. If you want this entry to work for any spooled file, you would leave all of the selection criteria set to *ALL. Once you are done setting the selection criteria, press Enter. (Note: If you set the Output Queue to a specific output queue here, in order for this entry to be used, the writer would have to be started to that specific output queue.)
5. A Define PDF Map Action for Spooled File screen will be displayed:
Sequence number . . . . . : 10
Segmented entry . . . . . : *NO
Text . . . . . . . . . . :
Type options, press Enter.
PDF map actions:
Mail . . . . . . . . . *NO
PDF spooled file . . . *NO
AFP spooled file . . . *NO
Stream file . . . . . . *NO
This is the first screen where you would define what you want to happen to the resulting PDF file. For instance, if you want it to be e-mailed, set Mail to *YES. If you want it to be e-mailed and also to have a copy archived in an IFS directory, you would set Mail to *YES and Stream File to *YES. When done here, press Enter.
6. An Add PDF Map Entry screen will be displayed. It will contain parameters related to the PDF map action you selected on the previous screen. You can use F1 while your cursor is on any of the given parameters in order to get more detail on what valid values would be. The default values of *PSFDFT, *PSFCFG, and *SPLF have the following meanings: *PSFDFT – value is assigned from Infoprint Server, *PSFCFG – value is assigned from the PSFCFG object settings, *SPLF – value is assigned from the spooled file’s attributes.
A. For PDF map action Mail *YES, you get the following parameters:
To e-mail addresses . . .
Subject . . . . . . . . . *PSFDFT
Message text . . . . . . *PSFDFT
CC e-mail addresses . . .
BCC e-mail addresses . .
ReplyTo e-mail address *MAILSENDER
Mail sender . . . . . . . *PSFCFG
PDF file name . . . . . . *PSFDFT (limited to 10 characters if using
*SNDDST for the PDF Mail Server in the PSFCFG object)
E-mail body: *NONE
E-mail attachments: *NONE
Master password . . . . . *NONE
User password . . . . . . *NONE
Encryption level . . . . *NONE
Some of the parameters (CC e-mail addresses, BCC e-mail addresses, ReplyTo e-mail addresses, E-mail body, and E-mail attachments) are only usable if you are specifying an SMTP mail server for the PDF Mail Server in your PSFCFG object.
B. For PDF map action PDF Spooled File *YES, you get the following parameters:
PDF spooled file:
Output queue . . . . . . . *PSFCFG
Library . . . . . . . .
Spooled file . . . . . . . *SPLF
User data . . . . . . . . *SPLF
Form type . . . . . . . . *SPLF
User-defined data . . . . *SPLF
C. For PDF map action AFP Spooled File *YES, you get the following parameters:
AFP spooled file:
Output queue . . . . . . . *PSFCFG
Library . . . . . . . .
Spooled file . . . . . . . *SPLF
User data . . . . . . . . *SPLF
Form type . . . . . . . . *SPLF
User-defined data . . . . *SPLF
D. For PDF map action Stream File *YES, you get the following parameters:
PDF stream file:
Stream file . . . . . . .
Public authority . . . . . *EXCLUDE
Press Enter.
7. Repeat Steps 3 through 6 until you have all of the mapping entries you need. The system will go through these entries according to their sequence number. The spooled file will use the first mapping entry it encounters where it fits the selection criteria. (Note: The last mapping entry in the sequence should be a catch-all, meaning it should have all of its selection criteria set to *ALL. The catch-all entry is meant to handle any spooled file that has already filtered through all the previous mapping entries.)
Using the Mapping Object
1. Make sure the writer for the Infoprint Server LAN *IPDS device you want to use is ended. (ENDWTR writer_name) A working Infoprint Server LAN *IPDS device will already have a PSFCFG object created and referenced in the device description as the User Defined Object.
2. CHGPSFCFG psfcfg_object_name
a. Set PDF User Program to *IBMPGM
b. Set PDF Mapping Object to the name of the mapping object you created. You need to specify the library it is in, as well.
3. Press Enter.
The next time you restart the writer to your Infoprint Server LAN *IPDS device, your mapping object will be in use.
Changing the Entries in an Existing Mapping Object
1. End the writer for any Infoprint Server LAN *IPDS device that uses that mapping object.
2. WRKPDFMAPE map_object_name
3. Take option 2 on any map entries you want to change.
Video Resources
This video provides a walkthrough of the PDFMAP creation and usage process.
Useful References
For more detailed information on creating and using Infoprint Server map objects, see the following references:
Infoprint Server for iSeries User's Guide (G544-5775-05) publication:
For more detailed information on creating and using Infoprint Server map objects, see the following references:
Infoprint Server for iSeries User's Guide (G544-5775-05) publication:
Additional publications:
[{"Type":"MASTER","Line of Business":{"code":"LOB68","label":"Power HW"},"Business Unit":{"code":"BU070","label":"IBM Infrastructure"},"Product":{"code":"SWG60","label":"IBM i"},"ARM Category":[{"code":"a8m0z0000000COCAA2","label":"Print-\u003EPDF Infoprint Server"}],"ARM Case Number":"","Platform":[{"code":"PF012","label":"IBM i"}],"Version":"6.1.0;7.1.0;7.2.0;7.3.0;7.4.0;7.5.0"}]
Was this topic helpful?
Document Information
More support for:
IBM i
Component:
Print->PDF Infoprint Server
Software version:
6.1.0, 7.1.0, 7.2.0, 7.3.0, 7.4.0, 7.5.0
Operating system(s):
IBM i
Document number:
634643
Modified date:
06 May 2024
UID
nas8N1012989
Manage My Notification Subscriptions