Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Print Advanced Function Printer Data (PRTAFPDTA) command prints output received from a System/370 host. This command allows the user to specify the file being printed and the parameters used to control the print operation.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
FILE | File | Qualified object name | Required, Positional 1 |
Qualifier 1: File | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
MBR | Member | Name, *FIRST | Optional |
DEV | Print device | Name, *JOB, *SYSVAL | Optional |
FORMDF | Form definition | Single values: *DEVD, *INLINE Other values: Qualified object name |
Optional |
Qualifier 1: Form definition | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
COPIES | Number of copies | 1-255, 1 | Optional |
STRPAGE | Starting page | Integer, 1 | Optional |
ENDPAGE | Ending page | Integer, *END | Optional |
FIDELITY | Print fidelity | *ABSOLUTE, *CONTENT | Optional |
Top |
Specifies the Advanced Function Printing Data Stream (AFPDS) file to be printed. Only physical files are supported for this command. If you use the Override with Printer File (OVRPRTF) command with PRTAFPDTA, do not override the device type (DEVTYPE parameter).
This is a required parameter.
Qualifier 1: File
Qualifier 2: Library
Top |
Specifies the member that contains the data to be printed.
Top |
Specifies the printer that prints the file.
Top |
Specifies the form definition to use when printing the file. A form definition is a resource object that defines the characteristics of the form such as: overlays, position of page data on the form, number of copies of pages, and modification to pages. The form definition is located inline with the file being printed, or in a library.
Single values
Qualifier 1: Form definition
Qualifier 2: Library
Top |
Specifies, for spooled files, the number of copies being printed.
Top |
Specifies the page on which printing starts. This parameter is used for partial printing of a file.
Top |
Specifies the page on which printing ends. This parameter is used for partial printing of a file ending at a specified page number. If both the start page and the end page are specified, the end page must be greater than or equal to the start page. Specifying an end page beyond the end of the actual file does not create an error condition.
Top |
Specifies the degree of exactness required when printing the file.
Top |
Example 1: Printing Specific Pages
PRTAFPDTA FILE(MYLIB/MYFILE) STRPAGE(2) ENDPAGE(6)
This command prints the first member in file MYFILE in library MYLIB starting with page 2 and ending on page 6.
Example 2: Printing Using All Available Exception Handling
PRTAFPDTA FILE(MYLIB/MYFILE) FORMDF(F10101) FIDELITY(*CONTENT)
This command prints the first member in file MYFILE in library MYLIB using a form definition of F10101 and all available exception handling.
Top |
*ESCAPE Messages
Top |