The SYSVPROC macro defines common subroutines for selecting and filtering records and data segments. Invoke SYSVPROC after the first JOB statement, and before the first REPORT statement. The following subroutines are provided:
Filters the SMF records by the record timestamp. Any record that does not satisfy the FROM, TO, and SHIFT parameters is rejected by setting the SELECT variable to F.
Performs the standard record selection by using the values previously set through the SYSVCDEF macro and the SET‑PARMS subroutine. Upon return from the routine, the SELECT variable has a value of T if the record passes all filtering criteria, otherwise the value is F.
Specifically, the routine verifies that SMFRTYP, SMFRSTYP, SMFHSSI, and SMFHPROD match the corresponding values for RECTYPE, RECSTYPE, SUBSYS, and PRODUCT.
The routine also calls SELECT-BY-TIME to verify that the record timestamp is within the time ranges specified in the FROM, TO, and SHIFT parameters.
Sets addressability to the various record definitions, based on RECTYPE, RECSTYPE, SMFRTYP, SMFRSTYP, and SEGMENT.
SELECT-BY-TIME calls SET-OFFSETS, and is not typically named directly from a user program.
Decodes the standard parameters that are specified on the SYSVCDEF macro. The values are then inserted into global variables that are accessible to the various filtering and selection routines and macros.
SET-PARMS is typically invoked as the START procedure on a JOB statement, but can also be invoked directly at any time using a PERFORM statement.
Examines the SMF record timestamps to determine the lowest and highest timestamp found in the data.
Because SET-SMFTIME is an internal subroutine, it typically is not invoked directly from a user program.
Splits a parameter into two parts, delimited by the first blank.
Because SPLIT-PARM is an internal subroutine, it typically is not invoked directly from a user program.
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |