Collecting Your Own Data Using the IFAUSAGE Macro

MVS™ provides the IFAUSAGE macro for collecting usage data as CPU time. For products that need to collect some other type of usage data, IFAUSAGE also allows a product to define its own usage data. Information about the IFAUSAGE macro appears in this topic. The data that IFAUSAGE collects is periodically written in type 89 SMF records. See Record Type 89 (59) — Usage Data for a complete description.

IBM® provides a program to generate usage reports so that customers can send usage reports to product owners. Information about the usage report program appears in MVS/ESA Support for Measured Usage License Charges. The reports are generated using the data in the type 89 SMF records. If these reports are not sufficient for the needs of your product, you can provide an exit routine that the usage reporting program will call or you can process the type 89 records via a program you provide for that purpose.