CL Command Reference - PRTRPTOND

CL Command List > PRTRPTOND Reference

Description:

The Print Report from OnDemand (PRTRPTOND) command prints the specified report in its entirety.


Examples:

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.