Print Transaction Report (PRTTNSRPT)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The Print Transaction Report (PRTTNSRPT) command creates and prints performance reports that show detailed information about the transactions that occurred during the time that the performance data was collected. These reports require that trace data be collected by using the Start Performance Trace (STRPFRTRC) command. Jobs may be selectively included or excluded from the reports, based on a variety of job details and interval times.

Top

Parameters

Keyword Description Choices Notes
MBR Member Name Required, Positional 1
TITLE Report title Character value, *BLANK Optional, Positional 3
RPTTYPE Report type Values (up to 5 repetitions): *SUMMARY, *TNSACT, *TRSIT, *FILE, *TRCDTA Optional, Positional 4
PERIOD Time period for report Element list Optional
Element 1: Element list
Element 1: Starting time Time, *FIRST
Element 2: Element list
Element 1: Ending time Time, *LAST
LIB Library Name, QPFRDATA Optional, Positional 2
OPTION Report option Values (up to 7 repetitions): *SS, *SI, *OZ, *EV, *HV, *DI, *DQ, X'40' Optional
DETAIL Report detail *JOB, *THREAD Optional
SLTJOB Select jobs Single values: *ALL
Other values (up to 50 repetitions): Element list
Optional
Element 1: Job name Character value
Element 2: Element list
Element 1: Thread Character value, *ALL
OMTJOB Omit jobs Single values: *NONE
Other values (up to 50 repetitions): Element list
Optional
Element 1: Job name Character value
Element 2: Element list
Element 1: Thread Character value, *ALL
SLTUSRID Select users Single values: *ALL
Other values (up to 50 repetitions): Generic name, name
Optional
OMTUSRID Omit users Single values: *NONE
Other values (up to 50 repetitions): Generic name, name
Optional
SLTPOOLS Select pools Single values: *ALL
Other values (up to 64 repetitions): 1-64, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 1, 2, 3, 4, 5, 6, 7, 8, 9
Optional
OMTPOOLS Omit pools Single values: *NONE
Other values (up to 64 repetitions): 1-64, 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 1, 2, 3, 4, 5, 6, 7, 8, 9
Optional
SLTFCNARA Select functional areas Single values: *ALL
Other values (up to 50 repetitions): Character value
Optional
OMTFCNARA Omit functional areas Single values: *NONE
Other values (up to 50 repetitions): Character value
Optional
JOB Job name Name, PRTTNSRPT, *MBR Optional
JOBD Job description Single values: *NONE
Other values: Qualified object name
Optional
Qualifier 1: Job description Name, QPFRJOBD
Qualifier 2: Library Name, *LIBL, *CURLIB
Top

Member (MBR)

Specifies the performance data member used. This name should correspond to the member name specified on the MBR parameter of the End Performance Trace (ENDPFRTRC) command.

This is a required parameter.

Top

Report title (TITLE)

Specifies the title for the transaction report that is created.

*BLANK
No title is placed on the transaction report.
'report-title'
Specify the title you want on your transaction report. Specify up to 50 characters enclosed in apostrophes.
Top

Report type (RPTTYPE)

Specifies the type of transaction analysis report that is printed. A list of report types can be requested, so that both summary level and transaction detail reports can be requested at the same time. The transaction detail and transition detail reports are quite detailed, and should only be combined with a selection of specific jobs, users, and/or time intervals.

*SUMMARY
A summary level report is printed.
*TNSACT
The transaction detail report is printed.
*TRSIT
The transition detail report is printed.
*FILE
Transaction summary, job summary, and job trace database file members are created. The summaries exist in the files QTRTSUM, QTRJSUM, and QTRJOBT in the library specified for the Library prompt (LIB parameter). The member names are specified on the Member prompt (MBR parameter). The data in an existing member is replaced as a result of running this command. This value is used to build field level database files that are processed by user-defined programs and the Print Job Trace Report (PRTTRCRPT) command.
*TRCDTA
A database file version of the trace data file QAPMDMPT is created. The database file is named QTRDMPT and is a field-level database file which can be processed by user-defined programs.
Top

Time period for report (PERIOD)

Specifies the times when transactions are reported.

Starting Time

*FIRST
Transactions are reported beginning with the first one recorded.
start-time
Specify the time of the first transaction to include in the report. The time is specified as 4 or 6 digits (hhmm or hhmmss), where hh is the hour, mm is the minute, and ss is the second.

