Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
REPORT | Report name | Character value | Required, Positional 1 |
VERSION | Version | 1-99 | Required, Positional 2 |
RPTDATE | Report date | Character value | Required, Positional 3 |
RPTSEQ | Report sequence number | 1-999 | Required, Positional 4 |
PRINTER | Printer | Name, *OUTQ | Required, Positional 5 |
OUTQ | Output queue | Single values: *JOB Other values: Qualified object name |
Optional |
Qualifier 1: Output queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
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, QRDARS400 | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB |
Top |
Specifies the name of the report to print.
This is a required parameter.
Note: If you press the F4 key for this parameter while prompting the command, a list of all the valid entries is presented to you.
Top |
Specifies which version of the report should be printed. This value must be between 01 and 99.
This is a required parameter.
Top |
The report date can be found in the QPRLRCDS printer file from STRCDSRDAR or on the OnDemand displays which show the report date for a given report.
Specify a date using the format YYYYMMDD where YYYY represents the year, MM the month, and DD the day. Do not use any type of special characters to separate year, month, and day values.
This is a required parameter.
Top |
Specifies the report sequence number for the report to be printed. This value must be between 001 and 999.
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.
Qualifier 1: Output queue
Qualifier 2: Library
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
PRTRPTRDAR REPORT(CHECKSTMTS) VERSION(01) RPTDATE(20020101) RPTSEQ(001)PRINTER(*OUTQ) OUTQ(QGPL/PRT01)
This command submits a job to batch to reprint a spooled file from the OnDemand Spool File Archive report definition called CHECKSTMTS with a Version, Date, and Sequence number as shown. The reprinted output is directed to the PRT01 output queue. Note that the output queue specified must be defined as a printer within the OnDemand instance.
Example 2: More Complex Example
PRTRPTRDAR REPORT(CHECKSTMTS) VERSION(01) RPTDATE(20020101) RPTSEQ(001)PRINTER(*OUTQ) OUTQ(QGPL/PRT01) SBMJOB(*NO)
This command is similar to Example 1 but runs interactively.
Top |
*ESCAPE Messages
Top |