| 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, *DFT | Optional |
| STRSVR | Start instance server | *NO, *YES | Optional |
| 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: Position the cursor in the application group parameter entry and use the prompt (F4) key to view the list of application group values that are available for the default (*DFT) instance.
The default instance is specified in the QDFTINST data area. The QDFTINST data area can exist in multiple libraries. A search for the QDFTINST data area is performed using the library list. The first data area found will be used. If the QDFTINST data area is not found using the library list, the QUSRRDARS library will be searched for the data area. If the data area exists in the QUSRRDARS library it will be used. If the QDFTINST data area is not found, instance QUSROND is used.
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.
Note: Position the cursor in the printer parameter entry and use the prompt (F4) key to view the list of printer values that are available for the default (*DFT) instance.
The default instance is specified in the QDFTINST data area. The QDFTINST data area can exist in multiple libraries. A search for the QDFTINST data area is performed using the library list. The first data area found will be used. If the QDFTINST data area is not found using the library list, the QUSRRDARS library will be searched for the data area. If the data area exists in the QUSRRDARS library it will be used. If the QDFTINST data area is not found, instance QUSROND is used.
| 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 OnDemand instance to use.
| Top |
Specify to start the instance server if it is not currently active.
| 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 |