The time can be specified with or without a time separator:

  • Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where hh = hours, mm = minutes, and ss = seconds.
  • With a time separator, specify a string of 5 or 8 digits where the time separator specified for your job is used to separate the hours, minutes, and seconds. If you enter this command from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command will fail.

Ending Time

*LAST
Transactions are reported ending with the last one recorded.
end-time
Specify the time of the last transaction to include in the report. The time is specified as 4 or 6 digits (hhmm or hhmmss), where hh is the hour, mm is the minute, and ss is the second.

The time can be specified with or without a time separator:

  • Without a time separator, specify a string of 4 or 6 digits (hhmm or hhmmss) where hh = hours, mm = minutes, and ss = seconds.
  • With a time separator, specify a string of 5 or 8 digits where the time separator specified for your job is used to separate the hours, minutes, and seconds. If you enter this command from the command line, the string must be enclosed in apostrophes. If a time separator other than the separator specified for your job is used, this command will fail.
Top

Library (LIB)

Specifies the library where the performance data is located.

QPFRDATA
The performance data files are located in the IBM-supplied performance data library, QPFRDATA.
library-name
Specify the name of the library where the performance database files are located.
Top

Report option (OPTION)

Specifies additional options that you apply to the transaction report.

*SS
An additional set of system summary reports are included. These reports are included if *SUMMARY is specified on the Report type prompt (RPTTYPE parameter).
*SI
All jobs of type interactive are selected.
*OZ
All jobs that have zero transactions are omitted from the *SUMMARY report.
*EV
Event wait is considered as a transaction boundary. This is useful in the analysis of communications jobs.
*HV
System Licensed Internal Code (SLIC) tasks are listed on the *SUMMARY report.
*DI
The trace records for the display I/O transaction boundary are counted as transactions, instead of wait-to-active state transitions.
*DQ
The trace records for the data queue transaction boundary are counted as transactions, instead of wait-to-active state transitions.
Top

Report detail (DETAIL)

Specifies whether you want the report to provide detailed job information at the job level or the thread level.

*JOB
Specifies that you want detailed information at the job level.
*THREAD
Specifies that you want detailed information at the thread level.
Top

Select jobs (SLTJOB)

Specifies which jobs are included in the report. This allows the user to narrow the scope of the report to certain jobs through job selection.

The Select jobs prompt (SLTJOB parameter) and Omit jobs prompt (OMTJOB parameter) are mutually exclusive, so the default must be used for at least one of them.

You can enter multiple values for this parameter.

Element 1: Job name

*ALL
All jobs are included in the report.
job-name
Specify the jobs that are included in the report. A generic job name may be specified in the form, NAME*.

Note: The job name is not a fully qualified job name. It is the ten-character job name portion of the qualified name. The job number is allowed on this parameter. You cannot mix the use of job name and job number, one or the other must be used on a given request.

Element 2: Thread

*ALL
All threads are included, unless excluded by some other selection criterion.
thread-identifier
Specify the thread identifier to select. Because some jobs can have identical thread identifiers, this value may not identify a specific job.
Top

Omit jobs (OMTJOB)

Specifies which jobs are omitted from the report. This allows the user to narrow the scope of the report to certain jobs through job omission.

The Select jobs prompt (SLTJOB parameter) and Omit jobs prompt (OMTJOB parameter) are mutually exclusive, so the default must be used for at least one of them.

You can enter multiple values for this parameter.

Element 1: Job name

*NONE
No jobs are excluded from the report.
job-name
Specify the jobs that are excluded from the report. A generic job name may be specified in the form, NAME*.

Note: The job name is not a fully qualified job name. It is the ten-character job name portion of the qualified name. The job number is allowed on this parameter. You cannot mix the use of the job name and job number, one or the other must be used on a given request.

Element 2: Thread

*ALL
All threads are included, unless excluded by some other selection criterion.
thread-identifier
Specify the thread identifier to select. Because some jobs can have identical thread identifiers, this value may not identify a specific job.
Top

Select users (SLTUSRID)

Specifies a list of up to 50 user names to be included in the report. Only jobs with one of the specified user names are included in the report.

Note: This parameter and the Omit users prompt (OMTUSRID parameter) are mutually exclusive.

You can enter multiple values for this parameter.

