Open List of PDF Map Information (QPQOLPM) API


  Required Parameter Group:


  Default Public Authority: *USE

  Threadsafe: Yes

The Open List of PDF Map Information (QPQOLPM) API lists entries from a PDF Map object and places the list in a receiver variable. The size of the receiver variable determines the amount of information returned. You can access additional records by using the Get List Entries (QGYGTLE) API. On successful completion of the API, a handle is returned in the list information parameter. You may use this handle on subsequent calls to the following APIs:

For more information, see Process Open List APIs.


Authorities and Locks

Library authority
*EXECUTE
PDF Map object authority
*USE
PDF Map object lock
*SHRRD

Required Parameter Group

Receiver variable
OUTPUT; CHAR(*)

The receiver variable that receives the information requested. You can specify the size of the area to be smaller than the format requested as long as you specify the length parameter correctly. As a result, the API returns only the data the area can hold.

Length of Receiver variable
INPUT; BINARY(4)

The length of the receiver variable provided. This must be large enough to hold at least one record.

List information
OUTPUT; CHAR(80)

Information about the list of objects that was opened. For a description of the layout of this parameter, see Open list information format.

Number of records to return
INPUT; BINARY(4)

The number of records in the list to put into the receiver variable.

Format name
INPUT; CHAR(8)

The format of the information to be returned for the specified object. The valid format names are:


Filter information
INPUT; CHAR(*)

The information in this parameter is used for filtering the list of Map information. You must specify the filter format you are using with the Format of filter information parameter..

Format of filter information
INPUT; CHAR(8)

The format of the filter information that can be specified for retrieving entries from a Map object. The valid format name is:

Qualified Map object name
INPUT; CHAR(20)

The Map object for which you would like to retrieve information. The qualified object name has two parts. The first 10 characters contain the object name.

The second 10 characters contain the name of the library in which the object is located.

The following special values are allowed:


The actual library that is used is returned with the object information.


Error code
I/O; CHAR(*)

The structure in which to return error information. For the format of the structure, see Error code parameter.


PDFM0100 Format

The following table shows the information returned for the PDFM0100 format. If necessary, text fields are padded with blanks (X'40'). For more details about the fields in the this table, see PDFM0100 Format Field Descriptions.



PDFM0100 Format Field Descriptions

Form type for input spooled file. The type of forms that should be loaded on the printer before this spooled file is printed. This is the value for the input spooled file.

The following special values can be used for the form type for input spooled file:

Job name for input spooled file. The name of the job that produced the input spooled file.

The following special values can be used for the job name for input spooled file:

Mail tag for input spooled file. The value of the mail tag for the input spooled file.

The following special values can be used for mail tag for input spooled file:

Output queue library name for input spooled file. The name of the library where the output queue for the input spooled file resides.

If Output queue name for input spooled file has a value of *ALL, than this field is set to blanks.

Output queue name for input spooled file. The name of the output queue where the input spooled file resides.

The following special values can be used for the output queue name for input spooled file:

Reserved. Set to a null value.

Segmented entry. Indicates whether an entry is a segment.

The following values are used:

Sequence number of entry. The user-defined sequence number for an entry in a PDF Map object.

Spooled file name for input spooled file. The name of the existing spooled file.

The following special values can be used for the spooled file name for input spooled file:

Text description. A brief description of the PDF Map entry.

User data for input spooled file. The user-specified data which describe the input spooled file.

The following special values can be used for the user data for input spooled file:

User name for input spooled file. The name of the user that created the spooled file.

The following special values can be used for the user name for input spooled file:



PDFM0200 Format

The following table shows the information returned for the PDFM0200 format. If necessary, text fields are padded with blanks (X'40'). For more details about the fields in the this table, see PDFM0200 Format Field Descriptions.



PDFM0200 Format Field Descriptions

Form type for input spooled file. The type of forms that should be loaded on the printer before this spooled file is printed. This is the value for the input spooled file.

The following special values can be used for the form type for input spooled file:

Job name for input spooled file. The name of the job that produced the input spooled file.

The following special values can be used for the job name for input spooled file:

Length of AFPDS spooled file information. The size, in bytes, of an AFPDS Spooled File Information entry. If there is an entry (this field has a value greater than 0), there is a maximum of one entry for each non-segmented entry, and one entry for each segment of a segmented entry. For information on the format of an AFPDS Spooled File Information entry, see AFPDS Spooled File Information Entry.

