Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
APPGRP | Application group | Character value | Required, Positional 1 |
RPTID | Report ID | Character value | Required, Positional 2 |
PRINTER | Printer | Name, *OUTQ | Required, Positional 3 |
OUTQ | Output queue | Single values: *JOB Other values: Qualified object name |
Optional |
Qualifier 1: Output queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
INSTANCE | Instance | Character value, QUSROND | Optional |
COPIES | Number of copies | 1-255, 1 | Optional |
PAGERANGE | Page range to print | Single values: *ENDPAGE Other values: Element list |
Optional |
Element 1: Starting page | Integer, 1 | ||
Element 2: Ending page | Integer, *END | ||
SBMJOB | Submit to batch | *YES, *NO | Optional |
JOBD | Job description | Qualified object name | Optional |
Qualifier 1: Job description | Name, QOND400 | ||
Qualifier 2: Library | Name, QRDARS, *LIBL, *CURLIB |
Top |
Specifies the name of the application group that contains the report to be printed.
This is a required parameter.
Note: If you press the F4 key for this parameter while prompting the command, a list of the valid entries is presented to you. The entries listed may not be valid if the parameter INSTANCE is not QUSROND.
If the value to be entered contains lower case letters, blanks, or special characters, it must be enclosed in apostrophes.
Top |
Specifies the report ID of the report to be printed.
The report ID is in the form of "1220-1-0-8FAA-9939-9345", where the "1220" is the internal application group identifier, "1" is the primary storage node, "0" is the secondary storage node, "8FAA" is a counter, "9339" is the first (internal) date in the report file and "9345" is the last (internal) date in the report file. The report ID is also known as the load ID.
Note: The report id can be found in the system log file.
This is a required parameter.
Top |
Specifies where the report should be printed.
This is a required parameter.
Top |
Specify the qualified name of the output queue that is used to receive the spooled report. This output queue must be defined as a printer within the OnDemand instance.
Single values
Qualifier 1: Output queue
Qualifier 2: Library
Top |
Specifies the name of the instance to use.
When a server name or TCP/IP address is entered, OnDemand uses the instance on that server that is using the default port. In most cases, this will also use the default instance.
Top |
Top |
Specifies the starting and ending pages to print.
Element 1: Starting page
Element 2: Ending page
Top |
Specify if you want to print this report in this current job or in a batch job.
Top |
Specifies the name of the job description used for the submitted job.
Qualifier 1: Job description
Qualifier 2: Library
Top |
Example 1: Simple Example
PRTRPTOND APPGRP(CHECKSTMTS) RPTID('1220-1-0-8FAA-9939-9345') PRINTER(*OUTQ) OUTQ(QGPL/PRT01)
This command submits a job to batch to reprint a spooled file from the OnDemand Common Server application group called CHECKSTMTS with a load id (also known as report id) as shown. The command assumes the archived data is stored in the QUSROND instance since no instance name was specified. The reprinted output is directed to the PRT01 output queue.
Example 2: More Complex Example
PRTRPTOND APPGRP(CHECKSTMTS) RPTID('1220-1-0-8FAA-9939-9345') PRINTER(*OUTQ)OUTQ(QGPL/PRT01) INSTANCE(ACCTING) SBMJOB(*NO)
This command is similar to Example 1 but runs interactively and specifies an instance name.
Top |
*ESCAPE Messages
Top |