Collecting Data Other Than CPU Time

You might need to collect resource usage data other than CPU time. Examples of usage data you might chose to collect are number of transactions or number of bytes of data transferred.

To collect data other than CPU time, you must register with SCOPE=FUNCTION. Provide the resource data for accumulation by first issuing IFAUSAGE with REQUEST=FUNCTIONBEGIN. Collect the resource data by issuing IFAUSAGE with REQUEST=FUNCTIONDATA, specifying the resource data and its format. When you select the data format, consider how large you expect the numbers to be. Selecting floating point format allows any size number to be represented. If you select a different format, wrapping is possible, so you should ensure the unit of measure is one that will preclude wrapping. Resource data values are collected by adding the current resource data value to the accumulated resource data value.