Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
The Print AFP Spooled File Text (PRTTXTRDAR) command allows you to print all or part of an AFPDS or LINEAFPDS report. This allows the reports administrator to see what the report looks like to STRCDSRDAR and to determine the values needed to define the report.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
SPLF | Spooled file | Name | Required, Positional 1 |
JOB | Job name | Single values: * Other values: Qualified job name |
Optional |
Qualifier 1: Job name | Name | ||
Qualifier 2: User | Name | ||
Qualifier 3: Number | 000000-999999 | ||
SPLNBR | Spooled file number | 1-999999, *ONLY, *LAST, *ANY | Optional |
JOBSYSNAME | Job system name | Name, *ONLY, *CURRENT, *ANY | Optional |
CRTDATE | Spool file created | Single values: *ONLY, *LAST Other values: Element list |
Optional |
Element 1: Creation date | Date | ||
Element 2: Creation time | Time, *ONLY, *LAST | ||
PAGERANGE | Page range to print | Element list | Optional |
Element 1: Starting page | Integer, 1 | ||
Element 2: Ending page | Integer, 10, *END | ||
REPORT | Report name | Character value, *NONE | Optional |
VERSION | Version | 1-99, 01, *HIGHEST | Optional |
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 | ||
PRTTYPE | Type of print | *PRINT, *DEBUG, *TRACE | Optional |
Top |
Specifies the name of the spooled file to use as input to OnDemand. This is the file name that was specified by the user program when the file was created, or the name of the device file used to create this file.
This is a required parameter.
Top |
Specifies the name of the job which created the spooled file.
Top |
Specifies, by number, which of the job's spooled files is printed.
Top |
Specifies the name of the system where the job that created the spooled file (JOB parameter) ran. This parameter is considered after the job name, user name, job number, spooled file name, and spooled file number parameter requirements have been met.
Top |
Specifies the date and time the spooled file was created. This parameter is considered after the job name, user name, job number, spooled file name, spooled file number, and job system name parameter requirements have been met.
The possible single values are:
The possible create date value is:
The possible create time values are:
Top |
Specifies the starting and ending pages to print.
Element 1: Starting page
Element 2: Ending page
Top |
Specifies the name of the report definition to use when printing the spooled file.
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.
*NONE is usually the correct value to use for the report definition name. However, there are times when using a specific report definition is necessary. In V4R4M0, OnDemand introduced an improved method of determining how to print AFP data. This new method results in more accurate column locations for indexing. But these column locations will most likely be different than they would have been before this new method was introduced. If you are using PRTTXTRDAR to help index a new report or a new version of an existing report, *NONE should be used as the report name (REPORT parameter). *NONE always uses the improved method of printing. If you are modifying an existing report definition created before V4R4M0 of OnDemand, you will need to specify that report name (REPORT parameter) and version (VERSION parameter) so PRTTXTRDAR can determine which method of printing to use.
Top |
Specifies which version of the report definition is used to store the report.
Top |
Specify if you want to print the specified data interactively 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 |
Specifies how to format the printed output. Values other the *PRINT generate many, many pages of output and are primarily for program DEBUG.
Top |
Example 1: Simple Example
PRTTXTRDAR SPLF(CKSTMTPRTF)
This command submits a job to batch to print a text-only version of the first ten pages of the CKSTMTPRTF spooled file that was generated in the current job. (This function is of particular value to aid in indexing AFP (Advanced Function Presentation) spooled files.)
Example 2: More Complex Example
PRTTXTRDAR SPLF(CKSTMTPRTF) JOB(123456/OPERATOR/NIGHTBATCH) SPLNBR(*LAST)REPORT(CHECKSTMTS) VERSION(*HIGHEST)
This command is similar to Example 1 but specifies a particular job and spooled file number (*LAST) for the spooled file as well as an OnDemand Spool File Archive report definition name and version to ensure the correct interpretation of the AFP (Advanced Function Presentation) data for definitions created prior to V4R4.
Top |
*ESCAPE Messages
Top |