Print PFD Data (PRTPFDDTA)
This command allows you to print a database file member according to the design of a PFD definition.
Error messages for PRTPFDDTA
*ESCAPE Messages
- AFP0010
- An error occurred.
- AFP0040
- Database file &2 in library &1 cannot be allocated.
- AFP22A0
- Print request canceled.
Keyword |
Description |
Choices |
Notes |
PFDFILE |
PFD file |
Qualified object name |
Required, Positional 1 |
Qualifier 1: PFD file |
Name |
Qualifier 2: Library |
Name, *LIBL, *CURLIB |
PFDMBR |
PFD definition |
Name, *FIRST |
Optional, Positional 2 |
FILE |
Database file |
Single values: *PFD Other values: Qualified object name |
Optional, Positional 3 |
Qualifier 1: Database file |
Name |
Qualifier 2: Library |
Name, *LIBL, *CURLIB |
MBR |
Member |
Name, *FIRST |
Optional, Positional 4 |
GRID |
Include grid |
*YES, *NO, *YES, *NO |
Optional, Positional 5 |
RCDSLT |
Record selection |
*YES, *NO, *YES, *NO |
Optional, Positional 6 |
ENDPAGE |
Ending page |
1-9999, *END |
Optional, Positional 7 |
DRAWER |
Source drawer |
1-255, *PFD, *E1, *CUT |
Optional, Positional 8 |
OUTBIN |
Output bin |
1-65535, *DEVD |
Optional, Positional 9 |
COPIES |
Copies |
1-255, *PFD |
Optional, Positional 10 |
OUTQ |
Output queue |
Single values: *JOB Other values: Qualified object name |
Optional, Positional 11 |
Qualifier 1: Output queue |
Name |
Qualifier 2: Library |
Name, *LIBL, *CURLIB |
FORMDF |
Form definition |
Qualified object name |
Optional, Positional 12 |
Qualifier 1: Form definition |
Name, *PFD, *DEVD, *INLINE |
Qualifier 2: Library |
Name, *LIBL, *CURLIB |
PFD file (PFDFILE)
Specifies the PFD definition file and library that contain the PFD definition to be used.
The possible values are:
- PFD-definition-file-name
- Type the name of an existing PFD definition file to be used. If you specify the PFD-definition-file-name and a library name, print format utility searches the specified library for the PFD definition file. If you do not specify a library name, *LIBL is used.
The possible library values are:
- *LIBL
- The library list is used to locate the file.
- *CURLIB
- The current library for the job is used to locate the file. If no library is specified as the current library for the job, QGPL is used.
- library-name
- Specify the library where the file resides.
PFD definition (PFDMBR)
Specifies the name of the PFD definition to be used to print a database file member.
The possible values are:
- *FIRST
- This is the default value. The first PFD definition in the PFD definition file is used.
- PFD-definition-name
- Type the name of the PFD-definition you want to use.
Database file (FILE)
Specifies the database file and library that contain the member to be printed.
The possible values are:
- *PFD
- Specifies that the database file and library that are specified in the PFD definition are used to print the member.
- file-name
- Type the name of an existing database file to be used. If you specify the file-name and a library name, print format utility searches the specified library for the database file. If you do not specify a library name, *LIBL is used.
The possible library values are:
- *LIBL
- The library list is used to locate the file.
- *CURLIB
- The current library for the job is used to locate the file. If no library is specified as the current library for the job, QGPL is used.
- library-name
- Specify the library where the file resides.
Member (MBR)
Specifies the name of the member to be printed.
The possible values are:
- *FIRST
- This is the default value. The first member in the database file is printed.
- member-name
- Type the name of the member you want to print.
Include grid (GRID)
Specifies whether a grid is included in the printout or not. A Grid consists of horizontal lines and vertical lines, and the distance between horizontal lines and that between vertical lines are specified in the PFD specifications.
The possible values are:
- *NO
- This is the default value. A grid is not included in the printout.
- *YES
- A grid is included in the printout.
Record selection (RCDSLT)
Specifies whether the records are selected according to the selection conditions specified in the PFD definition or not.
The possible values are:
- *YES
- Type *YES if you want to select and print only those records that match the selection conditions specified in the PFD definition.
All records are printed if no conditions are specified in the PFD definition.
- *NO
- Type *NO if you want to print all records regardless of the selection conditions specified in the PFD definition.
Ending page (ENDPAGE)
Specifies whether printing should stop at a certain page or continue until all records are processed.
The possible values are:
- *END
- Specifies to print until all records are processed.
- page-number
- Specifies the last page number to be printed. Print format utility stops printing when the last page specified by this parameter is printed. If all records have been processed before the last page is printed, print format utility will stop printing.
The possible value range is 1 - 9999.
Drawer (DRAWER)
Specifies the source drawer used when single-cut sheets are fed into the printer.
The possible values are:
- *PFD
- The value specified in the Printout specifications is used. *PFD is the default.
- *E1
- Envelopes are fed from the envelope drawer on the sheet-feed paper handler.
- *CUT
- For printers with manual feed, cut sheets are fed manually through the manual feeder.
- source-drawer
- Specify the drawer from which the paper is fed. Valid values range from 1 through 255. For printers with manual feed, specifying 100 is the same as specifying *CUT.
Output bin (OUTBIN)
Specifies the destination of the output on printers capable of multiple output bins.
The possible values are:
- *DEVD
- The value specified in the Device description is used. *DEVD is the default.
- output-bin
- Specify the output bin for the destination of the output. Valid values range from 1 through 65535.
Copies (COPIES)
Specifies the number of copies to be printed.
The possible values are:
- *PFD
- Specifies that the number specified in the PFD definition is used.
This is the default value.
- number-of-copies
- Specifies the number of copies to be printed.
The possible value range is 1 - 255.
Output queue (OUTQ)
Specifies the qualified name of the output queue in which the spooled file will be created.
The possible values are:
- *JOB
- Specifies the output queue specified in the job description associated with this job is used.
This is the default value.
- output-queue-name
- Specifies the name of the output queue to be used.
The possible library values are:
- *LIBL
- The library list is used to locate the output queue.
- *CURLIB
- The current library for the job is used to locate the output queue. If no library is specified as the current library for the job, QGPL is used.
- library-name
- Specify the library where the output queue resides.
Form definition (FORMDF)
Specifies the qualified name of the form definition to use when printing the spooled file.
The possible values are:
- *PFD
- Specifies that the form definition and library that are specified in the PFD definition will be used to print the member.
- *DEVD
- Specifies that the form definition specified in the device description for the printer will be used.
- *INLINE
- Specifies that the print format utility will create an inline form definition with the name F1AFPU and use that form definition when printing the data. The page width and length specified in the printout format definition will be placed in the created form definition for page control with continuous form printers. These values will be used when the page size control value for the printer is set to *YES. Use the Work with PSF Configurations (WRKPSFCFG) command to set the page size control value.
- form-definition-name
- Specifies the name of the form definition to be used.
The possible library values are:
- *LIBL
- The library list is used to locate the form definition.
- *CURLIB
- The current library for the job is used to locate the form definition. If no library is specified as the current library for the job, QGPL is used.
- library-name
- Specify the library where the form definition resides.
*ESCAPE Messages
- AFP0010
- An error occurred.
- AFP0040
- Database file &2 in library &1 cannot be allocated.
- AFP22A0
- Print request canceled.