Length of mail information entry. The size, in bytes, of a single Mail information entry. If there is an entry (this field has a value greater than 0), there is a maximum of one entry for each non-segmented entry, and one entry for each segment of a segmented entry. For information on the format of a mail information entry, see Mail Information Entry.

Length of PDF Map entry. The size, in bytes, of a single PDF Map entry for format PDFM0200. The length includes, in addition to the PDFM0200 format, all entries required to provide the data for one PDF Map entry. There is one PDF Map entry for each non-segmented entry, and one PDF Map entry for each segment of a segmented entry in the Map object. The entries are placed contiguously in storage. For information on the format of a PDF Map entry, see PDFM0200 Format. The number of PDF Map entries returned corresponds to the value in the Records returned field in the Open list information format.

Length of PDF spooled file information. The size, in bytes, of a PDF Spooled File Information entry. For information on the format of a PDF Spooled File Information Entry, see PDF Spooled File Information Entry.

Length of PDF stream file information. The size, in bytes, of a PDF Stream File Information Entry. This identifies the path where PSF/400 has written the PDF stream file. If there is an entry (this field has a value greater than 0), there is a maximum of one entry for each non-segmented entry, and one entry for each segment of a segmented entry. For information on the format of a stream file entry, see PDF Stream File Information Entry.

Mail tag for input spooled file. The value of the mail tag for the input spooled file.

The following special values can be used for mail tag for input spooled file:

Offset to AFPDS spooled file information. The offset, in bytes, from the beginning of the PDFM0200 format structure, to an AFPDS Spooled File Information entry. If this value is 0, an AFPDS Spooled File Information entry is not specified.

Offset to mail information entry. The offset, in bytes, from the beginning of the PDFM0200 format, to a Mail information entry. If this value is 0, a Mail information entry is not specified.

Offset to PDF spooled file information. The offset, in bytes, from the beginning of the PDFM0200 format, to a PDF Spooled File Information entry. If this value is 0, a PDF Spooled File information entry is not specified.

Offset to PDF stream file information. The offset, in bytes, from the beginning of the PDFM0200 format, to a PDF Stream File Information entry. If this value is 0, a PDF Stream File Information entry is not specified.

Output queue library name for input spooled file. The name of the library where the output queue for the input spooled file resides.

If Output queue name for input spooled file has a value of *ALL, than this field must be set to blanks.

Output queue name for input spooled file. The name of the output queue where the input spooled file resides.

The following special values can be used for the output queue name for input spooled file:

Reserved. Set to a null value.

Segmented entry. Indicates whether an entry is a segment.

The following values are used:

Sequence number of entry. The user-defined sequence number for an entry in a PDF Map object.

Spooled file name for input spooled file. The name of the existing spooled file.

The following special values can be used for the spooled file name for input spooled file:

Text description. A brief description of the PDF Map entry.

User data for input spooled file. The user-specified data which describe the input spooled file.

The following special values can be used for the user data for input spooled file:

User name for input spooled file. The name of the user that created the spooled file.

The following special values can be used for the user name for input spooled file:



Mail Information Entry

If necessary, text fields are padded with blanks (X'40'). For more details about the fields in the following table, see Mail Information Entry Field Descriptions.



Mail Information Entry Field Descriptions

CCSID of message text and subject. The CCSID associated with the message text and subject.

Change Comments in PDF file. Specifies whether users are allowed to add or change comments (annotations) or form fields in the PDF file. This field is applicable for Encryption levels *40RC4 and *128RC4.

The following values are used:

Change PDF file. Specifies whether users are allowed to change the PDF file. This field is applicable for Encryption levels *40RC4 and *128RC4.

The following values are used:

Content Access to PDF file. Specifies whether content accessibility for the visually impaired is enabled for the PDF file. This field is applicable only for an Encryption level of *128RC4.

The following values are used:

Copy PDF file. Specifies whether users are allowed to copy or extract text and graphics. This field is applicable for Encryption levels *40RC4 and *128RC4.

The following values are used:

Document assembly of PDF file. Specifies whether users are allowed to assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images). This field is applicable for an Encryption level of *128RC4 only.

The following values are used:

Encryption level. The encryption level for the PDF file. If the encryption level is *40RC4 or *128RC4, then the different encryption options valid for those levels of security will be returned.

The following special values are used for the encryption level:

Length of attachment e-mail entry. The size, in bytes, of each entry used for naming an e-mail attachment. Use one entry for each stream file. The entries must be concatenated, as in an array. For information on the format of a stream file entry, see Stream File Entry.