*ALL
All jobs with user names are included, unless excluded by another selection value.
user-name
Specify the user names of the jobs to select. Because jobs may have identical user names, this value may not identify a specific job. A generic name may be specified for this value. SLTUSRID(user) is equivalent to SLTJOB(*N/user/*N).

Note: A generic name is a character string that contains one or more characters followed by an asterisk(*), for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic name, the system assumes it to be the complete object name.

Top

Omit users (OMTUSRID)

Specifies a list of up to 50 user names to be omitted from the report.

Note: This parameter and the Select users prompt (SLTUSRID parameter) are mutually exclusive.

You can enter multiple values for this parameter.

*NONE
No jobs are excluded based on the user name.
user-name
Specify the user names of the jobs to omit. Because jobs may have identical user names, this value may not identify a specific job. A generic name may be specified for this value. OMTUSRID(user) is equivalent to OMTJOB(*N/user/*N).

Note: A generic name is a character string that contains one or more characters followed by an asterisk(*), for example, ABC*. The asterisk substitutes for any valid characters. A generic name specifies all objects with names that begin with the generic prefix for which the user has authority. If an asterisk is not included with the generic name, the system assumes it to be the complete object name.

Top

Select pools (SLTPOOLS)

Specifies a list of up to 64 pools to be included in the report.

Note: This parameter and the Omit pools prompt (OMTPOOLS parameter) are mutually exclusive.

You can enter multiple values for this parameter.

*ALL
Jobs that ran in all pools are included, unless excluded by another selection value.
storage-pool-identifier
Specify the number of a pool to select. Valid values range from 1 through 64.
Top

Omit pools (OMTPOOLS)

Specifies a list of up to 64 pools to omit. Jobs that ran in any of the specified pools are excluded from the report.

Note: This parameter and the Select pools prompt (SLTPOOLS parameter) are mutually exclusive.

You can enter multiple values for this parameter.

*NONE
Jobs are not excluded based on their pool.
storage-pool-identifier
Specify the number of a pool to omit. Valid values range from 1 through 64.
Top

Select functional areas (SLTFCNARA)

Specifies a list of up to 50 functional areas to select. Only jobs and users identified in one of the functional areas are included in the report.

A functional area is a list of job names and/or user names previously defined by the user. More information on functional areas is in the Performance Tools for iSeries book.

Note: This parameter and the Omit functional areas prompt (OMTFCNARA parameter) are mutually exclusive.

You can enter multiple values for this parameter.

*ALL
All jobs are included in the report, unless excluded by another selection value.
functional-area-name
Specify the name of a functional area to select.
Top

Omit functional areas (OMTFCNARA)

Specifies a list of up to 50 functional areas to omit. Jobs and users identified in any of the functional areas are excluded from the report.

A functional area is a list of job names and/or user names previously defined by the user. More information on functional areas is in the Performance Tools for iSeries book.

Note: This parameter and the Select functional areas prompt (SLTFCNARA parameter) are mutually exclusive.

You can enter multiple values for this parameter.

*NONE
Jobs are not excluded from the report based on functional area.
functional-area-name
Specify the name of a functional area to omit.
Top

Job name (JOB)

Specifies the job name to be used if submitting the job for batch processing.

Any value for this parameter is ignored if *NONE is specified for the Job description prompt (JOBD parameter).

Note: If *NONE is specified for the Job description prompt (JOBD parameter), job processing is performed interactively.

The possible job name values are:

PRTTNSRPT
The command name is used for the job name.
*MBR
The name selected for the performance data member in the Member prompt (MBR parameter) is used.
job-name
Specify the name to be used for any and all batch jobs.
Top

Job description (JOBD)

Specifies the job description used to submit the job for batch processing.

The possible job description values are:

QPFRJOBD
The IBM-supplied job description, QPFRJOBD, is used.
job-description-name
Specify the name of an alternate job description.
*NONE
A batch job is not submitted; processing continues interactively while the user waits. The user's workstation is not available for other use during this time, which could be significant for long jobs.

The possible library values are:

*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. If no current library entry exists in the library list, QGPL is used.
library-name
Specify the library in which the job description is located.
Top

Examples

Example 1: Printing a Summary Transaction Report

PRTTNSRPT   MBR(TUESAM)

This command produces a summary transaction report. The data input to the report is all the data that exists in member TUESAM in library QPFRDATA. The request is sent to batch. The report output is directed to the output queue specified in the job description, QPFRJOBD.

Example 2: Printing a Transaction Detail Report

PRTTNSRPT   MBR(TUESAM)  RPTTYPE(*TNSACT)  SLTJOB(WS01)

This command produces a transaction detail report for the selected job, WS01. The request is sent to batch. The report output is directed to the output queue specified in the job description, QPFRJOBD.

Top

Error messages

None

Top