CL Command Reference - PRTRPTRDAR

CL Command List > PRTRPTRDAR Reference

Description:

The Print Report for OnDemand (PRTRPTRDAR) command prints the specified report in its entirety.


Examples:

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.