Length of BCC e-mail address entry. The size, in bytes, of each E-mail Address entry used for the BCC of an e-mail. For information on the format of an e-mail addresses entry, see E-mail Address Entry.

If Use stream file for BCC e-mail address entries is set to X'F1', then this value will be 0.

Length of BCC e-mail stream file. The size, in bytes, of the Stream File entry containing the stream file which lists the BCCs used for an e-mail. For information on the format of an e-mail addresses entry, see Stream File Entry.

If Use stream file for BCC e-mail address entries is set to X'F0', then this value will be 0.

Length of Body of e-mail entry. The size, in bytes, of each entry used for naming a stream file placed into the body of the e-mail. Use one entry for each stream file. The entries must be concatenated, as in an array. For information on the format of a stream file entry, see Stream File Entry.

Length of CC e-mail address entry. The size, in bytes, of each E-mail Address entry used for the CC of an e-mail. For information on the format of an e-mail addresses entry, see E-mail Address Entry.

If Use stream file for CC e-mail address entries is set to X'F1', then this value will be 0.

Length of CC e-mail stream file. The size, in bytes, of the Stream File entry containing the stream file which lists the CCs used for an e-mail. For information on the format of a stream file entry, see Stream File Entry.

If Use stream file for CC e-mail address entries is set to X'F0', then this value will be 0.

Length of message text. The size, in bytes, of the message text that gets placed into the body of the e-mail.

The following special values can be used for the message text:

If the length of the message text is 0, then the default message text is obtained from message PQT4133 in message file QPQMSGF.

Length of PDF file for e-mail The size, in bytes, of a File Name Entry. This identifies the name to be used for the PDF file produced from a spooled file, that is attached to an e-mail. For information on the format of a file name entry, see File Name Entry.

Length of ReplyTo to e-mail address. The size, in bytes, of an E-mail Address entry used for the ReplyTo of an e-mail. For information on the format of an e-mail addresses entry, see E-mail Address Entry.

The following special values can be used for the ReplyTo e-mail address:

Length of subject. The size, in bytes, of the text that is used for the subject of the e-mail.

The following special values can be used for the subject:

Length of subject. The size, in bytes, of the text that is used for the subject of the e-mail.

The following special values can be used for the subject:

If the length of the subject is 0, then the default subject is obtained from message PQT4133 in message file QPQMSGF.

Length of TO e-mail address entry. The size, in bytes, of each E-mail Address entry used for the TO of an e-mail. For information on the format of an e-mail addresses entry, see E-mail Address Entry.

If Use stream file for TO e-mail address entries is set to X'F1', then this value will be 0.

The following special values can be used for the TO e-mail address entry:

Length of TO e-mail stream file. The size, in bytes, of the Stream File entry containing the stream file which lists the TOs used for an e-mail. If the stream file name is surrounded by quotes, use all characters within the quotes as the stream file name. For information on the format of an e-mail addresses entry, see Stream File Entry.

If Use stream file for TO e-mail address entries is set to X'F0', then this value will be 0.

Master password. The master password associated with the PDF file to be created. Either an encrypted value or a special value in clear text is returned.

This field is applicable for Encryption levels *40RC4 and *128RC4.

The following special value can be used for the master password:

Mail Sender. The user profile from whom the e-mail is being sent.

The following special values can be used for the mail sender:

Number of attachment e-mail entries. The number of stream files to be attached to the e-mail. This value does not include the spooled file converted to PDF.

Number of BCC e-mail address entries. The number of BCC e-mail addresses to be used for sending an e-mail.

If Use stream file for BCC e-mail address entries is set to X'F1', then this value will be 0.

Number of Body of e-mail entries. The number of stream files to be placed into the body of the e-mail.

Number of CC e-mail address entries. The number of CC e-mail addresses to be used for sending an e-mail.

If Use stream file for CC e-mail address entries is set to X'F1', then this value will be 0.

Number of TO e-mail address entries. The number of TO e-mail addresses to be used for sending an e-mail.

If Use stream file for TO e-mail address entries is set to X'F1', then this value will be 0.

If Use stream file for TO e-mail address entries is set to X'F1', then this value will be 0.

Offset to attachment e-mail entries. The offset, in bytes, from the beginning of the PDFM0200 format structure, to a list of attachment entries. If this value is 0, a list of attachment entries is not specified.

