Print Report from OnDemand (PRTRPTOND)
Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
Top |
Parameters
Keyword | Description | Choices | Notes |
---|---|---|---|
APPGRP | Application group | Character value | Required, Positional 1 |
RPTID | Report ID | Character value | Required, Positional 2 |
PRINTER | Printer | Character value, *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 |
Application group (APPGRP)
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 |
Report ID (RPTID)
Specifies the report ID of the report to be printed.
This is a required parameter.
The report ID is also known as the load ID and can be found in the Content Manager OnDemand System Load folder or the System Log folder in the message text for message number 87, both generated when an input file is successfully loaded into the system. The report ID contains the value that Content Manager OnDemand generates to uniquely identify an input file, such as 5547-4-0-2FAA-20130313000000-20130313000000-5548. The report ID contains the following parts:
agid-pri_nid-sec_nid-docid-start_date-stop_date-aid
- agid
- Application group identifier.
- pri_nid
- Primary storage node.
- sec_nid
- Secondary storage node.
- docid
- Document identifier.
- start_date
- First date in the report. The format of the date is YYYYMMDDHHMMSS. Loads created with versions of Content Manager OnDemand prior to server version 9.0 use an older, internal date format for this part.
Note: If you do not know the start date, the value of this part can also be specified as 0.
- stop_date
- Last date in the report. The format of the date is YYYYMMDDHHMMSS. Loads created with versions of Content Manager OnDemand prior to server version 9.0 use an older, internal date format for this part.
Note: If you do not know the stop date, the value of this part can also be specified as 0.
- aid
- Application identifier. This part is optional.
Top |
Printer (PRINTER)
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.
- *OUTQ
- The report is spooled to the output queue specified on the OUTQ parameter.
- printer-name
- Specify the name of the printer that is used to print the report. The printer must be defined in the instance specified on the INSTANCE parameter. Printers can be added using the OnDemand Administrator Client.
Top |
Output queue (OUTQ)
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
- *JOB
- The output queue associated with this job receives the spooled report.
Qualifier 1: Output queue
- name
- Specify the name of the output queue to use.
Qualifier 2: Library
- *LIBL
- All libraries in the job's library list are searched until the first match is found.
- *CURLIB
- The current library for the job is where the output queue is located. If no library is specified as the current library for the job, QGPL is used.
- name
- Specify the name of the library where the output queue is located.
Top |
Instance (INSTANCE)
Specifies the name of the OnDemand instance to use.
- *DFT
- The default OnDemand instance is used. 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.
- instance-name
- Specify the name of the instance that is to be used. By definition, the instance must be on the system where the command is run.
Top |
Start instance server (STRSVR)
Specify to start the instance server if it is not currently active.
- *NO
- The instance server for this instance will not be started.
- *YES
- The instance server for this instance will be started.
Top |
Submit to batch (SBMJOB)
Specify if you want to print this report in this current job or in a batch job.
- *YES
- This command should be submitted to run in a different job.
- *NO
- This command should be run within the current job. If you are entering this command from a terminal, this will prevent you from doing any other work from this terminal session until this command completes.
Top |
Job description (JOBD)
Specifies the name of the job description used for the submitted job.
Qualifier 1: Job description
- QOND400
- The QOND400 job description is used as the job description for the submitted job.
- jobd-name
- Specify the name of the job description used for the job.
Qualifier 2: Library
- QRDARS
- Library QRDARS is used as the job description's library.
- *LIBL
- All libraries in the job's library list are searched until the first match is found.
- *CURLIB
- The current library for the job is used to locate the job description name. If no library is specified as the current library for the job, QGPL is used.
- library-name
- Specify the name of the library where the job description name is located.
Top |
Examples
Example 1: Simple Example
PRTRPTOND APPGRP(CHECKSTMTS) RPTID('1220-1-0-8FAA-20130420120000-20130421120000') 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-20130420120000-20130421120000') 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 |
Error messages
*ESCAPE Messages
- CPF1338
- Errors occurred on SBMJOB command.
- OND0251
- PRTRPTOND ended in error. The report was not printed.
Top |