RequestToString (UserStatistics function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
Line 43: Line 43:
<tt>Print %ustat:requestToString</tt> statement.
<tt>Print %ustat:requestToString</tt> statement.
The output line wrapping is altered for display purposes.
The output line wrapping is altered for display purposes.
<pre>
<p class="code">time='20080730102646772' userNumber=6 loginTime='200807301-
    time='20080730102646772' userNumber=6 loginTime='200807301-
02645880' ntbl=10 qtbl=29 stbl=524 vtbl=51 pdl=508 cnct=1 -
    02645880' ntbl=10 qtbl=29 stbl=524 vtbl=51 pdl=508 cnct=1 -
cpu=887 out=1 slic=71 pcpu=996 rqtm=889 dkpr=124750 objswa-
    cpu=887 out=1 slic=71 pcpu=996 rqtm=889 dkpr=124750 objswa-
p=250247
    p=250247
</p>
</pre>

Revision as of 17:01, 28 February 2011

Longstring containing Request statistics of specified

RequestToString is a member of the UserStatistics class.

This method returns the values of the Request statistics in the method UserStatistics object. It prints all Request statistics with non-zero values (by default), or it prints all Request statistics (as an option).

Syntax

  %ls = %ustat:RequestToString([Zeros=bool])

Syntax terms

%ls
A longstring variable to contain the listing of the values of the Request statistics.
%ustat
A UserStatistics object variable.
Zeros= bool
This name required argument (Zeros) is a boolean value that indicates whether statistics with a zero value should be included in the returned data. Zeros is an optional argument that defaults to False, which results in the inclusion of only statistics with non-zero values.

Usage Notes

  • The LoginToString function returns the values of the Login (also called “Final”) statistics. in the UserStatistics object. The ToString function returns the values of the Login and the Request statistics in the object.

Examples

The following example of non-zero Request statistics is produced by a
Print %ustat:requestToString statement. The output line wrapping is altered for display purposes.

time='20080730102646772' userNumber=6 loginTime='200807301- 02645880' ntbl=10 qtbl=29 stbl=524 vtbl=51 pdl=508 cnct=1 - cpu=887 out=1 slic=71 pcpu=996 rqtm=889 dkpr=124750 objswa- p=250247