Offset to BCC e-mail address entries. The offset, in bytes, from the beginning of the PDFM0200 format structure, to a list of BCC e-mail address entries. This area contains the BCC e-mail addresses to which the PDF file is sent.

If Use stream file for BCC e-mail address entries is set to X'F1', then this value will be 0.

Offset to BCC e-mail stream file. The offset, in bytes, from the beginning of the PDFM0200 format structure, to a file name which contains a list of BCC e-mail address entries.

If Use stream file for BCC e-mail address entries is set to X'F0', then this value will be 0.

Offset to Body of e-mail entries. The offset, in bytes, from the beginning of the PDFM0200 format structure, to a list of Stream file entries. If this value is 0, a list of Stream file entries is not specified.

Offset to CC e-mail address entries. The offset, in bytes, from the beginning of the PDFM0200 format structure, to a list of CC e-mail address entries. This area contains the CC e-mail addresses to which the PDF file is sent.

If Use stream file for CC e-mail address entries is set to X'F1', then this value will be 0.

Offset to CC e-mail stream file. The offset, in bytes, from the beginning of the PDFM0200 format structure, to a file name which contains a list of CC e-mail address entries.

If Use stream file for CC e-mail address entries is set to X'F0', then this value will be 0.

Offset to message text. The offset, in bytes, from the beginning of the PDFM0200 format, to the message text which gets placed in to the body of the e-mail. If this value is 0, message text is not specified.

Offset to PDF file for e-mail The offset, in bytes, from the beginning of the PDFM0200 format, to the PDF File For E-mail Entry.

Offset to ReplyTo e-mail address. The offset, in bytes, from the beginning of the PDFM0200 format, to the E-mail ddress Entry for a ReplyTo e-mail address. If this value is 0, a ReplyTo e-mail address is not specified.

Offset to subject. The offset, in bytes, to the subject of the e-mail. If this value is 0, a subject is not specified.

Offset to TO e-mail address entries. The offset, in bytes, from the beginning of the PDFM0200 format, to to a list of TO e-mail address entries. This area contains the TO e-mail addresses to which the PDF file is sent.

Offset to TO e-mail stream file. The offset, in bytes, from the beginning of the PDFM0200 format, to a file name which contains a list of TO e-mail address entries.

If Use stream file for TO e-mail address entries is set to X'F0', then this value will be 0.

Print PDF file. Specifies whether users are allow to print the PDF file. This field is applicable for Encryption levels *40RC4 and *128RC4. An additional value is available for an Encryption level of *128RC4.

Use stream file for BCC e-mail address entries. Indicates if a stream file containing BCC e-mail addresses is being used.

The following values are used:

Use stream file for CC e-mail address entries. Indicates if a stream file containing CC e-mail addresses is being used.

The following values are used:

Reserved. Set to a null value.

Use stream file for TO e-mail address entries. Indicates if a stream file containing TO e-mail addresses is being used.

The following values are used:

User password. The user password associated with the PDF file to be created. Either an encrypted value or a special value in clear text is returned.

This field is applicable for Encryption levels *40RC4 and *128RC4.

The following special value can be used for the user password:



E-mail Address Entry

This table is used for mapping the TO, CC, BCC and ReplyTo e-mail addresses. If necessary, the field is padded with blanks (X'40'). For more details about the fields that can be used with the following table, see E-mail Address Entry Field Description.



E-mail Address Entry Field Description

E-mail address. An e-mail address.


Stream File Entry

This table is used for mapping the stream files that can be used for the Body, Attachment, TO, CC, and BCC stream files. Use one entry for each stream file. If you are specifying a stream file for the Body, the file extension (for example, txt or htm) must be specified in lower case. Otherwise, the file will be sent as an attachment. If necessary, the field is padded with blanks (X'40'). For more details about the field that can be used with the following table, see Stream File Entry Field Description.



Stream File Entry Field Description

Stream file name. A path-qualified stream file name.


PDF Stream File Information Entry

If necessary, the Public Authority field is padded with blanks (X'40'). For more details about the fields in the following table, see PDF Stream File Information Entry Field Descriptions.



PDF Stream File Information Entry Field Descriptions

Length of PDF file name. The size, in bytes, of the Stream File entry which contains the PDF file name. For information on the format of a Stream File entry, see Stream File Entry.

Offset to PDF file name. The offset, in bytes, from the beginning of the PDFM0200 format, to the Stream File entry for a PDF file.

Public Authority. The public authority for the PDF stream file. The default is *EXCLUDE.

The following special values may be specified:

Reserved. Set to a null value.


