Previous Topic: STCKCONV Macro

Next Topic: TOP Macro

SYSVFOR Macro

The SYSVFOR macro generates a report line for each instance of a segment type within the current SMF record.

This macro supports two explicit arguments:

SEGN

Name of the desired segment

RPTN

Name of the report to generate

Before you invoke this SYSVFOR macro, set the following global variables in the SET-OFFSETS subroutine, which are invoked internally through the SELECT-REC and SELECT-BY-TIME subroutines.

SEG_COUNT

Sets the number of segments in the record.

SEG_LEN

Sets the length of the segment type.

SEG_OFFSET

Sets the offset within the SMF record to the first byte of the first segment. Calculate the offset from SMFHSI, which is the first byte following the RDW.

For SMF records, such as SYSVIEW CMCR that provide “triplets” containing offsets relative to the RDW, set the SEG_OFFSET to four less than the provided value. The SELECT-REC subroutine code in macro SYSVPROC does this set for each of the segment types defined in any of the provided SMF record types.

This following macro steps through all of the SMF74B segments and issues PRINT EXTRACT for each such segment found.

%SYSVFOR   SMF74B  EXTRACT