re-routing qtp statistics on the AS400

Marilyn Chapman MarilynC@wdi-wdi.com
Thu, 10 Jan 2002 10:07:44 -0800


It is my understanding that the statistics are sent to STDOUT.  For an interactive session this would be the workstation.  I do not know where they are sent for a batch job (they don't end up in the job log).

I do not think you can route it to a printer, but I really am not sure.  What I have done is send the statistics to another database file (if I want to be able to look at them later), or to QTEMP/NULL (the twlight zone) if I do not need to save them.

I you send the statistics to a file, you could then print the contents of the file as part of you job, or view or print them later.  I have jobs where I want to save the statistics in case there is a problem with and I need to research later.  There are multiple quiz and qtp programs.  In this case I copy the contents of the file the statistics are sent to another file, appending, because they will be overwritten by the next run of quiz or qtp.

All of the above is also true for quiz.

Examples:

OVRDBF  FILE(STDOUT)  TOFILE(QTPSTAT)
QTP  AUTO(PROG1)
CPYF  FROMFILE(QTPSTAT)  TOFILE(QTPSTATS)  MBROPT(*REPLACE)
QUIZ AUTO(PROG2)
CPYF  FROMFILE(QTPSTAT)  TOFILE(QTPSTATS)  MBROPT(*ADD)

OVRDBF FILE(STDOUT)  TOFILE(QTEMP/NULL)
QTP QUTO(PROG1)