PDF Spooled File Information Entry

These fields are used for mapping the PDF spooled file information. If necessary, text fields are padded with blanks (X'40'). For more details about the fields in the following table, see PDF and AFPDS Spooled File Information Entry Field Descriptions.



AFPDS Spooled File Information Entry

These fields are used for mapping the AFPDS spooled file information. If necessary, text fields are padded with blanks (X'40'). For more details about the fields in the following table, see PDF and AFPDS Spooled File Information Entry Field Descriptions.



PDF and AFPDS Spooled File Information Entry Field Descriptions

Form type for output spooled file. The type of forms that should be loaded on the printer before this spooled file is printed. This is the value which will be used when a file is spooled.

The following special values can be used for the form type for output spooled file:

Output queue library name for output spooled file. The name of the library where the output queue for the file which will be spooled resides.

Output queue name for output spooled file. The name of the output queue to which the file to be spooled will be written.

The following special values can be used for the form type for output queue name for output spooled file:

Reserved. Set to a null value.

Spooled file name for output spooled file. The name which will be used for the file that gets spooled.

The following special values can be used for the spooled file name for output spooled file:

User data for output spooled file. The user-specified data which will describe the file to be spooled.

The following special values can be used for the user data for output spooled file:

User defined data for output spooled file. The user-defined data that will be used for the file to be spooled.

The following special values can be used for the user defined data for output spooled file:



File Name Entry

This table is used for mapping a file name that is not path-qualifed. Use this entry for mapping a PDF file for e-mail entry. If necessary, the field is padded with blanks (X'40'). For more details about the field that can be used with the following table, see File Name Entry Field Description.



File Name Entry Field Description

File name. A file name which does not contain path information.


FLTR0100 Format

The following table shows the information provided for the FLTR0100 format. If necessary, use blanks (X'40') as the pad character for text fields. For more details about the fields in the following table, see FLTR0100 format Field Descriptions.

The minimum length that can be specified for this format, using field Length of filter information, is 8. For any fields not included due to the length specification, a value of *ALL will be used.



FLTR0100 Format Field Descriptions

Form type for filter. The type of forms that should be loaded on the printer before this spooled file is printed or spooled files whose form type matches this value are included in the list. This field can be used in conjunction with any of the other filter values to subset the list of Map entries.

The following special values can be used for the form type for filter:

This field must be padded with blanks (X'40').

Job name for filter. The name of the job that created the spooled file. This field can be used in conjunction with any of the other filter values to subset the list of Map entries.

The following special values can be used for the form type for filter:

Length of filter information. The size, in bytes, of the Filter Information Format FLTR0100. The minimum length that can be specified is 8. For any fields not included due to the length specification,a value of *ALL will be used.

For information on the Filter Information Format, see FLTR0100 Format.

Mail tag for filter. The value of the mail tag that matches this value are included in the list.

This field can be used in conjunction with any of the other filter values to subset the list of Map entries.

Here is information on specifying a mail tag for filter:

The following special values can be used for the mail tag:

Output queue library name for filter. The name of the library where the output queue resides.

The following special value can be used for the output queue library name when filtering:

Output queue name for filter. The name of the output queue to filter on or the name of the output queue in which the spooled file is located. At least one output queue or special value must be specified. This field can be used in conjunction with any of the other filter values to subset the list of Map entries.

The following special value is used for the output queue name when filtering:

This field must be padded with blanks (X'40').

Sequence number for filter. The user-defined sequence number on which to filter.

The following values are used:

This field can be used in conjunction with any of the other filter values to subset the list of Map entries.

Spooled file name for filter. The name of the spooled file to filter on or the name of the spooled file. At least one output queue or special value must be specified. This field can be used in conjunction with any of the other filter values to subset the list of Map entries.

The following special value is used for the Spooled file name when filtering:

This field must be padded with blanks (X'40').

User data for filter. The value of the user data of the Map entry to filter on or the value of the user data. At least one user name or special value must be specified. This field can be used in conjunction with any of the other filter values to subset the list of Map entries.

The following special value is used for the user data when filtering:

This field must be padded with blanks (X'40').

User name for filter. The name of the user that created the spooled file or the name of the user to filter on. At least one user name or special value must be specified. This field can be used in conjunction with any of the other filter values to subset the list of Map entries.

The following special value is used for the output queue name when filtering:

This field must be padded with blanks (X'40').


Error Messages



API introduced: V5R3

[ Back to top | Print APIs | APIs by category ]