DFHMCT examples

These examples show the use of the DFHMCT TYPE=INITIAL, DFHMCT TYPE=RECORD and DFHMCT TYPE=EMP macros to create the control section for the monitoring control table, specify user event monitoring points, and exclude system-defined fields.

Figure 1 demonstrates the coding for the control statements in the DFHMCT TYPE=INITIAL macro. In the example, the suffix C2 is specified, so the name of this monitoring control table is DFHMCTC2. The other parameters are set to their default values.
Figure 1. Example: DFHMCT TYPE=INITIAL
DFHMCT   TYPE=INITIAL,SUFFIX=C2,COMPRESS=YES,       *
        APPLNAME=NO,RMI=NO,FILE=8,DPL=0,TSQUEUE=8
DFHMCT   TYPE=FINAL
         END
Figure 2 demonstrates the coding to create a monitoring control table (MCT) for two user event monitoring points (EMPs).
Figure 2. Example: DFHMCT TYPE=EMP, user event monitoring points
DFHMCT   TYPE=INITIAL,SUFFIX=MF,COMPRESS=YES        
DFHMCT   TYPE=EMP,                                  *
         ID=180,                                    *
         CLASS=PERFORM,                             *
         PERFORM=(SCLOCK(1),ADDCNT(2,1))            
DFHMCT   TYPE=EMP,                                  *
         ID=181,                                    *
         CLASS=PERFORM,                             *
         PERFORM=PCLOCK(1)
DFHMCT   TYPE=FINAL
         END
Figure 3 demonstrates the coding to create a monitoring control table (MCT) that excludes specific data fields from the performance data record. If you do not have any applications that use certain CICS® functions, you can safely exclude the performance data groups and fields relating to those functions. The example shows DFHMCT TYPE=RECORD macros to exclude fields for these functions:
Front End Programming Interface (FEPI)

DFHMCT   TYPE=RECORD,CLASS=PERFORM,                 *
         EXCLUDE=(DFHFEPI)                           
Business transaction services (BTS)

DFHMCT   TYPE=RECORD,CLASS=PERFORM,                 *
         EXCLUDE=(DFHCBTS,195,196)                  
Support for Java applications

DFHMCT   TYPE=RECORD,CLASS=PERFORM,                 *
         EXCLUDE=(253,254,273,275)      
Figure 3. Example: DFHMCT TYPE=RECORD, excluding fields
DFHMCT   TYPE=INITIAL,SUFFIX=CB,COMPRESS=YES,       *
        APPLNAME=NO,RMI=NO,FILE=16,TSQUEUE=12
DFHMCT   TYPE=RECORD,CLASS=PERFORM,                 *
        EXCLUDE=(DFHFEPI)                           
DFHMCT   TYPE=RECORD,CLASS=PERFORM,                 *
        EXCLUDE=(DFHCBTS,195,196)                   
DFHMCT   TYPE=RECORD,CLASS=PERFORM,                 *
        EXCLUDE=(253,254,273,275)                    
DFHMCT   TYPE=FINAL
         END